Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 730186

Summary: sys-fs/growpart: doesnt work with recent fdisk
Product: Gentoo Linux Reporter: Alexey Shvetsov <alexxy>
Component: Current packagesAssignee: Matthew Thode ( prometheanfire ) <prometheanfire>
Status: CONFIRMED ---    
Severity: normal CC: base-system, jstein
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Alexey Shvetsov archtester gentoo-dev 2020-06-29 22:10:37 UTC
growpart doesnt work with recent versoions of fdisk

tested with gentoo openstack image 

# growpart /dev/vda 1
attempt to resize /dev/vda failed. sfdisk output below:
| Backup files:
|          MBR (offset     0, size   512): /tmp/growpart.9UuYGN/orig.save-vda-0x00000000.bak
| 
| Disk /dev/vda: 10 GiB, 10737418240 bytes, 20971520 sectors
| Units: sectors of 1 * 512 = 512 bytes
| Sector size (logical/physical): 512 bytes / 512 bytes
| I/O size (minimum/optimal): 512 bytes / 512 bytes
| Disklabel type: dos
| Disk identifier: 0xe4a8d41d
| 
| Old situation:
| 
| Device     Boot Start     End Sectors Size Id Type
| /dev/vda1  *     2048 6289407 6287360   3G 83 Linux
| 
| >>> Script header accepted.
| >>> Script header accepted.
| >>> Script header accepted.
| >>> Script header accepted.
| >>> line 5: unsupported command
| 
| New situation:
| Disklabel type: dos
| Disk identifier: 0xe4a8d41d
| 
| Device     Boot Start     End Sectors Size Id Type
| /dev/vda1  *     2048 6289407 6287360   3G 83 Linux
| Leaving.
| 
FAILED: failed to resize
***** WARNING: Resize failed, attempting to revert ******
512+0 records in
512+0 records out
512 bytes copied, 0.00393937 s, 130 kB/s
***** Restore appears to have gone OK ****
Comment 1 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2020-06-30 16:25:59 UTC
This is how I got it working again, which image did you test with?

echo '~sys-apps/util-linux-2.35.2 ~amd64  # sfdisk growpart fix' >> /etc/portage/package.accept_keywords/util-linux
Comment 2 Alexey Shvetsov archtester gentoo-dev 2020-06-30 19:52:15 UTC
I tested it with gentoo-systemd-20200521
Comment 3 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2020-06-30 20:03:39 UTC
go ahead and check the image from june, iirc that's the first release with the fix (as it's actually a util-linux error, not a growpart error).