summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorRaphaël Hertzog <hertzog@debian.org>2016-11-28 21:05:06 +0100
committerRaphaël Hertzog <hertzog@debian.org>2016-11-28 21:05:06 +0100
commit63af37b9c51294d6a176dcd726176047790a7589 (patch)
tree9f88f62595d127a404921bc4fa2b65530aa9206d /scripts
parent2ea1329746adb3ddbbe10f97d82bc06e8990b7ba (diff)
downloadvyos-live-build-63af37b9c51294d6a176dcd726176047790a7589.tar.gz
vyos-live-build-63af37b9c51294d6a176dcd726176047790a7589.zip
Copy sub-directories as well as files in grub config directory
This is to cover the case of a theme included in that directory.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/build/binary_loopback_cfg2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/build/binary_loopback_cfg b/scripts/build/binary_loopback_cfg
index 52943dc44..4688d49d2 100755
--- a/scripts/build/binary_loopback_cfg
+++ b/scripts/build/binary_loopback_cfg
@@ -374,7 +374,7 @@ fi
# Copying templates
mkdir -p binary/boot/grub
-cp "${_SOURCE}"/* binary/boot/grub/
+cp -a "${_SOURCE}"/* binary/boot/grub/
sed -i -e "s|LINUX_LIVE|${LINUX_LIVE}|" -e "s|LINUX_INSTALL|${LINUX_INSTALL}|" -e "s|MEMTEST|${MEMTEST}|" binary/boot/grub/*.cfg
sed -i -e "s#LB_BOOTAPPEND_INSTALL#${LB_BOOTAPPEND_INSTALL}#" -e "s#LB_BOOTAPPEND_LIVE#${LB_BOOTAPPEND_LIVE}#" binary/boot/grub/*.cfg