summaryrefslogtreecommitdiff
path: root/helpers/lh_binary_yaboot
diff options
context:
space:
mode:
Diffstat (limited to 'helpers/lh_binary_yaboot')
-rwxr-xr-xhelpers/lh_binary_yaboot20
1 files changed, 18 insertions, 2 deletions
diff --git a/helpers/lh_binary_yaboot b/helpers/lh_binary_yaboot
index 00bc15f2d..c915e1d63 100755
--- a/helpers/lh_binary_yaboot
+++ b/helpers/lh_binary_yaboot
@@ -60,6 +60,9 @@ Check_architecture powerpc ppc64
# Checking depends
Check_package chroot/usr/lib/yaboot/yaboot yaboot
+# Restoring cache
+Restore_cache cache/packages_binary
+
# Installing depends
Install_package
@@ -239,8 +242,18 @@ case "${LIVE_BINARY_IMAGES}" in
iso|usb-hdd)
# Copying yaboot
mkdir -p binary/yaboot
- cp chroot/usr/lib/yaboot/yaboot binary/yaboot
- cp -r "${LIVE_TEMPLATES}"/yaboot/* binary/yaboot
+
+ case "${LIVE_CHROOT_BUILD}" in
+ enabled)
+ cp chroot/usr/lib/yaboot/yaboot binary/yaboot
+ ;;
+
+ disabled)
+ cp /usr/lib/yaboot/yaboot binary/yaboot
+ ;;
+ esac
+
+ cp -r "${TEMPLATES}"/* binary/yaboot
if [ "${LIVE_BINARY_IMAGES}" = "usb-hdd" ]
then
@@ -257,6 +270,9 @@ case "${LIVE_BINARY_IMAGES}" in
;;
esac
+# Saving cache
+Save_cache cache/packages_binary
+
# Removing depends
Remove_package