diff options
author | Daniel Baumann <daniel@debian.org> | 2007-09-23 10:05:15 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 18:22:26 +0100 |
commit | c79ab34a7c597c9e3ab202c644121c6944789424 (patch) | |
tree | 324691f4f851c719b864229b399584f035b2873f /helpers/lh_binary_yaboot | |
parent | 0d5ff4ca7596790f853cf637e0fe225cad810a76 (diff) | |
download | live-build-c79ab34a7c597c9e3ab202c644121c6944789424.zip live-build-c79ab34a7c597c9e3ab202c644121c6944789424.tar.gz |
Adding live-helper 1.0~a19-1.
Diffstat (limited to 'helpers/lh_binary_yaboot')
-rwxr-xr-x | helpers/lh_binary_yaboot | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/helpers/lh_binary_yaboot b/helpers/lh_binary_yaboot index 00bc15f..c915e1d 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 |