skiffos / SkiffOS

Any Linux distribution, anywhere.
https://skiffos.com
MIT License
685 stars 50 forks source link

skiff-init-squashfs: resizing persist partition fails #273

Open paralin opened 1 year ago

paralin commented 1 year ago

Let's say that we boot to a disk at /, then resize2fs will happily online resize it.

But what we do in skiff-init-squashfs is then mount an overlayfs and a squashfs from / and then chroot into a different root. Then what happens is / is now a chroot, resize2fs doesn't detect that it needs online resizing, and fails to resize it.

There is a fix for this somewhere in making a patch for resize2fs to always do online resizing.

Related: #272

cc @maxberger

maxberger commented 1 year ago

Sounds fun! I created that patch:

https://github.com/tytso/e2fsprogs/compare/master...maxberger:e2fsprogs:master

It is yet untested, but it's a start.