Ensure GRUB finds the running ISO
authorMichael Prokop <mika@grml.org>
Thu, 22 Nov 2018 22:54:10 +0000 (23:54 +0100)
committerMichael Prokop <mika@grml.org>
Thu, 22 Nov 2018 23:05:20 +0000 (00:05 +0100)
commit642e1b389347bcb8d6e44b483c327e45225427f4
treeacb06a6d67837126f0152b2a97bb7d6de24d9cff
parentc036873db03fe4f4d9943895e4fcff000224478f
Ensure GRUB finds the running ISO

Instead of relying on the presence of the /conf/bootid.txt file, which
might be present on several Grml ISOs, let's generate a unique filename
which GRUB then can search for.

JFTR: The redirection within the layers (scripts/GRMLBASE/45-grub-images
vs main grml-live script) is necessary, because the GRUB image is
generated from within the rootfs (grml_chroot), but the rootfs is
compressed within a squashfs file, while we can only access files
available directly inside the ISO (corresponding to the files inside
grml_cd, and not the files inside grml_chroot which
scripts/GRMLBASE/45-grub-images has access to).
etc/grml/fai/config/scripts/GRMLBASE/45-grub-images
grml-live