summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMichael Prokop <mika@grml.org>2008-07-17 13:23:00 +0200
committerDaniel Baumann <daniel@debian.org>2011-03-09 17:48:00 +0100
commit330394c83e8bd37b9c155fb336af37d9ec689e25 (patch)
treeeb70e79ff91bc3208021dc9d1b0411a91793dcb2 /scripts
parent6e598ce949be588a8eddc6fd8ca3b5a004db61b7 (diff)
downloadlive-boot-330394c83e8bd37b9c155fb336af37d9ec689e25.tar.gz
live-boot-330394c83e8bd37b9c155fb336af37d9ec689e25.zip
Make sure mounting /cow-tmpfs provides mount options.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/live2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/live b/scripts/live
index 15710c2..22d2210 100755
--- a/scripts/live
+++ b/scripts/live
@@ -1118,6 +1118,8 @@ setup_unionfs ()
nfsmount ${nfs_cow_opts} ${cowdevice} /cow || \
panic "Can not mount ${cowdevice} (n: ${cow_fstype}) on /cow"
else
+ # make sure cow_mountopt is set:
+ [ -n "$cow_mountopt" ] || cow_mountopt="rw,noatime,mode=755"
mount -t ${cow_fstype} -o ${cow_mountopt} ${cowdevice} /cow || \
panic "Can not mount ${cowdevice} (o: ${cow_fstype}) on /cow"
fi