summaryrefslogtreecommitdiff
path: root/scripts/build/binary_loopback_cfg
AgeCommit message (Collapse)Author
2020-03-05help/usage: fix overly complex script description handlingjnqnfe
Closes: #952887
2020-03-05bootloaders: fix ignoring LB_DEBIAN_INSTALLER_GUI in menu creationLyndon Brown
LB_DEBIAN_INSTALLER_GUI defines whether or not to provide the graphical installer. the installer_debian-installer script pays attention to it and does not download it if not wanted. the actual bootloaders however (both grub2/loopback and syslinux) ignore it, which leaves broken and unwanted menu entries. this fixes that. Gbp-Dch: Short Closes: #952890
2020-03-05simplify --debian-installer choicesjnqnfe
`false` and `none` make no sense as choices for this option. Here we replace `false` with `none`, and remove `true`. Note that `true` was treated as an alias for netinst (see the changes to source_disk and and binary_disk). For backwards compatibility we still allow `true` and `false` by converting them to `netinst` and `none` respectively, whilst printing a warning to encourage users to move to `netinst`/`none`. Gbp-Dch: Short Closes: #952864
2020-03-05fix indentationLyndon Brown
including: - spaces replaced with tabs for consistency - alignment of `;;` in some case statements changed for consistency Gbp-Dch: Short Closes: #952857
2020-03-05grub2: fix using wrong directory in certain casesjnqnfe
Update feb-2020: Both grub2 and syslinux were affected by this issue. Someone else's patch fixing syslinux only just recently got merged in 2735f3bd38d3d2f0c48ea1ce023a27943ef0ab84 but grub2 was still affected. I had made patches for both in 2015 which never got merged. This is the grub2 one. Gbp-Dch: Short Closes: #952843
2019-04-21Readd findiso parametre to loopback.cfg generation.adrian15
2017-12-21Failsafe entries rework at binary_loopback_cfgAdrian Gibanel Lopez
[hertzog@debian.org: - Fix conflicts due to renamed variables ] Signed-off-by: Raphaël Hertzog <hertzog@debian.org>
2017-12-21Fix handling of multiple kernels in binary_loopback_cfgAdrian Gibanel Lopez
Now grub.cfg shows all the kernel options. Before this patch when you had more than two kernels it only showed the auto option. Signed-off-by: Raphaël Hertzog <hertzog@debian.org>
2017-12-21Updated binary_loopback_cfg so that it uses Stretch's 686 kernel instead of ↵Adrian Gibanel Lopez
old 486 one. [hertzog@debian.org: Also rename the variables for consistency. ] Signed-off-by: Raphaël Hertzog <hertzog@debian.org>
2016-12-14Cleanup binary_loopback_cfg and offer more freedom in overriding the default ↵Raphaël Hertzog
grub-pc configuration.
2016-12-02Clean up grub configuration codeRaphaël Hertzog
* Use only long kernel names. * Put advanced options in a submenu. * Use distro-agnostic labels. * Don't generate entries with kernel version when we have a single version.
2016-12-02Default for LB_UNION_FILESYSTEM is now "overlay" just like in live-boot.Raphaël Hertzog
2016-11-28Copy sub-directories as well as files in grub config directoryRaphaël Hertzog
This is to cover the case of a theme included in that directory.
2016-11-28Try to reuse /isolinux/splash.png in default grub configuration.Raphaël Hertzog
2016-08-26Readded Installation boot entries to grub configuration files.Adrian Gibanel Lopez
2016-07-31Force the use of insmod all_video in grub.cfg so that we do not boot in ↵Adrian Gibanel Lopez
blind mode in UEFI mode.
2016-07-31binary_loopback_cfg now renders grub.cfg by default.Adrian Gibanel Lopez
The binary parts of grub-pc are left for the original binary_grub-pc. As a consequence both /boot/grub/grub.cfg and /boot/grub/loopback.cfg files will be present in any Debian Live CD. This might be useful to be reused from binary_grub-* bootloaders.
2015-08-30Loopback cfg support.Adrian Gibanel Lopez
Development details -------------------- * This patch has been based originally on: binary_grub2 . It has been improved thanks to some binary_syslinux bits. * This patch ensures that binary_loopback_cfg needs is run before binary_syslinux is run. The reason is that it reuses some code from binary_syslinux to avoid problems when binary_syslinux renames the kernel filenames. * This patch already supports CPU detection * I haven't tested all the possible scenarios for the script (with the latest version). When amd64 and 486 Gnu/Linux flavours is used and the bootloader is syslinux it works ok. * I have not implemented a disable switch for not generating it. Usually you always want loopback.cfg to be there. * Compared to binary_grub2 script I have removed the installation entries because I did not see any of them in binary_syslinux. How to test ----------- These are some steps to easily test if Looback cfg support is working ok. 0) We assume you have generated an iso 1) Make sure you have a partition that Grub understands. Plain ext4 or vfat should do it. 2) Create directory: /boot/boot-isos/ 3) Put the iso file into that directory making sure it has an ISO or iso extension. 4) Setup your computer to boot from cdrom and use: Super Grub2 Disk 2.00s2 (Hybrid version recommended) 5) Choose Boot manually... 6) Choose Bootable ISOs (in /boot- ... ) 7) Choose (the detected) GRUB Loopback Config (hdN,msodsN)/boot/boot-ios/name-of-the.iso 8) You will be presented your loopback.cfg. Choose anyone of the entries (unless it does not match your cpu architecture of course). 9) You should boot into your Debian Live without problems (thanks to findiso boot parametre). If you ever wanted to test from your grub2 installation instead from Super Grub2 Disk check: http://www.supergrubdisk.org/wiki/Loopback.cfg for an example.