diff options
author | Adrian Gibanel Lopez <adrian.gibanel@btactic.com> | 2016-01-18 03:15:47 +0000 |
---|---|---|
committer | Adrian Gibanel Lopez <adrian.gibanel@btactic.com> | 2016-07-31 15:09:13 +0200 |
commit | c4327f61384910014b3914f125521577c97e5d79 (patch) | |
tree | 3d48c4cd1c8eabeed95b061f3b803a200a990515 /scripts/build/binary_loopback_cfg | |
parent | 9d1a983cc8fe12966d1a2c24a6ee0cfb419b3ce5 (diff) | |
download | vyos-live-build-c4327f61384910014b3914f125521577c97e5d79.tar.gz vyos-live-build-c4327f61384910014b3914f125521577c97e5d79.zip |
binary_loopback_cfg now renders grub.cfg by default.
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.
Diffstat (limited to 'scripts/build/binary_loopback_cfg')
-rwxr-xr-x | scripts/build/binary_loopback_cfg | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/scripts/build/binary_loopback_cfg b/scripts/build/binary_loopback_cfg index 6034ddc36..6031a8dcc 100755 --- a/scripts/build/binary_loopback_cfg +++ b/scripts/build/binary_loopback_cfg @@ -330,12 +330,14 @@ fi # Copying templates mkdir -p binary/boot/grub -cp "${_SOURCE}"/grub.cfg binary/boot/grub/loopback.cfg +cp "${_SOURCE}"/grub.cfg binary/boot/grub/grub.cfg -sed -i -e "s|LINUX_LIVE|${LINUX_LIVE}|" -e "s|LINUX_INSTALL||" -e "s|MEMTEST|${MEMTEST}|" binary/boot/grub/loopback.cfg -sed -i -e "s#LB_BOOTAPPEND_INSTALL##" -e "s#LB_BOOTAPPEND_LIVE#${LB_BOOTAPPEND_LIVE}#" binary/boot/grub/loopback.cfg +sed -i -e "s|LINUX_LIVE|${LINUX_LIVE}|" -e "s|LINUX_INSTALL||" -e "s|MEMTEST|${MEMTEST}|" binary/boot/grub/grub.cfg +sed -i -e "s#LB_BOOTAPPEND_INSTALL##" -e "s#LB_BOOTAPPEND_LIVE#${LB_BOOTAPPEND_LIVE}#" binary/boot/grub/grub.cfg -sed -i -e 's|\ $||g' binary/boot/grub/loopback.cfg +sed -i -e 's|\ $||g' binary/boot/grub/grub.cfg + +echo "source /boot/grub/grub.cfg" > binary/boot/grub/loopback.cfg # Creating stage file Create_stagefile .build/binary_loopback_cfg |