summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTails developers <amnesia@boum.org>2015-02-15 17:26:47 +0000
committerDaniel Baumann <mail@daniel-baumann.ch>2015-05-17 20:31:06 +0200
commitaebd12f70f50d59c2f7afe1923087e3c61dce3c1 (patch)
tree568b6096846b9ef05369e5cc08b3d8f6230ce51e
parent94de28deace2c7c3df13790f326f9206d5fe898e (diff)
downloadlive-boot-aebd12f70f50d59c2f7afe1923087e3c61dce3c1.tar.gz
live-boot-aebd12f70f50d59c2f7afe1923087e3c61dce3c1.zip
Removing attempt to mount overlayfs in an obsolete way.
The version of overlayfs that reached Linux mainline does not support this mount call, no need to try it every time.
-rwxr-xr-xcomponents/9990-misc-helpers.sh23
1 files changed, 10 insertions, 13 deletions
diff --git a/components/9990-misc-helpers.sh b/components/9990-misc-helpers.sh
index e58f283..25d6fd7 100755
--- a/components/9990-misc-helpers.sh
+++ b/components/9990-misc-helpers.sh
@@ -1314,19 +1314,16 @@ do_union ()
panic "overlay needs at least one lower filesystem (read-only branch)."
fi
unionmountopts="-o noatime,lowerdir=${unionro},upperdir=${unionrw}"
- if ! mount -t ${UNIONTYPE} ${unionmountopts} ${UNIONTYPE} "${unionmountpoint}" 2>/dev/null
- then
- # Ref: kiwi from OpenSuse kiwi-7.02.18-1.1
- # overlayfs in version >= v22 behaves differently
- # + renamed from overlayfs to overlay
- # + requires a workdir to become mounted
- # + requires workdir and upperdir to reside under the same mount
- # + requires workdir and upperdir to be in separate subdirs
- mkdir ${unionrw}/rw
- mkdir ${unionrw}/work
- unionmountopts="-o noatime,lowerdir=${unionro},upperdir=${unionrw}/rw,workdir=${unionrw}/work"
- mount -t ${UNIONTYPE} ${unionmountopts} ${UNIONTYPE} "${unionmountpoint}"
- fi
+ # Ref: kiwi from OpenSuse kiwi-7.02.18-1.1
+ # overlayfs in version >= v22 behaves differently
+ # + renamed from overlayfs to overlay
+ # + requires a workdir to become mounted
+ # + requires workdir and upperdir to reside under the same mount
+ # + requires workdir and upperdir to be in separate subdirs
+ mkdir ${unionrw}/rw
+ mkdir ${unionrw}/work
+ unionmountopts="-o noatime,lowerdir=${unionro},upperdir=${unionrw}/rw,workdir=${unionrw}/work"
+ mount -t ${UNIONTYPE} ${unionmountopts} ${UNIONTYPE} "${unionmountpoint}"
;;
esac