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_memtest | |
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_memtest')
-rwxr-xr-x | helpers/lh_binary_memtest | 32 |
1 files changed, 27 insertions, 5 deletions
diff --git a/helpers/lh_binary_memtest b/helpers/lh_binary_memtest index 97fa8ab..586e362 100755 --- a/helpers/lh_binary_memtest +++ b/helpers/lh_binary_memtest @@ -57,6 +57,17 @@ then exit 0 fi +if [ "${LIVE_CHROOT_BUILD}" = "enabled" ] +then + + if [ -f chroot/usr/sbin/grub ] && [ ! -d chroot/boot/grub ] + then + GRUB="yes" + + mkdir -p chroot/boot/grub + fi +fi + # Checking depends case "${LIVE_MEMTEST}" in memtest86) @@ -68,6 +79,9 @@ case "${LIVE_MEMTEST}" in ;; esac +# Restoring cache +Restore_cache cache/packages_binary + # Installing depends Install_package @@ -114,18 +128,26 @@ Check_multiarchitecture mkdir -p "${DESTDIR}" # Installing memtest -case "${LIVE_MEMTEST}" in - memtest86) - cp -f chroot/boot/memtest86.bin "${DESTDIR}"/memtest +case "${LIVE_CHROOT_BUILD}" in + enabled) + cp chroot/boot/${LIVE_MEMTEST}.bin "${DESTDIR}"/memtest ;; - memtest86+) - cp -f chroot/boot/memtest86+.bin "${DESTDIR}"/memtest + disabled) + cp /boot/${LIVE_MEMTEST}.bin "${DESTDIR}"/memtest ;; esac +# Saving cache +Save_cache cache/packages_binary + # Removing depends Remove_package +if [ "${GRUB}" ] +then + rm -rf chroot/boot/grub +fi + # Creating stage file Create_stagefile .stage/binary_memtest |