diff options
author | Lyndon Brown <jnqnfe@gmail.com> | 2020-04-30 06:55:34 +0100 |
---|---|---|
committer | Lyndon Brown <jnqnfe@gmail.com> | 2020-04-30 07:10:08 +0100 |
commit | 96ade65e65fb494a79400c0deaf8297c5b2ac46f (patch) | |
tree | 67a57c7c7095dde54f2ad3673fab40167e3cb50a /scripts/build/binary_loopback_cfg | |
parent | 647dcb7aeddc71c9637e1487de1c3f61e49ae978 (diff) | |
download | vyos-live-build-96ade65e65fb494a79400c0deaf8297c5b2ac46f.tar.gz vyos-live-build-96ade65e65fb494a79400c0deaf8297c5b2ac46f.zip |
grub2: fix lost pre-prepared files detail
partly lost in some adjustments that were made to the submitted work,
which was focused on restoring the 'start installer' entry.
there is no need for dynamic setting of these two `source` imports in the
default file, in fact user modifications should also use the fixed import
commands in future.
note that the old placeholders however remain replaced, which inject
precisely this string, for backwards compatibility.
Gbp-Dch: Ignore
Diffstat (limited to 'scripts/build/binary_loopback_cfg')
-rwxr-xr-x | scripts/build/binary_loopback_cfg | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/scripts/build/binary_loopback_cfg b/scripts/build/binary_loopback_cfg index 404789e85..6666e6e8b 100755 --- a/scripts/build/binary_loopback_cfg +++ b/scripts/build/binary_loopback_cfg @@ -203,8 +203,6 @@ fi # Assembling debian-installer configuration if [ "${LB_DEBIAN_INSTALLER}" != "none" ]; then ENABLE_INSTALL_MENU="true" - LINUX_INSTALL="source /boot/grub/install_start.cfg" - LINUX_ADVANCED_INSTALL="source /boot/grub/install.cfg" KERNEL_DI="/install/vmlinuz" INITRD_DI="/install/initrd.gz" @@ -250,8 +248,6 @@ escape_for_sed() { # Those without '@' markers are for backwards compatibility sed -i \ -e "s|@LINUX_LIVE@|$(escape_for_sed "${LINUX_LIVE}")|" \ - -e "s|@LINUX_INSTALL@|${LINUX_INSTALL}|" \ - -e "s|@LINUX_ADVANCED_INSTALL@|${LINUX_ADVANCED_INSTALL}|" \ -e "s|@KERNEL_GI@|${KERNEL_GI}|" \ -e "s|@INITRD_GI@|${INITRD_GI}|" \ -e "s|@APPEND_GI@|${APPEND_GI}|" \ @@ -270,8 +266,8 @@ sed -i \ -e "s|@MEMTEST_BIN@|${MEMTEST_BIN}|" \ -e "s|@MEMTEST_VERSION@|${LB_MEMTEST}|" \ -e "s|LINUX_LIVE|$(escape_for_sed "${LINUX_LIVE}")|" \ - -e "s|LINUX_INSTALL|${LINUX_INSTALL}|" \ - -e "s|LINUX_ADVANCED_INSTALL|${LINUX_ADVANCED_INSTALL}|" \ + -e "s|LINUX_INSTALL|source /boot/grub/install_start.cfg|" \ + -e "s|LINUX_ADVANCED_INSTALL|source /boot/grub/install.cfg|" \ -e "s|MEMTEST|${MEMTEST}|" \ -e "s|KERNEL_GI|${KERNEL_GI}|" \ -e "s|INITRD_GI|${INITRD_GI}|" \ |