summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2007-09-23 14:05:14 +0200
committerDaniel Baumann <daniel@debian.org>2007-09-23 14:05:14 +0200
commit09faf3f24b1d24394071fc651685436a269c37a4 (patch)
treeee8ee0943fa4857b6d405a80d7e112db343f5bcf
parentf3706cd7f2fa293fed28523c760715967a7ae2e1 (diff)
downloadvyos-live-build-09faf3f24b1d24394071fc651685436a269c37a4.tar.gz
vyos-live-build-09faf3f24b1d24394071fc651685436a269c37a4.zip
Handling case when memtest is disabled.
-rwxr-xr-xhelpers/lh_source_debian5
1 files changed, 4 insertions, 1 deletions
diff --git a/helpers/lh_source_debian b/helpers/lh_source_debian
index e939e6ca5..8e600007d 100755
--- a/helpers/lh_source_debian
+++ b/helpers/lh_source_debian
@@ -76,12 +76,15 @@ case "${LH_ARCHITECTURE}" in
amd64|i386)
cat >> chroot/root/dpkg-selection.txt << EOF
-${LH_MEMTEST}
mtools
syslinux
grub
EOF
+if [ "${LH_MEMTEST}" != "disabled" ] && [ "${LH_MEMTEST}" != "none" ]
+then
+ echo "${LH_MEMTEST}" >> chroot/root/dpkg-selection.txt
+fi
;;
powerpc)