mistfire wrote: ↑Mon Aug 29, 2022 12:36 am@wiak
PUPMODE 5 means the read/write layer was tmpfs only (at the ramdisk)
On initrd I mount tmpfs at /overlay then I create writable folder and working folder like this
/overlay/writable
/overlay/workdirThen mount the overlayfs like this
Code: Select all
mount -t overlay overlay -o workdir=/overlay/workdir,upperdir=/overlay/writable,lowerdir=< sfs mountpoints here >,xino=on /pup_new
Then move the /overlay mountpoint to /pup_new/overlay
And lastly switch_root
See the init script attached
I'm just going out, but I'll look at the attached init script later. I can say that the mount line looks pretty much okay to me and you setting up the tmpfs prior to it, but the following doesn't seem right off the top of my head:
Then move the /overlay mountpoint to /pup_new/overlay
You should simply be doing something like:
Code: Select all
exec switch_root /pup_new /sbin/init
EDIT: Back from the cafe now; ignore my above comment since I see you are doing switch_root like that anyway - must be another problem that needs looked at more closely - I don't as yet see any obvious error but I haven't read your init.txt itself yet. I really need to try to boot with that, but problem I have is that the computer I use won't boot Fossapup so I should try your quickpup and see if normal aufs will boot on this particular machine of mine - not sure why it won't boot normal aufs fossapup but likely firmware/modules related
though prior to that you can mount --move parts of the pre-switch root directories over to /pup_new, such as the directory you are booting from and that you have mounted to access vmlinuz and so on.