rockedge wrote: Wed Mar 16, 2022 11:05 pm
@wiak I have a beta9-TEST which is a beta8 with the rc4 initrd.gz, and it will not boot cleanly using LABEL boot stanza. It appears /upper_changes can't be created if that makes any sense. This is the very first tests on QEMU virtual machines. The ISO will not boot unless RAM2 is selected. I have not tried booting yet from the QEMU hard drive.
Okay, I've been thinking about what you say again. I doubt beta8 will be any different when it comes to booting from LABEL (but not in a RAM0 or RAM2 mode). You are talking about booting from the iso as a cdrom I presume??? Save changes to media cannot of course happen to a read-only iso file so impossible for that grub line to successfully create upper_changes. I don't think there is any error in the initrd that causes that - it is just a fact of what that grub line is asking the system to boot into. The only way it could work would be if you had also set up an img drive that could be mounted as say sda1 on boot and you had a grub line that said w_changes=/mnt/sda1, if you see what I mean (if you also wanted RAM2, you also need w_changes1=RAM2). However, the raw iso cdrom image does not try to mount sda1 on booting (why would it?); to make it do so, the initrd/init itself would need to specifically mount /dev/sda1 on any boot, and again that would be an unusual default thing to do (I don't think Pups do that).
I don't have your TEST iso, but I don't see anything wrong with the LABEL code in the WDL initrd/init, so I expect same result - you should be able to boot with LABEL as long as you are in RAM0 mode - probably even RAM2 mode, but won't work as RAM2 save2flash since upper_changes can't be loaded once again from /mnt/sda1 since that has not been mounted or arranged. In summary, booting from iso like that basically seems limited to me, unless I am missing some trick I don't know about (I haven't really used QEMU for years. To use QEMU for full weedog init facilities the best is to make a proper frugal install into an image disk - that's a different matter - all should work from there.
SG2D booting (nothing to do with QEMU per say) is a different matter - the WDL initrd/init does of course mount the partition that iso is in so can use it for save persistence.
Anyway, let me know if my understanding of what you are doing is correct, and please post both the commandline you are using to start your qemu and also the grub stanza you are talking about, and also a copy of your TEST iso would be very helpful. Thus far, I think your results are what I'd expect and not an error in other words unless you mean something different to what I'm thinking you do.