* 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.
live swapon
live nouser
live noxautoconfig
live swapon
live nouser
live noxautoconfig
+live persistent[=nofiles]
live {preseed/file|file}=FILE
live package/question=VALUE
live quickreboot
live {preseed/file|file}=FILE
live package/question=VALUE
live quickreboot
if you either do the detection on your own, or, if you want to ship a custom,
premade xorg.conf in your live system.
if you either do the detection on your own, or, if you want to ship a custom,
premade xorg.conf in your live system.
live-initramfs will look for persistent and snapshot partitions or files labeled
"live-rw", "home-rw", and files called "live-sn*", "home-sn*" and will try to,
in order: mount as /cow the first, mount the second in /home, and just copy the
contents of the latter in appropriate locations (snapshots). Snapshots will be
tried to be updated on reboot/shutdown. Look at live-snapshot(1) for more
live-initramfs will look for persistent and snapshot partitions or files labeled
"live-rw", "home-rw", and files called "live-sn*", "home-sn*" and will try to,
in order: mount as /cow the first, mount the second in /home, and just copy the
contents of the latter in appropriate locations (snapshots). Snapshots will be
tried to be updated on reboot/shutdown. Look at live-snapshot(1) for more
+informations. If "nofiles" is specified too, only labels will be searched and no
+filesystems will be mounted for searching file images or archives; this will
+results in improved boot times.
{preseed/file|file}=**FILE**::
{preseed/file|file}=**FILE**::
+ persistent=*)
+ PERSISTENT="${ARGUMENT#persistent=}"
+ if [ -z "${PERSISTENT}" ]
+ then
+ PERSISTENT="Yes"
+ fi
+ export PERSISTENT
+ ;;
+
nopersistent)
NOPERSISTENT="Yes"
export NOPERSISTENT
nopersistent)
NOPERSISTENT="Yes"
export NOPERSISTENT
{
# Look for ${snap_label}.* in block devices
snap_label="${1}"
{
# Look for ${snap_label}.* in block devices
snap_label="${1}"
- snapdata=$(find_files "${snap_label}.squashfs ${snap_label}.cpio.gz ${snap_label}.ext2 ${snap_label}.ext3 ${snap_label}.jffs2")
+
+ if [ "${PERSISTENT}" != "nofiles" ]
+ then
+ # search for image files
+ snapdata=$(find_files "${snap_label}.squashfs ${snap_label}.cpio.gz ${snap_label}.ext2 ${snap_label}.ext3 ${snap_label}.jffs2")
+ fi
+
if [ -z "${snapdata}" ]
then
snapdata=$(find_cow_device "${snap_label}")
if [ -z "${snapdata}" ]
then
snapdata=$(find_cow_device "${snap_label}")
+ 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}"
case "$(get_fstype ${devname})" in
vfat|ext2|ext3|jffs2)
mkdir -p "${cow_backing}"