Skip to content

Commit

Permalink
scripts/live: Make 'nopersistent' parameter actually disable persistence
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 Mar 26, 2008
1 parent f82531b commit ee0a586
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/live
Expand Up @@ -992,7 +992,7 @@ setup_unionfs ()
mkdir -p /cow

# Looking for "${root_persistence}" device or file
if [ -n "${PERSISTENT}" ]
if [ -n "${PERSISTENT}" ] && [ -z "${NOPERSISTENT}" ]
then
cowprobe=$(find_cow_device "${root_persistence}")

Expand All @@ -1005,7 +1005,7 @@ setup_unionfs ()
cowdevice="tmpfs"
cow_fstype="tmpfs"
fi
elif [ -n "${NFS_COW}" ]
elif [ -n "${NFS_COW}" ] && [ -z "${NOPERSISTENT}" ]
then
# check if there are any nfs options
if echo ${NFS_COW}|grep -q ','
Expand Down Expand Up @@ -1075,7 +1075,7 @@ setup_unionfs ()
mount -t tmpfs tmpfs ${rootmnt}/live

# Adding other custom mounts
if [ -n "${PERSISTENT}" ]
if [ -n "${PERSISTENT}" ] && [ -z "${NOPERSISTENT}" ]
then
# directly mount /home
# FIXME: add a custom mounts configurable system
Expand Down

0 comments on commit ee0a586

Please sign in to comment.