From: Daniel Baumann Date: Sun, 18 Apr 2010 18:41:59 +0000 (+0200) Subject: Adding upstream version 1.154.4. X-Git-Tag: upstream/1.154.4 X-Git-Url: http://git.grml.org/?a=commitdiff_plain;h=refs%2Ftags%2Fupstream%2F1.154.4;p=live-boot-grml.git Adding upstream version 1.154.4. --- diff --git a/scripts/live b/scripts/live index 2b8ff01..d06dd20 100755 --- a/scripts/live +++ b/scripts/live @@ -427,6 +427,11 @@ Arguments () export PLAIN_ROOT ;; + skipunion) + SKIP_UNION_MOUNTS="Yes" + export SKIP_UNION_MOUNTS + ;; + root=*) ROOT="${ARGUMENT#root=}" export ROOT @@ -1085,6 +1090,12 @@ setup_unionfs () do imagename=$(basename "${image}") + export image devname + maybe_break live-realpremount + log_begin_msg "Running /scripts/live-realpremount" + run_scripts /scripts/live-realpremount + log_end_msg + if [ -d "${image}" ] then # it is a plain directory: do nothing @@ -1242,8 +1253,12 @@ setup_unionfs () mount --bind ${exposedrootfs} ${rootmnt} || \ panic "bind mount of ${exposedrootfs} failed" - cow_dirs='/var/tmp /var/lock /var/run /var/log /var/spool - /home /var/lib/live' + if [ -z "${SKIP_UNION_MOUNTS}" ] + then + cow_dirs='/var/tmp /var/lock /var/run /var/log /var/spool /home /var/lib/live' + else + cow_dirs='' + fi for dir in ${cow_dirs}; do mkdir -p /cow${dir}