summaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2008-12-01 23:49:58 +0100
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:03:45 +0100
commit95918265bcb1850310859e49e46c683a4e9fdb0a (patch)
tree04cbcc3cb2987ee3888ace81fb481c2841ba1b3d /functions
parent20395438d2e6ca985499273db45b0e5381c599cc (diff)
downloadvyos-live-build-95918265bcb1850310859e49e46c683a4e9fdb0a.tar.gz
vyos-live-build-95918265bcb1850310859e49e46c683a4e9fdb0a.zip
Correcting defaults check for diverted losetup binary to also cope with host systems that do install loop-aes-utils after populating live-helper config.
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 0469ca04b..284114284 100755
--- a/functions/defaults.sh
+++ b/functions/defaults.sh
@@ -162,7 +162,7 @@ Set_defaults ()
fi
# Setting losetup
- if [ -z "${LH_LOSETUP}" ] || [ ! -x /sbin/${LH_LOSETUP} ]
+ if [ -z "${LH_LOSETUP}" ] || [ "${LH_LOSETUP}" != "/sbin/losetup.orig" ]
then
# Workaround for loop-aes-utils divertion
# (loop-aes-utils' losetup lacks features).