summaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2008-09-29 20:11:09 +0200
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:03:42 +0100
commit4718372f13b011b51514e8a4c6fbf92460572a3f (patch)
tree2e8564de955736c71e91ac4b282bf45e8591e5e8 /functions
parent15a8c9ab3d57c0467ddc375e5e7685612ee1abef (diff)
downloadvyos-live-build-4718372f13b011b51514e8a4c6fbf92460572a3f.tar.gz
vyos-live-build-4718372f13b011b51514e8a4c6fbf92460572a3f.zip
Automatically correct LH_SETUP value if the configured losetup cannot be found.
Diffstat (limited to 'functions')
-rwxr-xr-xfunctions/defaults.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/functions/defaults.sh b/functions/defaults.sh
index b36f1d080..0c3989f90 100755
--- a/functions/defaults.sh
+++ b/functions/defaults.sh
@@ -164,7 +164,7 @@ Set_defaults ()
fi
# Setting losetup
- if [ -z "${LH_LOSETUP}" ]
+ if [ -z "${LH_LOSETUP}" ] || [ ! -x /sbin/${LH_LOSETUP} ]
then
# Workaround for loop-aes-utils divertion
# (loop-aes-utils' losetup lacks features).