summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Amadori <amadorim@vdavda.com>2008-09-16 17:12:00 +0200
committerDaniel Baumann <daniel@debian.org>2011-03-09 17:48:02 +0100
commit31d899e6c14d658569d70f6fe62a0fbe1f750fa9 (patch)
tree4a274113d4b82c48587cf725fa96bfea21af476f
parente44b1421fb3fcfac5097f946a7b40863dd60a364 (diff)
downloadlive-boot-31d899e6c14d658569d70f6fe62a0fbe1f750fa9.tar.gz
live-boot-31d899e6c14d658569d70f6fe62a0fbe1f750fa9.zip
Set -u in live-snapshot only in debug mode.
* Although is really fine to have checks for unboud variables, this limits also included code, where unbound variables could be used as feature. Set LIVE_SNAPSHOT_CHECK_UNBOUND to have it on again in your test runs.
-rwxr-xr-xbin/live-snapshot7
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/live-snapshot b/bin/live-snapshot
index b81a6af..f77541f 100755
--- a/bin/live-snapshot
+++ b/bin/live-snapshot
@@ -30,7 +30,12 @@
ROOTSNAP=""
HOMESNAP=""
-set -eu
+if [ -n "${LIVE_SNAPSHOT_CHECK_UNBOUND}" ]
+then
+ set -eu
+else
+ set -e
+fi
. /usr/share/initramfs-tools/scripts/live-helpers