skiffos / SkiffOS

Any Linux distribution, anywhere.

Home Page:https://skiffos.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

skiff-init-squashfs: resizing persist partition fails

paralin opened this issue · comments

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

Sounds fun! I created that patch:

tytso/e2fsprogs@master...maxberger:e2fsprogs:master

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