summaryrefslogtreecommitdiff
path: root/scripts/live-helpers
diff options
context:
space:
mode:
authorMarco Amadori <marco.amadori@gmail.com>2008-09-27 11:18:15 +0200
committerDaniel Baumann <daniel@debian.org>2011-03-09 17:48:02 +0100
commit990480f58dde1722f8ab87514b4443c1ea418b85 (patch)
treeaaca791799942a733d09d8d391a8276c68c8cc7d /scripts/live-helpers
parent7e61a38fb7e7c6c2fdcb0b01c526b6fefc3a87e6 (diff)
downloadlive-boot-990480f58dde1722f8ab87514b4443c1ea418b85.tar.gz
live-boot-990480f58dde1722f8ab87514b4443c1ea418b85.zip
Search for partition labels only (Closes: #486469).
* Added new way to call "persistent" at boot: "persistent=nofiles" will skip the scan for image files in block device and it will only search for partition labels.
Diffstat (limited to 'scripts/live-helpers')
-rw-r--r--scripts/live-helpers7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/live-helpers b/scripts/live-helpers
index 44bb12a..a935001 100644
--- a/scripts/live-helpers
+++ b/scripts/live-helpers
@@ -313,6 +313,13 @@ find_cow_device ()
return
fi
+ if [ "${PERSISTENT}" = "nofiles" ]
+ then
+ # do not mount the device to find for image files
+ # just skip this
+ break
+ fi
+
case "$(get_fstype ${devname})" in
vfat|ext2|ext3|jffs2)
mkdir -p "${cow_backing}"