initfs: resizing root partition does not work for devices with cgpt
Describe your issue
What's the expected behaviour?
After doing pmbootstrap install
, pmootstrap export
and booting the image flashed to sd card, it is expected that rootfs will be resized
What's the current behaviour?
Nothing
What device are you using?
- google-snow
- google-peach-pit
How to reproduce your issue?
$ sudo parted /dev/sde
GNU Parted 3.4
Using /dev/sde
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) resizepart 3 100%
Warning: Not all of the space available to /dev/sde appears to be used, you can
fix the GPT to use all of the space (an extra 12726272 blocks) or continue with
the current setting?
Fix/Ignore? Fix
Partition number? 3
End? [1226MB]? 100%
(parted)
Information: You may need to update /etc/fstab.
After that, kernel partition on cgpt becomes unsuccessful.
When i chose Ignore
, parted does nothing.
Additional information
- Images created with these scripts should be possible to resize - https://github.com/hexdump0815/imagebuilder/tree/main/scripts;
- Related initfs code - https://gitlab.com/postmarketOS/pmaports/-/blob/master/main/postmarketos-mkinitfs/init_functions.sh;
- initfs code should also be adjusted to use third partition instead of second.
Edited by jenneron