Builder for live images based on Debian
Go to file
Arnaud Rebillout 6dbb8d2598 efi-image: Fix <platform>/grub.cfg, variables must NOT be expanded
The test 'if [ x$grub_platform == xefi -a x$lockdown != xy ]' is meant
to be done by GRUB at runtime, so this line should appear verbatim in
the grub.cfg file.

However the variables are expanded at build-time by the script, because
the dollar symbol is not escaped.

Here's the result on a 12.1.0 live image:

    $ cat <<debian-live-12.1.0>>/boot/grub/x86_64-efi/grub.cfg
    if [ x == xefi -a x != xy ] ; then
    insmod part_acorn
    insmod part_amiga
    insmod part_apple
    insmod part_bsd
    insmod part_dfly
    insmod part_dvh
    insmod part_gpt
    insmod part_msdos
    insmod part_plan
    insmod part_sun
    insmod part_sunpc
    fi
    source /boot/grub/grub.cfg

Note that this mistake would have been caught if only the nounset option
had been used (ie. 'set -u').

Fixes commit: 7b36f5b0ad
2023-09-18 08:39:38 +07:00
data/debian-cd Adding symlink for udeb data for bookworm 2021-12-03 19:57:33 +01:00
debian Fix and correctly suppress lintian warnings 2023-08-06 21:31:15 +02:00
examples Fix detection of fonts in initrd 2023-03-19 08:40:46 +01:00
frontend get rid of a couple of useless variables 2020-05-04 13:21:12 +01:00
functions Filter the firmware list (Closes: 1035382) 2023-07-09 11:59:00 +02:00
manpages Introduce '--debian-installer-distribution git'. 2022-05-17 08:48:44 +02:00
scripts efi-image: Fix <platform>/grub.cfg, variables must NOT be expanded 2023-09-18 08:39:38 +07:00
share Remove ancient hook 9030-remove-apt-sources-lists that was never run 2023-07-18 13:12:29 +02:00
test rebuild.sh: Consistent timestamp of theme.txt 2023-08-20 13:16:40 +02:00
COPYING Switching to GPL3+. 2011-03-09 18:22:29 +01:00
Makefile Mark the phony targets in the Makefile 2022-01-07 10:12:28 +01:00