I'm... not following a 100%.
But getting there. Its frustrating to feel like your 98% there, and just missing the one thing :/.
My setup right now _is_:
(hd0,gpt1): ESP
- /boot/grub/grub.cfg
- /boot/{i386-pc,locale,x86_64-efi}
- /EFI/BOOT/BOOTx64.EFI
(hd0,gpt2): ext4
- ubuntu-16.04.bla.iso
- custom.iso
I don't see the difference in grub.cfg(appart from 14/16, that was mb, I tried both 14/16 standard isos :D), and indeed its location doesn't matter as this works for the default live cd/it does seem to find the things inside the custom.iso/casper.
------------------------------------
And I totally agree with the part regarding the Casper scripts ;).
I tried the following:
- mount default 16.04 iso
- take out its vmlinux.efi & initrd.lz
- put it in the casper/ folder of the custom.iso
This booted! :). And then it hang on the 'not enough loop devices' error from the post below. :(
So I tried grabbing either the vmlinuz-LATEST_VERSION and the vmlinuz-LATEST_VERSION.efi.signed for the vmlinuz.efi in the casper/ (with corresponding initrd.lz), but those crashed even earlier. Just "error: no suitable video mode found. booting in blind mode", which is not the actual critical error, as the default 16.04 proclaims this as well, and then proceeds to boot properly in blind mode. Can't really seem to figure out how far the custom version got...
You happen to know of a listing of sorts regarding the required Casper files? I just get some general stuff. It really seems to indeed hinge around those vmlinuz.efi and initrd.lz files. The naming convention with the .efi and .lz shouldn't even matter that much, as long as the grub entry matches it. But those _are_ the images the host OS is booting from. Do they have some internal pathing/referencing I'm missing?
Something that keeps staring at me though is the /grub and /EFI inside the .iso. The iso basically has:
- boot/grub
- casper
- EFI/BOOT/{BOOTx64.EFI,grubx64.efi}
But I'm not too trusting of the grub.cfg inside the iso...
menuentry "Boot custom iso" {
set gfxpayload=keep
linux /casper/vmlinuz.efi boot=casper quiet splash --
initrd /casper/initrd.lz
}
I do think I need it, but does it need more references than this? Should it also have the (hd0,2)etc. prepending? Or is this OK as it is a selfreference within the iso?
Thanks for the help so far, its already comforting to know that someone else suspects the same area for the issues :). I swear this is going to drive me properly mad one of these days.