Skip to content

Commit

Permalink
Set default cow_mountopt where the other defaults are used.
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
  • Loading branch information
lamby committed Jul 31, 2008
1 parent 9fce4d8 commit bd2cfbe
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scripts/live
Expand Up @@ -1109,6 +1109,7 @@ setup_unionfs ()
else
cowdevice="tmpfs"
cow_fstype="tmpfs"
cow_mountopt="rw,noatime,mode=755"
fi

if [ "${cow_fstype}" = "nfs" ]
Expand All @@ -1118,8 +1119,6 @@ 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
Expand Down

0 comments on commit bd2cfbe

Please sign in to comment.