diff options
| author | Andres Salomon <dilinger@queued.net> | 2021-07-01 21:54:29 -0400 |
|---|---|---|
| committer | Diederik de Haas <didi.debian@cknow.org> | 2021-08-25 01:23:20 +0200 |
| commit | 4816680ba6499d87ade9c356198acdc2df3849d1 (patch) | |
| tree | ea7679dad1aa32fa1aa10aafa2039c07fb6968a8 /rootfs/etc/initramfs-tools/hooks | |
| parent | 9e206c86ff73f0d4c5d434884d66ecfcbbd2b15a (diff) | |
resizerootfs: switch from using sfdisk to parted for resizing partitions
sfdisk is a bit crusty - it doesn't understand gpt partition tables very well,
for example. By switching to parted, we can handle gpt issues (which may be
useful in the future, and is definitely useful for other boards), and we no
longer have to hardcode that 4M alignment workaround. Parted will tell us
the free space at the end of the disk.
Because we're already using partprobe, there's no additional dependencies
needed.
Diffstat (limited to 'rootfs/etc/initramfs-tools/hooks')
| -rwxr-xr-x | rootfs/etc/initramfs-tools/hooks/rpi-resizerootfs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rootfs/etc/initramfs-tools/hooks/rpi-resizerootfs b/rootfs/etc/initramfs-tools/hooks/rpi-resizerootfs index f20edb2..f4776aa 100755 --- a/rootfs/etc/initramfs-tools/hooks/rpi-resizerootfs +++ b/rootfs/etc/initramfs-tools/hooks/rpi-resizerootfs @@ -18,6 +18,6 @@ esac #copy_exec /usr/bin/tail copy_exec /sbin/blkid copy_exec /bin/lsblk -copy_exec /sbin/sfdisk +copy_exec /sbin/parted copy_exec /sbin/partprobe copy_exec /sbin/resize2fs |
