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.
This commit is contained in:
Andres Salomon
2021-07-01 21:54:29 -04:00
committed by Diederik de Haas
parent 9e206c86ff
commit 4816680ba6
2 changed files with 10 additions and 7 deletions

View File

@@ -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