Bug#757883: live-build: Support for loopback.cfg file
Package: live-build
Version: 4.0~alpha33-1
Severity: wishlist
Dear Maintainer,
Live-build should have support for generating a loopback.cfg file no matter
which boot method one uses for the iso.
Upstream doc: http://www.supergrubdisk.org/wiki/Loopback.cfg
1) What is loopback file?
A loopback.cfg is basically just a grub.cfg that's designed to be used to boot
a live distribution from an iso file on a filesystem rather than an actual
physical CD.
2) Here you can see how it is implemented in grml: https://github.com/grml
/grml-live/blob/6e8596be5dd0b1b26f25f1518e5a80ab0002cd64/grml-live
3) If I'm not mistaken a valid Debian live loopback.cfg would be something
like:
menuentry "Rescatux autodetect" {
if cpuid -l ; then
linux /live/vmlinuz1 boot=live config quiet findiso=${iso_path}
initrd /live/initrd1.img
else
linux /live/vmlinuz2 boot=live config quiet findiso=${iso_path}
initrd /live/initrd2.img
fi
}
menuentry "Rescatux 32 bit" {
linux /live/vmlinuz2 boot=live config quiet findiso=${iso_path}
initrd /live/initrd2.img
}
menuentry "Rescatux 64 bit" {
linux /live/vmlinuz1 boot=live config quiet findiso=${iso_path}
initrd /live/initrd1.img
}
4) You can test it thanks to: Super Grub2 Disk and its option: Boot manually.
Bootable ISOs.
5) Make sure the iso is found either in /boot-isos folder or in /boot/boot-isos
folder in your media.
-- Package-specific info:
-- System Information:
Debian Release: jessie/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.13-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=es_ES.UTF-8, LC_CTYPE=es_ES.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages live-build depends on:
ii debootstrap 1.0.59
ii python3 3.4.1-1
Versions of packages live-build recommends:
ii cpio 2.11+dfsg-2
pn live-boot-doc <none>
pn live-config-doc <none>
pn live-manual-html | live-manual <none>
live-build suggests no packages.
-- no debconf information
Reply to: