Details
-
Type:
Bug
-
Status: Done
-
Priority:
High
-
Resolution: Fixed
-
Affects Version/s: yocto-2.7-warrior
-
Fix Version/s: yocto-2.7-warrior
-
Labels:
-
Environment:ARM i.MX6 using eMMC
-
Days in progress:0
Description
The following line is causing my eMMC disk expansion to fail (running Yocto Warrior):
mender-client-resize-data-part.sh.in
Parted will refuse to resize the parition because it needs to re-write the partition table and will refuse to do so unless there is a backup. This ensures that GPT backup headers are written to the end of the disk. echo "w" | fdisk ${MENDER_STORAGE_DEVICE}
Disk expansion was working properly prior to the introduction of this line?
I now get the following error:
The number of cylinders for this disk is set to 240448.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
- software that runs at boot time (e.g., old versions of LILO)
- booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Command (m for help): The partition table has been altered.
Calling ioctl() to re-read partition table
fdisk: WARNING: rereading partition table failed, kernel still uses old table: Device or resource busy
As a fix for those systems that did not have an issue previously can we suppress the error caused by this line so that the disk expansion can proceed as was previously working?
When I suppress the error caused by:
echo "w" | fdisk ${MENDER_STORAGE_DEVICE}
{all works as it previously did.