[SCM] live-boot branch, upstream, updated. upstream/3.0_a25-1-g90dae80

Daniel Baumann daniel at debian.org
Thu Apr 5 06:21:43 UTC 2012


The following commit has been merged in the upstream branch:
commit 90dae80c77de812d37ca504b842a71ee515001c3
Author: Daniel Baumann <daniel at debian.org>
Date:   Thu Apr 5 08:20:49 2012 +0200

    Adding upstream version 3.0~a26.

diff --git a/VERSION b/VERSION
index c693afd..7575db3 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-3.0~a25-1
+3.0~a26-1
diff --git a/bin/boot.sh b/bin/boot.sh
new file mode 100644
index 0000000..a61499c
--- /dev/null
+++ b/bin/boot.sh
@@ -0,0 +1,198 @@
+#!/bin/sh
+
+# Exit if system was not booted by live-boot
+grep -qs boot=live /proc/cmdline || exit 0
+
+DO_SNAPSHOT=/sbin/live-snapshot
+SNAPSHOT_CONF="/etc/live/boot.d/snapshot.conf"
+
+# Read snapshot configuration variables
+[ -r ${SNAPSHOT_CONF} ] && . ${SNAPSHOT_CONF}
+
+# Define LSB log_* functions.
+# Depend on lsb-base (>= 3.0-6) to ensure that this file is present.
+. /lib/lsb/init-functions
+
+# Try to cache everything we're likely to need after ejecting.  This
+# is fragile and simple-minded, but our options are limited.
+cache_path()
+{
+	path="${1}"
+
+	if [ -d "${path}" ]
+	then
+		find "${path}" -type f | xargs cat > /dev/null 2>&1
+	elif [ -f "${path}" ]
+	then
+		if file -L "${path}" | grep -q 'dynamically linked'
+		then
+			# ldd output can be of three forms:
+			# 1. linux-vdso.so.1 =>  (0x00007fffe3fb4000)
+			#    This is a virtual, kernel shared library and we want to skip it
+			# 2. libc.so.6 => /lib/libc.so.6 (0x00007f5e9dc0c000)
+			#    We want to cache the third word.
+			# 3. /lib64/ld-linux-x86-64.so.2 (0x00007f5e9df8b000)
+			#    We want to cache the first word.
+			ldd "${path}" | while read line
+			do
+				if echo "$line" | grep -qs ' =>  '
+				then
+					continue
+				elif echo "$line" | grep -qs ' => '
+				then
+					lib=$(echo "${line}" | awk '{ print $3 }')
+				else
+					lib=$(echo "${line}" | awk '{ print $1 }')
+				fi
+				cache_path "${lib}"
+			done
+		fi
+
+		cat "${path}" >/dev/null 2>&1
+	fi
+}
+
+get_boot_device()
+{
+	# search in /proc/mounts for the device that is mounted at /live/image
+	while read DEVICE MOUNT REST
+	do
+		if [ "${MOUNT}" = "/live/image" ]
+		then
+			echo "${DEVICE}"
+			exit 0
+		fi
+	done < /proc/mounts
+}
+
+device_is_USB_flash_drive()
+{
+	# remove leading "/dev/" and all trailing numbers from input
+	DEVICE=$(expr substr ${1} 6 3)
+
+	# check that device starts with "sd"
+	[ "$(expr substr ${DEVICE} 1 2)" != "sd" ] && return 1
+
+	# check that the device is an USB device
+	if readlink /sys/block/${DEVICE} | grep -q usb
+	then
+		return 0
+	fi
+
+	return 1
+}
+
+log_begin_msg "live-boot: resyncing snapshots and caching reboot files..."
+
+if ! grep -qs nopersistent /proc/cmdline && grep -qs persistent /proc/cmdline
+then
+	# ROOTSNAP and HOMESNAP are defined in ${SNAPSHOT_CONF} file
+	if [ ! -z "${ROOTSNAP}" ]
+	then
+		${DO_SNAPSHOT} --resync-string="${ROOTSNAP}"
+	fi
+
+	if [ ! -z "${HOMESNAP}" ]
+	then
+		${DO_SNAPSHOT} --resync-string="${HOMESNAP}"
+	fi
+fi
+
+# check for netboot
+if [ ! -z "${NETBOOT}" ] || grep -qs netboot /proc/cmdline || grep -qsi root=/dev/nfs /proc/cmdline  || grep -qsi root=/dev/cifs /proc/cmdline
+then
+	return 0
+fi
+
+# check for toram
+if grep -qs toram /proc/cmdline
+then
+	return 0
+fi
+
+# Don't prompt to eject the SD card on Babbage board, where we reuse it
+# as a quasi-boot-floppy. Technically this uses a bit of ubiquity
+# (archdetect), but since this is mostly only relevant for
+# installations, who cares ...
+if type archdetect >/dev/null 2>&1
+then
+	subarch="$(archdetect)"
+
+	case $subarch in
+		arm*/imx51)
+			return 0
+			;;
+	esac
+fi
+
+prompt=1
+if [ "${NOPROMPT}" = "Yes" ]
+then
+	prompt=
+fi
+
+for path in $(which halt) $(which reboot) /etc/rc?.d /etc/default $(which stty) /bin/plymouth
+do
+	cache_path "${path}"
+done
+
+for x in $(cat /proc/cmdline)
+do
+	case ${x} in
+		quickreboot)
+			QUICKREBOOT="Yes"
+			;;
+	esac
+done
+
+mount -o remount,ro /live/cow
+
+if [ -z ${QUICKREBOOT} ]
+then
+	# Exit if the system was booted from an ISO image rather than a physical CD
+	grep -qs find_iso= /proc/cmdline && return 0
+	# TODO: i18n
+	BOOT_DEVICE="$(get_boot_device)"
+
+	if device_is_USB_flash_drive ${BOOT_DEVICE}
+	then
+		# do NOT eject USB flash drives!
+		# otherwise rebooting with most USB flash drives
+		# failes because they actually remember the
+		# "ejected" state even after reboot
+		MESSAGE="Please remove the USB flash drive"
+
+		if [ "${NOPROMPT}" = "usb" ]
+		then
+			prompt=
+		fi
+
+	else
+		# ejecting is a very good idea here
+		MESSAGE="Please remove the disc, close the tray (if any)"
+
+		if [ -x /usr/bin/eject ]
+		then
+			eject -p -m /live/image >/dev/null 2>&1
+		fi
+
+		if [ "${NOPROMPT}" = "cd" ]
+		then
+			prompt=
+		fi
+	fi
+
+	[ "$prompt" ] || return 0
+
+	if [ -x /bin/plymouth ] && plymouth --ping
+	then
+		plymouth message --text="${MESSAGE} and press ENTER to continue:"
+		plymouth watch-keystroke > /dev/null
+	else
+		stty sane < /dev/console
+
+		printf "\n\n${MESSAGE} and press ENTER to continue:" > /dev/console
+
+		read x < /dev/console
+	fi
+fi
diff --git a/manpages/de/live-boot.de.7 b/manpages/de/live-boot.de.7
index 21f6680..632f85d 100644
--- a/manpages/de/live-boot.de.7
+++ b/manpages/de/live-boot.de.7
@@ -3,14 +3,14 @@
 .\" This file was generated with po4a. Translate the source file.
 .\"
 .\"*******************************************************************
-.TH LIVE\-BOOT 7 2012\-02\-06 3.0~a25\-1 "Debian Live Projekt"
+.TH LIVE\-BOOT 7 2012\-04\-05 3.0~a26\-1 "Debian Live Project"
 
 .SH NAME
-\fBlive\-boot\fP \- System Boot Skripte
+\fBlive\-boot\fP \- System Boot Scripts
 
-.SH BESCHREIBUNG
-\fBlive\-config\fP enthaelt die Skripte welche ein Debian Live System waehrend
-des Startvorganes (early userspace) konfigurieren.
+.SH DESCRIPTION
+\fBlive\-boot\fP contains the scripts that configure a Debian Live system during
+the boot process (early userspace).
 .PP
 .\" FIXME
 live\-boot is a hook for the initramfs\-tools, used to generate a initramfs
@@ -24,27 +24,27 @@ directory where a root filesystems (often a compressed filesystem image like
 squashfs) is stored. If found, it will create a writable environment, using
 aufs, for Debian like systems to boot from.
 
-.SH KONFIGURATION
-\fBlive\-boot\fP kann durch Boot Parameter oder durch Konfigurationsdateien
-konfiguriert werden.
+.SH CONFIGURATION
+\fBlive\-boot\fP can be configured through a boot parameter or a configuration
+file.
 .PP
 To configure the live\-boot parameters used by default in a live image, see
 the \-\-bootappend\-live option in the \fIlb_config\fP(1) manual page.
 
-.SS "Kernel Parameter"
-\fBlive\-boot\fP ist nur dann aktiv, wenn 'boot=live' als Kernel Parameter
-benutzt wird.
+.SS "Kernel Parameters"
+\fBlive\-boot\fP is only activated if 'boot=live' was used as a kernel
+parameter.
 .PP
 In addition, there are some more boot parameters to influence the behaviour,
 see below.
 
-.SS Konfigurationsdateien
+.SS "Configuration Files"
 \fBlive\-boot\fP can be configured (but not activated) through configuration
 files. Those files can be placed either in the root filesystem itself
 (/etc/live/boot.conf, /etc/live/boot.d/), or on the live media
 (live/boot.conf, live/boot.d/).
 
-.SH OPTIONEN
+.SH OPTIONS
 .\" FIXME
 \fBlive\-boot\fP currently features the following parameters.
 .IP \fBaccess\fP=\fIACCESS\fP 4
@@ -173,16 +173,16 @@ option has no currently no effect when booting with toram.
 .IP \fBswapon\fP 4
 This parameter enables usage of local swap partitions.
 .IP \fBpersistent\fP 4
-live\-boot will probe filesystems for persistent media. These can either be
-the filesystems themselves, if labeled correctly, or image/archive files, if
-named correctly. Overlays are labeled/named either "live\-rw" or "home\-rw"
-and will be mounted on / or /home, respectively; snapshots are labeled/named
+live\-boot will probe devices for persistent media. These can be partitions
+(with the correct GPT name), filesystems (with the correct label) or
+image/archive files (with the correct file name). Overlays are labeled/named
+either "full\-ov", which will be mounted on /, or "custom\-ov", which can be
+completely customized (see \fIlive.persist\fP(5)); snapshots are labeled/named
 either "live\-sn" or "home\-sn" and will be extracted into / or /home,
-respectively (see live\-snapshot(1) for more information). Overlays are
-mounted before snapshots are extracted, and for both overlays and snapshots,
-"live\-*" are handled before "home\-*". Overlay image files and snapshot
-archive files have extensions which determines their filesystem or archive
-type, e.g. "live\-rw.ext3" and "\home\-sn.squashfs".
+respectively (see \fIlive\-snapshot\fP(1) for more information). The order these
+are handled are: full\-ov, custom\-ov, live\-sn, home\-sn. Overlay image files
+and snapshot archive files have extensions which determines their filesystem
+or archive type, e.g. "custom\-ov.ext3" and "\home\-sn.squashfs".
 .IP "\fBpersistent\-encryption\fP=\fITYPE1\fP,\fITYPE2\fP ... \fITYPEn\fP" 4
 This option determines which types of encryption that we allow to be used
 when probing devices for persistent media. If "none" is in the list, we
@@ -278,15 +278,18 @@ as web caches and temporary files (like e.g. /tmp and .mozilla) which are
 regenerated each time. This is achieved by bind mounting each listed
 directory with a tmpfs on the original path.
 
-.SH DATEIEN
+.SH FILES
 .IP \fB/etc/live/boot.conf\fP 4
 .IP \fB/etc/live/boot.d/\fP 4
 .IP \fBlive/boot.conf\fP 4
 .IP \fBlive/boot.d/\fP 4
+.IP \fBlive.persist\fP 4
 
-.SH "SIEHE AUCH"
+.SH "SEE ALSO"
 \fIlive\-snapshot\fP(1)
 .PP
+\fIlive.persist\fP(5)
+.PP
 \fIlive\-build\fP(7)
 .PP
 \fIlive\-config\fP(7)
@@ -294,17 +297,16 @@ directory with a tmpfs on the original path.
 \fIlive\-tools\fP(7)
 
 .SH HOMEPAGE
-Weitere Informationen ueber live\-boot und das Debian Live Projekt koennen
-auf der Homepage unter <\fIhttp://live.debian.net/\fP> und im Handbuch
-unter <\fIhttp://live.debian.net/manual/\fP> gefunden werden.
+More information about live\-boot and the Debian Live project can be found on
+the homepage at <\fIhttp://live.debian.net/\fP> and in the manual at
+<\fIhttp://live.debian.net/manual/\fP>.
 
-.SH FEHLER
-Fehler koennen durch Einreichen eines Fehlerberichtes fuer das live\-boot
-Paket im Debian Bug Tracking System unter
-<\fIhttp://bugs.debian.org/\fP> oder durch Senden einer E\-Mail an die
-Debian Live Mailing Liste unter <\fIdebian\-live at lists.debian.org\fP>
-(englischsprachig) mitgeteilt werden.
+.SH BUGS
+Bugs can be reported by submitting a bugreport for the live\-boot package in
+the Debian Bug Tracking System at <\fIhttp://bugs.debian.org/\fP> or by
+writing a mail to the Debian Live mailing list at
+<\fIdebian\-live at lists.debian.org\fP>.
 
-.SH AUTOR
-live\-boot wurde von Daniel Baumann <\fIdaniel at debian.org\fP> fuer das
-Debian Projekt geschrieben.
+.SH AUTHOR
+live\-boot was written by Daniel Baumann <\fIdaniel at debian.org\fP> for
+the Debian project.
diff --git a/manpages/de/live-snapshot.de.1 b/manpages/de/live-snapshot.de.1
index cdaad14..9b26898 100644
--- a/manpages/de/live-snapshot.de.1
+++ b/manpages/de/live-snapshot.de.1
@@ -3,12 +3,12 @@
 .\" This file was generated with po4a. Translate the source file.
 .\"
 .\"*******************************************************************
-.TH LIVE\-BOOT 1 2012\-02\-06 3.0~a25\-1 "Debian Live Projekt"
+.TH LIVE\-BOOT 1 2012\-04\-05 3.0~a26\-1 "Debian Live Project"
 
 .SH NAME
 \fBlive\-snapshot\fP \- simple script to ease persistence usage
 
-.SH SYNTAX
+.SH SYNOPSIS
 \fBlive\-snapshot\fP [\-c|\-\-cow \fIDIRECTORY] [\-d|\-\-device DEVICE\fP]
 [\-e|\-\-exclude\-list \fIFILE\fP] [\-o|\-\-output \fIFILE\fP] [\-t|\-\-type \fITYPE\fP]
 .br
@@ -20,12 +20,12 @@
 .br
 \fBlive\-snapshot\fP [\-v|\-\-version]
 
-.SH BESCHREIBUNG
+.SH DESCRIPTION
 live\-snapshot is a script which can be used to build the right types of
 persistent image files supported by \fIlive\-boot\fP(7). It is also used on exit
 by the live\-boot init script to resync the boot\-found snapshots devices.
 
-.SH OPTIONEN
+.SH OPTIONS
 .IP "\-c, \-\-cow \fIDIRECTORY\fP" 4
 specifies the input directory to be cloned in the image file. Its default
 value "/live/cow" should be right for most uses. However it could be handy
@@ -60,7 +60,7 @@ show usage and exit.
 .IP "\-v, \-\-version" 4
 output version information and exit.
 
-.SH DATEIEN
+.SH FILES
 .IP \fB/etc/live.conf\fP 4
 Some variables can be configured via this config file (inside the live
 system).
@@ -89,7 +89,7 @@ files and directories listed there are included (integrally) in the
 snapshot. Beware, it is an experimental feature that only works for cpio
 targets now.
 
-.SH "SIEHE AUCH"
+.SH "SEE ALSO"
 \fIlive\-boot\fP(1)
 .PP
 \fIlive\-build\fP(7)
@@ -99,17 +99,16 @@ targets now.
 \fIlive\-tools\fP(7)
 
 .SH HOMEPAGE
-Weitere Informationen ueber live\-boot und das Debian Live Projekt koennen
-auf der Homepage unter <\fIhttp://live.debian.net/\fP> und im Handbuch
-unter <\fIhttp://live.debian.net/manual/\fP> gefunden werden.
+More information about live\-boot and the Debian Live project can be found on
+the homepage at <\fIhttp://live.debian.net/\fP> and in the manual at
+<\fIhttp://live.debian.net/manual/\fP>.
 
-.SH FEHLER
-Fehler koennen durch Einreichen eines Fehlerberichtes fuer das live\-boot
-Paket im Debian Bug Tracking System unter
-<\fIhttp://bugs.debian.org/\fP> oder durch Senden einer E\-Mail an die
-Debian Live Mailing Liste unter <\fIdebian\-live at lists.debian.org\fP>
-(englischsprachig) mitgeteilt werden.
+.SH BUGS
+Bugs can be reported by submitting a bugreport for the live\-boot package in
+the Debian Bug Tracking System at <\fIhttp://bugs.debian.org/\fP> or by
+writing a mail to the Debian Live mailing list at
+<\fIdebian\-live at lists.debian.org\fP>.
 
-.SH AUTOR
-live\-boot wurde von Daniel Baumann <\fIdaniel at debian.org\fP> fuer das
-Debian Projekt geschrieben.
+.SH AUTHOR
+live\-boot was written by Daniel Baumann <\fIdaniel at debian.org\fP> for
+the Debian project.
diff --git a/manpages/de/live.persist.5.de.persist b/manpages/de/live.persist.5.de.persist
new file mode 100644
index 0000000..672bb7d
--- /dev/null
+++ b/manpages/de/live.persist.5.de.persist
@@ -0,0 +1,209 @@
+.\"*******************************************************************
+.\"
+.\" This file was generated with po4a. Translate the source file.
+.\"
+.\"*******************************************************************
+.TH LIVE\-BOOT persist 2012\-04\-05 3.0~a26\-1 "Debian Live Project"
+
+.SH NAME
+\fBlive.persist\fP \- Configuration file for persistent media in live\-boot
+
+.SH DESCRIPTION
+If live\-boot probes a persistent volume with the label (or GPT name, or file
+name, but from now on we will just say "label") "custom\-ov", that volume's
+persistence is fully customizable through the \fBlive.persist\fP file stored on
+the root of its file system. Any such labeled volume must have such a file,
+or it will be ignored.
+.PP
+The format of \fBlive.persist\fP allow empty lines and lines starting with a
+"#" (used for comments), both which will be ignored. A so called "custom
+mount" has the format:
+.PP
+.RS
+\fIDIR\fP [\fIOPTION\fP]...
+.RE
+.PP
+which roughly translates to "make \fIDIR\fP persistent in the way described by
+the list of \fIOPTION\fPs".
+.PP
+For each custom mount \fIDIR\fP must be an absolute path that cannot contain
+white spaces or the special . and .. path components, and cannot be /live
+(or any of its sub\-directories), or / (for the latter, use "full\-ov"
+persistence instead). Once activated all changes (file deletion, creation
+and modification) to \fIDIR\fP on the live file system are stored persistently
+into a path equivalent to \fIDIR\fP on the persistent media, called the source
+directory. The default way to achieve persistence is to simply bind\-mount
+the corresponding source directory to \fIDIR\fP, but this can be changed
+through the use of \fIOPTION\fPs.
+.PP
+All custom mounts will be done in an order so that no two custom mounts can
+"hide" each other. For instance, if we have the two \fIDIR\fP:s /a and /a/b it
+would always be the case that /a is mounted first, then /a/b. This remains
+true no matter how the lines in \fBlive.persist\fP are ordered, or if several
+\fBlive.persist\fP files on different persistent media are used at the same
+time. However, it is forbidden for custom mounts to have their source
+directory inside the source directory of another custom mount, so the source
+directories that are auto\-created by live\-boot does not support "nested"
+mounts like /a and /a/b on the same media. In this case you must use the
+\fBsource\fP option (see below) to make sure that they are stored in different
+source directories.
+.PP
+When a source directory doesn't exist on the persistent media for a certain
+custom mount, it will be created automatically, and permissions and
+ownership will be optimistically set according to \fIDIR\fP. It will also be
+bootstrapped by copying the contents of the \fIDIR\fP into its source directory
+on the persistent media. The bootstrapping will not happen when the
+\fBlinkfiles\fP or \fBunion\fP options are used (see below).
+
+.SH OPTIONS
+Custom mounts defined in \fBlive.persist\fP accept the following options in a
+coma\-separated list:
+.IP \fBsource\fP=\fIPATH\fP 4
+When given, store the persistent changes into \fIPATH\fP on the persistent
+media. \fIPATH\fP must be a relative path (w.r.t. the persistent media root)
+that cannot contain white spaces or the special . or .. path components,
+with the exception that it can be just . which means the persistent media
+root. This option is mostly relevant if you want to nest custom mounts,
+which otherwise would cause errors, or if you want to make the whole media
+root available (similar to the now deprecated \fBhome\-rw\fP type of
+persistence).
+.PP
+The following options are mutually exclusive (only the last given one will
+be in effect):
+.IP \fBbind\fP 4
+Bind\-mount the source directory to \fIDIR\fP. This is the default.
+.IP \fBlinkfiles\fP 4
+Create the directory structure of the source directory on the persistent
+media in \fIDIR\fP and create symbolic links from the corresponding place in
+\fIDIR\fP to each file in the source directory.  Existing files or directories
+with the same name as any link will be overwritten. Note that deleting the
+links in \fIDIR\fP will only remove the link, not the corresponding file in the
+source; removed links will reappear after a reboot. To permanently add or
+delete a file one must do so directly in the source directory.
+.IP
+Effectively \fBlinkfiles\fP will make only files already in the source
+directory persistent, not any other files in \fIDIR\fP. These files must be
+manually added to the source directory to make use of this option, and they
+will appear in \fIDIR\fP in addition to files already there. This option is
+useful when only certain files need to be persistent, not the whole
+directory they're in, e.g. some configuration files in a user's home
+directory.
+.IP \fBunion\fP 4
+Save the rw branch of a union on the persistent media, so only the changes
+are stored persistently. This can potentially reduce disk usage compared to
+bind\-mounts, and will not hide files added to the read\-only media. One
+caveat is that the union will use \fIDIR\fP from the image's read\-only file
+system, not the real file system root, so files created after boot (e.g. by
+live\-config) will not appear in the union. This option will use the union
+file system specified by live\-boot's \fBunion\fP boot parameter, but is not
+supported with \fBunion=unionmount\fP.
+
+.SH DIRECTORIES
+.IP \fB/live/persistent\fP 4
+All persistent volumes will be mounted here (in a directory corresponding to
+the device name). The \fBlive.persist\fP file can easily be edited through this
+mount, as well as any source directories (which is especially practical for
+custom mounts using the \fBlinkfiles\fP option).
+
+.SH EXAMPLES
+
+Let's say we have a persistent volume \fIVOL\fP with the a \fBlive.persist\fP file
+containing the following four lines (numbered for ease of reference):
+.TP  7
+1.
+/home/user1 linkfiles,source=config\-files/user1
+.TP 
+2.
+/home/user2 linkfiles,source=config\-files/user2
+.TP 
+3.
+/home
+.TP 
+4.
+/usr union
+.PP
+The corresponding source directories are:
+.TP  7
+1.
+\fIVOL\fP/config\-files/user1 (but it would be \fIVOL\fP/home/user1 without the
+\fBsource\fP option)
+.TP 
+2.
+\fIVOL\fP/config\-files/user2 (but it would be \fIVOL\fP/home/user2 without the
+\fBsource\fP option)
+.TP 
+3.
+\fIVOL\fP/home
+.TP 
+4.
+\fIVOL\fP/usr
+.PP
+It was necessary to set the \fBsource\fP options for 1 and 2, since they
+otherwise would become nested with 3's source, which is illegal.
+.PP
+Line 3 will be taken care of before line 1 and 2 in order to prevent custom
+mounts 1 and 2 from being hidden by 3. When line 3 is handled, \fIVOL\fP/home
+is simply bind\-mounted on /home. To illustrate what happens for lines 1 and
+2, let's say that the following files exist:
+.TP  7
+a.
+\fIVOL\fP/config\-files/user1/.emacs
+.TP 
+b.
+\fIVOL\fP/config\-files/user2/.bashrc
+.TP 
+c.
+\fIVOL\fP/config\-files/user2/.ssh/config
+.PP
+Then the following links and directories will be created:
+.TP  7
+Link:
+/home/user1/.emacs \-> \fIVOL\fP/config\-files/user1/.emacs (from a)
+.TP 
+Link:
+/home/user2/.bashrc \-> \fIVOL\fP/config\-files/user2/.bashrc (from b)
+.TP 
+Dir:
+/homea/user2/.ssh (from c)
+.TP 
+Link:
+/home/user2/.ssh/config \-> \fIVOL\fP/config\-files/user2/.ssh/config (from
+c)
+.PP
+One could argue, though, that lines 1 and 2 in the example \fBlive.persist\fP
+file above are unnecessary since line 3 already would make all of /home
+persistent. The \fBlinkfiles\fP option is intended for situations where you
+don't want a complete directory to be persistent, only certain files in it
+or its sub\-directories.
+.PP
+Line 4 can be mounted at any time since its \fIDIR\fP (and source directory) is
+completely disjoint from all the other custom mounts. When mounted,
+\fIVOL\fP/usr will be the rw branch due to the \fBunion\fP option, and will only
+contain the difference compared to the underlying read\-only file
+system. Hence packages could be installed into /usr with great space\-wise
+efficiency compared to bind\-mounts, since in the latter case all of /usr
+would have to be copied into \fIVOL\fP/usr during the initial bootstrap.
+
+.SH "SEE ALSO"
+\fIlive\-boot\fP(7)
+.PP
+\fIlive\-build\fP(7)
+.PP
+\fIlive\-config\fP(7)
+.PP
+\fIlive\-tools\fP(7)
+
+.SH HOMEPAGE
+More information about live\-boot and the Debian Live project can be found on
+the homepage at <\fIhttp://live.debian.net/\fP> and in the manual at
+<\fIhttp://live.debian.net/manual/\fP>.
+
+.SH BUGS
+Bugs can be reported by submitting a bugreport for the live\-boot package in
+the Debian Bug Tracking System at <\fIhttp://bugs.debian.org/\fP> or by
+writing a mail to the Debian Live mailing list at
+<\fIdebian\-live at lists.debian.org\fP>.
+
+.SH AUTHOR
+live.persist was written by anonym <\fIanonym at lavabit.com\fP> for the
+Debian project.
diff --git a/manpages/en/live-boot.7 b/manpages/en/live-boot.7
index ad6d1d2..946eeb7 100644
--- a/manpages/en/live-boot.7
+++ b/manpages/en/live-boot.7
@@ -1,4 +1,4 @@
-.TH LIVE\-BOOT 7 2012\-02\-06 3.0~a25-1 "Debian Live Project"
+.TH LIVE\-BOOT 7 2012\-04\-05 3.0~a26-1 "Debian Live Project"
 
 .SH NAME
 \fBlive\-boot\fR \- System Boot Scripts
@@ -107,7 +107,7 @@ This parameters allows to set a custom ramdisk size (it's the '\-o size' option
 .IP "\fBswapon\fR" 4
 This parameter enables usage of local swap partitions.
 .IP "\fBpersistent\fR" 4
-live\-boot will probe filesystems for persistent media. These can either be the filesystems themselves, if labeled correctly, or image/archive files, if named correctly. Overlays are labeled/named either "live\-rw" or "home\-rw" and will be mounted on / or /home, respectively; snapshots are labeled/named either "live\-sn" or "home\-sn" and will be extracted into / or /home, respectively (see live\-snapshot(1) for more information). Overlays are mounted before snapshots are extracted, and for both overlays and snapshots, "live\-*" are handled before "home\-*". Overlay image files and snapshot archive files have extensions which determines their filesystem or archive type, e.g. "live\-rw.ext3" and "\home\-sn.squashfs".
+live\-boot will probe devices for persistent media. These can be partitions (with the correct GPT name), filesystems (with the correct label) or image/archive files (with the correct file name). Overlays are labeled/named either "full\-ov", which will be mounted on /, or "custom\-ov", which can be completely customized (see \fIlive.persist\fR(5)); snapshots are labeled/named either "live\-sn" or "home\-sn" and will be extracted into / or /home, respectively (see \fIlive\-snapshot\fR(1) for more information). The order these are handled are: full\-ov, custom\-ov, live-sn, home-sn. Overlay image files and snapshot archive files have extensions which determines their filesystem or archive type, e.g. "custom\-ov.ext3" and "\home\-sn.squashfs".
 .IP "\fBpersistent\-encryption\fR=\fITYPE1\fR,\fITYPE2\fR ... \fITYPEn\fR" 4
 This option determines which types of encryption that we allow to be used when probing devices for persistent media. If "none" is in the list, we allow unencrypted media; if "luks" is in the list, we allow LUKS\-encrypted media. Whenever a device containing encrypted media is probed the user will be prompted for the passphrase. The default value is "none".
 .IP "\fBpersistent\-media\fR={\fIremovable\fR|\fIremovable\-usb\fR}" 4
@@ -157,10 +157,13 @@ This saves expensive writes and speeds up operations on volatile data such as we
 .IP "\fB/etc/live/boot.d/\fR" 4
 .IP "\fBlive/boot.conf\fR" 4
 .IP "\fBlive/boot.d/\fR" 4
+.IP "\fBlive.persist\fR" 4
 
 .SH SEE ALSO
 \fIlive\-snapshot\fR(1)
 .PP
+\fIlive.persist\fR(5)
+.PP
 \fIlive\-build\fR(7)
 .PP
 \fIlive\-config\fR(7)
diff --git a/manpages/en/live-snapshot.1 b/manpages/en/live-snapshot.1
index a7daa55..0e88a32 100644
--- a/manpages/en/live-snapshot.1
+++ b/manpages/en/live-snapshot.1
@@ -1,4 +1,4 @@
-.TH LIVE\-BOOT 1 2012\-02\-06 3.0~a25-1 "Debian Live Project"
+.TH LIVE\-BOOT 1 2012\-04\-05 3.0~a26-1 "Debian Live Project"
 
 .SH NAME
 \fBlive\-snapshot\fR \- simple script to ease persistence usage
diff --git a/manpages/en/live.persist.5 b/manpages/en/live.persist.5
new file mode 100644
index 0000000..615eb7a
--- /dev/null
+++ b/manpages/en/live.persist.5
@@ -0,0 +1,213 @@
+.TH LIVE\-BOOT persist 2012\-04\-05 3.0~a26-1 "Debian Live Project"
+
+.SH NAME
+\fBlive.persist\fR \- Configuration file for persistent media in
+live\-boot
+
+.SH DESCRIPTION
+If live-boot probes a persistent volume with the label (or GPT name,
+or file name, but from now on we will just say "label") "custom\-ov",
+that volume's persistence is fully customizable through the
+\fBlive.persist\fR file stored on the root of its file system. Any such
+labeled volume must have such a file, or it will be ignored.
+.PP
+The format of \fBlive.persist\fR allow empty lines and lines starting
+with a "#" (used for comments), both which will be ignored. A so
+called "custom mount" has the format:
+.PP
+.RS
+\fIDIR\fR [\fIOPTION\fR]...
+.RE
+.PP
+which roughly translates to "make \fIDIR\fR persistent in the way
+described by the list of \fIOPTION\fRs".
+.PP
+For each custom mount \fIDIR\fR must be an absolute path that cannot
+contain white spaces or the special . and .. path components, and
+cannot be /live (or any of its sub-directories), or / (for the latter,
+use "full-ov" persistence instead). Once activated all changes (file
+deletion, creation and modification) to \fIDIR\fR on the live file
+system are stored persistently into a path equivalent to \fIDIR\fR on
+the persistent media, called the source directory. The default way to
+achieve persistence is to simply bind-mount the corresponding source
+directory to \fIDIR\fR, but this can be changed through the use of
+\fIOPTION\fRs.
+.PP
+All custom mounts will be done in an order so that no two custom
+mounts can "hide" each other. For instance, if we have the two
+\fIDIR\fR:s /a and /a/b it would always be the case that /a is mounted
+first, then /a/b. This remains true no matter how the lines in
+\fBlive.persist\fR are ordered, or if several \fBlive.persist\fR files
+on different persistent media are used at the same time. However, it
+is forbidden for custom mounts to have their source directory inside
+the source directory of another custom mount, so the source
+directories that are auto-created by live-boot does not support
+"nested" mounts like /a and /a/b on the same media. In this case you
+must use the \fBsource\fR option (see below) to make sure that they
+are stored in different source directories.
+.PP
+When a source directory doesn't exist on the persistent media for a
+certain custom mount, it will be created automatically, and
+permissions and ownership will be optimistically set according to
+\fIDIR\fR. It will also be bootstrapped by copying the contents of the
+\fIDIR\fR into its source directory on the persistent media. The
+bootstrapping will not happen when the \fBlinkfiles\fR or \fBunion\fR
+options are used (see below).
+
+.SH OPTIONS
+Custom mounts defined in \fBlive.persist\fR accept the following
+options in a coma-separated list:
+.IP "\fBsource\fR=\fIPATH\fR" 4
+When given, store the persistent changes into \fIPATH\fR on the
+persistent media. \fIPATH\fR must be a relative path (w.r.t. the
+persistent media root) that cannot contain white spaces or the
+special . or .. path components, with the exception that it can be
+just . which means the persistent media root. This option is mostly
+relevant if you want to nest custom mounts, which otherwise would
+cause errors, or if you want to make the whole media root available
+(similar to the now deprecated \fBhome-rw\fR type of persistence).
+.PP
+The following options are mutually exclusive (only the last given one
+will be in effect):
+.IP "\fBbind\fR" 4
+Bind-mount the source directory to \fIDIR\fR. This is the default.
+.IP "\fBlinkfiles\fR" 4
+Create the directory structure of the source directory on the
+persistent media in \fIDIR\fR and create symbolic links from the
+corresponding place in \fIDIR\fR to each file in the source directory.
+Existing files or directories with the same name as any link will be
+overwritten. Note that deleting the links in \fIDIR\fR will only
+remove the link, not the corresponding file in the source; removed
+links will reappear after a reboot. To permanently add or delete a
+file one must do so directly in the source directory.
+.IP
+Effectively \fBlinkfiles\fR will make only files already in the source
+directory persistent, not any other files in \fIDIR\fR. These files
+must be manually added to the source directory to make use of this
+option, and they will appear in \fIDIR\fR in addition to files already
+there. This option is useful when only certain files need to be
+persistent, not the whole directory they're in, e.g. some
+configuration files in a user's home directory.
+.IP "\fBunion\fR" 4
+Save the rw branch of a union on the persistent media, so only the
+changes are stored persistently. This can potentially reduce disk
+usage compared to bind-mounts, and will not hide files added to the
+read-only media. One caveat is that the union will use \fIDIR\fR from
+the image's read-only file system, not the real file system root, so
+files created after boot (e.g. by live-config) will not appear in the
+union. This option will use the union file system specified by
+live-boot's \fBunion\fR boot parameter, but is not supported with
+\fBunion=unionmount\fR.
+
+.SH DIRECTORIES
+.IP "\fB/live/persistent\fR" 4
+All persistent volumes will be mounted here (in a directory
+corresponding to the device name). The \fBlive.persist\fR file can
+easily be edited through this mount, as well as any source directories
+(which is especially practical for custom mounts using the
+\fBlinkfiles\fR option).
+
+.SH EXAMPLES
+
+Let's say we have a persistent volume \fIVOL\fR with the a
+\fBlive.persist\fR file containing the following four lines (numbered
+for ease of reference):
+.TP 7
+1.
+/home/user1 linkfiles,source=config-files/user1
+.TP
+2.
+/home/user2 linkfiles,source=config-files/user2
+.TP
+3.
+/home
+.TP
+4.
+/usr union
+.PP
+The corresponding source directories are:
+.TP 7
+1.
+\fIVOL\fR/config-files/user1 (but it would be \fIVOL\fR/home/user1
+without the \fBsource\fR option)
+.TP
+2.
+\fIVOL\fR/config-files/user2 (but it would be \fIVOL\fR/home/user2
+without the \fBsource\fR option)
+.TP
+3.
+\fIVOL\fR/home
+.TP
+4.
+\fIVOL\fR/usr
+.PP
+It was necessary to set the \fBsource\fR options for 1 and 2, since
+they otherwise would become nested with 3's source, which is illegal.
+.PP
+Line 3 will be taken care of before line 1 and 2 in order to prevent
+custom mounts 1 and 2 from being hidden by 3. When line 3 is handled,
+\fIVOL\fR/home is simply bind-mounted on /home. To illustrate what
+happens for lines 1 and 2, let's say that the following files exist:
+.TP 7
+a.
+\fIVOL\fR/config-files/user1/.emacs
+.TP
+b.
+\fIVOL\fR/config-files/user2/.bashrc
+.TP
+c.
+\fIVOL\fR/config-files/user2/.ssh/config
+.PP
+Then the following links and directories will be created:
+.TP 7
+Link:
+/home/user1/.emacs -> \fIVOL\fR/config-files/user1/.emacs (from a)
+.TP
+Link:
+/home/user2/.bashrc -> \fIVOL\fR/config-files/user2/.bashrc (from b)
+.TP
+Dir:
+/homea/user2/.ssh (from c)
+.TP
+Link:
+/home/user2/.ssh/config -> \fIVOL\fR/config-files/user2/.ssh/config
+(from c)
+.PP
+One could argue, though, that lines 1 and 2 in the example
+\fBlive.persist\fR file above are unnecessary since line 3 already
+would make all of /home persistent. The \fBlinkfiles\fR option is
+intended for situations where you don't want a complete directory to
+be persistent, only certain files in it or its sub-directories.
+.PP
+Line 4 can be mounted at any time since its \fIDIR\fR (and source
+directory) is completely disjoint from all the other custom
+mounts. When mounted, \fIVOL\fR/usr will be the rw branch due to the
+\fBunion\fR option, and will only contain the difference compared to
+the underlying read-only file system. Hence packages could be
+installed into /usr with great space-wise efficiency compared to
+bind-mounts, since in the latter case all of /usr would have to be
+copied into \fIVOL\fR/usr during the initial bootstrap.
+
+.SH SEE ALSO
+\fIlive\-boot\fR(7)
+.PP
+\fIlive\-build\fR(7)
+.PP
+\fIlive\-config\fR(7)
+.PP
+\fIlive\-tools\fR(7)
+
+.SH HOMEPAGE
+More information about live\-boot and the Debian Live project can be
+found on the homepage at <\fIhttp://live.debian.net/\fR> and in the
+manual at <\fIhttp://live.debian.net/manual/\fR>.
+
+.SH BUGS
+Bugs can be reported by submitting a bugreport for the live\-boot
+package in the Debian Bug Tracking System at
+<\fIhttp://bugs.debian.org/\fR> or by writing a mail to the Debian
+Live mailing list at <\fIdebian-live at lists.debian.org\fR>.
+
+.SH AUTHOR
+live\.persist was written by anonym <\fIanonym at lavabit.com\fR> for the
+Debian project.
diff --git a/manpages/po/de/live-boot.7.po b/manpages/po/de/live-boot.7.po
index c1e8a99..1583e8d 100644
--- a/manpages/po/de/live-boot.7.po
+++ b/manpages/po/de/live-boot.7.po
@@ -1,13 +1,13 @@
 # German translations for live-boot package
-# Copyright (C) 2006-2010 Daniel Baumann <daniel at debian.org>
+# 2010-2012 Daniel Baumann <daniel at debian.org>
 # This file is distributed under the same license as the live-boot package.
 #
 msgid ""
 msgstr ""
-"Project-Id-Version: live-boot 3.0~a22-1\n"
-"POT-Creation-Date: 2012-02-06 23:27+0100\n"
-"PO-Revision-Date: 2010-05-24 12:34+0300\n"
-"Last-Translator: Daniel Baumann <daniel at debian.org>\n"
+"Project-Id-Version: live-boot 3.0~a26\n"
+"POT-Creation-Date: 2012-04-05 08:11+0300\n"
+"PO-Revision-Date: 2012-04-05 08:11+0300\n"
+"Last-Translator: Automatically generated\n"
 "Language-Team: none\n"
 "Language: de\n"
 "MIME-Version: 1.0\n"
@@ -16,47 +16,45 @@ msgstr ""
 "Plural-Forms: nplurals=2; plural=(n != 1);\n"
 
 #. type: TH
-#: en/live-boot.7:1 en/live-snapshot.1:1
+#: en/live-boot.7:1 en/live-snapshot.1:1 en/live.persist.5:1
 #, no-wrap
 msgid "LIVE-BOOT"
-msgstr "LIVE-BOOT"
+msgstr ""
 
 #. type: TH
-#: en/live-boot.7:1 en/live-snapshot.1:1
-#, fuzzy, no-wrap
-#| msgid "2011-12-04"
-msgid "2012-02-06"
-msgstr "04.12.2011"
+#: en/live-boot.7:1 en/live-snapshot.1:1 en/live.persist.5:1
+#, no-wrap
+msgid "2012-04-05"
+msgstr ""
 
 #. type: TH
-#: en/live-boot.7:1 en/live-snapshot.1:1
-#, fuzzy, no-wrap
-#| msgid "3.0~a24-1"
-msgid "3.0~a25-1"
-msgstr "3.0~a24-1"
+#: en/live-boot.7:1 en/live-snapshot.1:1 en/live.persist.5:1
+#, no-wrap
+msgid "3.0~a26-1"
+msgstr ""
 
 #. type: TH
-#: en/live-boot.7:1 en/live-snapshot.1:1
+#: en/live-boot.7:1 en/live-snapshot.1:1 en/live.persist.5:1
 #, no-wrap
 msgid "Debian Live Project"
-msgstr "Debian Live Projekt"
+msgstr ""
 
 #. type: SH
-#: en/live-boot.7:3 en/live-snapshot.1:3
+#: en/live-boot.7:3 en/live-snapshot.1:3 en/live.persist.5:3
 #, no-wrap
 msgid "NAME"
-msgstr "NAME"
+msgstr ""
 
 #. type: Plain text
 #: en/live-boot.7:5
 msgid "B<live-boot> - System Boot Scripts"
-msgstr "B<live-boot> - System Boot Skripte"
+msgstr ""
 
 #. type: SH
-#: en/live-boot.7:6 en/live-snapshot.1:17
+#: en/live-boot.7:6 en/live-snapshot.1:17 en/live.persist.5:7
 #, no-wrap
 msgid "DESCRIPTION"
-msgstr "BESCHREIBUNG"
+msgstr ""
 
 #. type: Plain text
 #: en/live-boot.7:8
@@ -64,8 +62,6 @@ msgid ""
 "B<live-boot> contains the scripts that configure a Debian Live system during "
 "the boot process (early userspace)."
 msgstr ""
-"B<live-config> enthaelt die Skripte welche ein Debian Live System waehrend "
-"des Startvorganes (early userspace) konfigurieren."
 
 #.  FIXME
 #. type: Plain text
@@ -90,7 +86,7 @@ msgstr ""
 #: en/live-boot.7:15
 #, no-wrap
 msgid "CONFIGURATION"
-msgstr "KONFIGURATION"
+msgstr ""
 
 #. type: Plain text
 #: en/live-boot.7:17
@@ -98,8 +94,6 @@ msgid ""
 "B<live-boot> can be configured through a boot parameter or a configuration "
 "file."
 msgstr ""
-"B<live-boot> kann durch Boot Parameter oder durch Konfigurationsdateien "
-"konfiguriert werden."
 
 #. type: Plain text
 #: en/live-boot.7:19
@@ -112,15 +106,13 @@ msgstr ""
 #: en/live-boot.7:20
 #, no-wrap
 msgid "Kernel Parameters"
-msgstr "Kernel Parameter"
+msgstr ""
 
 #. type: Plain text
 #: en/live-boot.7:22
 msgid ""
 "B<live-boot> is only activated if 'boot=live' was used as a kernel parameter."
 msgstr ""
-"B<live-boot> ist nur dann aktiv, wenn 'boot=live' als Kernel Parameter "
-"benutzt wird."
 
 #. type: Plain text
 #: en/live-boot.7:24
@@ -133,7 +125,7 @@ msgstr ""
 #: en/live-boot.7:25
 #, no-wrap
 msgid "Configuration Files"
-msgstr "Konfigurationsdateien"
+msgstr ""
 
 #. type: Plain text
 #: en/live-boot.7:27
@@ -145,10 +137,10 @@ msgid ""
 msgstr ""
 
 #. type: SH
-#: en/live-boot.7:28 en/live-snapshot.1:20
+#: en/live-boot.7:28 en/live-snapshot.1:20 en/live.persist.5:57
 #, no-wrap
 msgid "OPTIONS"
-msgstr "OPTIONEN"
+msgstr ""
 
 #.  FIXME
 #. type: Plain text
@@ -160,7 +152,7 @@ msgstr ""
 #: en/live-boot.7:31
 #, no-wrap
 msgid "B<access>=I<ACCESS>"
-msgstr "B<access>=I<ACCESS>"
+msgstr ""
 
 #. type: Plain text
 #: en/live-boot.7:33
@@ -175,7 +167,7 @@ msgstr ""
 #: en/live-boot.7:33
 #, no-wrap
 msgid "B<console>=I<TTY,SPEED>"
-msgstr "B<console>=I<TTY,SPEED>"
+msgstr ""
 
 #. type: Plain text
 #: en/live-boot.7:35
@@ -188,7 +180,7 @@ msgstr ""
 #: en/live-boot.7:35
 #, no-wrap
 msgid "B<debug>"
-msgstr "B<debug>"
+msgstr ""
 
 #. type: Plain text
 #: en/live-boot.7:37
@@ -209,13 +201,13 @@ msgstr ""
 #: en/live-boot.7:41
 #, no-wrap
 msgid "B<fetch>=I<URL>"
-msgstr "B<fetch>=I<URL>"
+msgstr ""
 
 #. type: IP
 #: en/live-boot.7:42
 #, no-wrap
 msgid "B<httpfs>=I<URL>"
-msgstr "B<httpfs>=I<URL>"
+msgstr ""
 
 #. type: Plain text
 #: en/live-boot.7:50
@@ -306,7 +298,7 @@ msgstr ""
 #: en/live-boot.7:71
 #, no-wrap
 msgid "B<ignore_uuid>"
-msgstr "B<ignore_uuid>"
+msgstr ""
 
 #. type: Plain text
 #: en/live-boot.7:73
@@ -320,7 +312,7 @@ msgstr ""
 #: en/live-boot.7:73
 #, no-wrap
 msgid "B<integrity-check>"
-msgstr "B<integrity-check>"
+msgstr ""
 
 #. type: Plain text
 #: en/live-boot.7:75
@@ -350,7 +342,7 @@ msgstr ""
 #: en/live-boot.7:77
 #, no-wrap
 msgid "B<ip>=[I<frommedia>]"
-msgstr "B<ip>=[I<frommedia>]"
+msgstr ""
 
 #. type: Plain text
 #: en/live-boot.7:79
@@ -364,7 +356,7 @@ msgstr ""
 #: en/live-boot.7:79
 #, no-wrap
 msgid "{B<live-media>|B<bootfrom>}=I<DEVICE>"
-msgstr "{B<live-media>|B<bootfrom>}=I<DEVICE>"
+msgstr ""
 
 #. type: Plain text
 #: en/live-boot.7:81
@@ -388,7 +380,7 @@ msgstr ""
 #: en/live-boot.7:83
 #, no-wrap
 msgid "{B<live-media-encryption>|B<encryption>}=I<TYPE>"
-msgstr "{B<live-media-encryption>|B<encryption>}=I<TYPE>"
+msgstr ""
 
 #. type: Plain text
 #: en/live-boot.7:85
@@ -402,7 +394,7 @@ msgstr ""
 #: en/live-boot.7:85
 #, no-wrap
 msgid "B<live-media-offset>=I<BYTES>"
-msgstr "B<live-media-offset>=I<BYTES>"
+msgstr ""
 
 #. type: Plain text
 #: en/live-boot.7:87
@@ -417,7 +409,7 @@ msgstr ""
 #: en/live-boot.7:87
 #, no-wrap
 msgid "B<live-media-path>=I<PATH>"
-msgstr "B<live-media-path>=I<PATH>"
+msgstr ""
 
 #. type: Plain text
 #: en/live-boot.7:89
@@ -431,7 +423,7 @@ msgstr ""
 #: en/live-boot.7:89
 #, no-wrap
 msgid "B<live-media-timeout>=I<SECONDS>"
-msgstr "B<live-media-timeout>=I<SECONDS>"
+msgstr ""
 
 #. type: Plain text
 #: en/live-boot.7:91
@@ -444,7 +436,7 @@ msgstr ""
 #: en/live-boot.7:91
 #, no-wrap
 msgid "B<module>=I<NAME>"
-msgstr "B<module>=I<NAME>"
+msgstr ""
 
 #. type: Plain text
 #: en/live-boot.7:93
@@ -458,7 +450,7 @@ msgstr ""
 #: en/live-boot.7:93
 #, no-wrap
 msgid "B<netboot>[=nfs|cifs]"
-msgstr "B<netboot>[=nfs|cifs]"
+msgstr ""
 
 #. type: Plain text
 #: en/live-boot.7:95
@@ -472,7 +464,7 @@ msgstr ""
 #: en/live-boot.7:95
 #, no-wrap
 msgid "B<nfsopts>="
-msgstr "B<nfsopts>="
+msgstr ""
 
 #. type: Plain text
 #: en/live-boot.7:97
@@ -483,7 +475,7 @@ msgstr ""
 #: en/live-boot.7:97
 #, no-wrap
 msgid "B<nofastboot>"
-msgstr "B<nofastboot>"
+msgstr ""
 
 #. type: Plain text
 #: en/live-boot.7:99
@@ -497,7 +489,7 @@ msgstr ""
 #: en/live-boot.7:99
 #, no-wrap
 msgid "B<nopersistent>"
-msgstr "B<nopersistent>"
+msgstr ""
 
 #. type: Plain text
 #: en/live-boot.7:101
@@ -510,7 +502,7 @@ msgstr ""
 #: en/live-boot.7:101
 #, no-wrap
 msgid "B<noprompt>"
-msgstr "B<noprompt>"
+msgstr ""
 
 #. type: Plain text
 #: en/live-boot.7:103
@@ -521,7 +513,7 @@ msgstr ""
 #: en/live-boot.7:103
 #, no-wrap
 msgid "B<noprompt>=I<TYPE>"
-msgstr "B<noprompt>=I<TYPE>"
+msgstr ""
 
 #. type: Plain text
 #: en/live-boot.7:105
@@ -549,7 +541,7 @@ msgstr ""
 #: en/live-boot.7:107
 #, no-wrap
 msgid "B<swapon>"
-msgstr "B<swapon>"
+msgstr ""
 
 #. type: Plain text
 #: en/live-boot.7:109
@@ -560,21 +552,22 @@ msgstr ""
 #: en/live-boot.7:109
 #, no-wrap
 msgid "B<persistent>"
-msgstr "B<persistent>"
+msgstr ""
 
 #. type: Plain text
 #: en/live-boot.7:111
 msgid ""
-"live-boot will probe filesystems for persistent media. These can either be "
-"the filesystems themselves, if labeled correctly, or image/archive files, if "
-"named correctly. Overlays are labeled/named either \"live-rw\" or \"home-rw"
-"\" and will be mounted on / or /home, respectively; snapshots are labeled/"
+"live-boot will probe devices for persistent media. These can be partitions "
+"(with the correct GPT name), filesystems (with the correct label) or image/"
+"archive files (with the correct file name). Overlays are labeled/named "
+"either \"full-ov\", which will be mounted on /, or \"custom-ov\", which can "
+"be completely customized (see I<live.persist>(5)); snapshots are labeled/"
 "named either \"live-sn\" or \"home-sn\" and will be extracted into / or /"
-"home, respectively (see live-snapshot(1) for more information). Overlays are "
-"mounted before snapshots are extracted, and for both overlays and snapshots, "
-"\"live-*\" are handled before \"home-*\". Overlay image files and snapshot "
-"archive files have extensions which determines their filesystem or archive "
-"type, e.g. \"live-rw.ext3\" and \"\\home-sn.squashfs\"."
+"home, respectively (see I<live-snapshot>(1) for more information). The order "
+"these are handled are: full-ov, custom-ov, live-sn, home-sn. Overlay image "
+"files and snapshot archive files have extensions which determines their "
+"filesystem or archive type, e.g. \"custom-ov.ext3\" and \"\\home-sn.squashfs"
+"\"."
 msgstr ""
 
 #. type: IP
@@ -627,7 +620,7 @@ msgstr ""
 #: en/live-boot.7:117
 #, no-wrap
 msgid "B<persistent-path>=I<PATH>"
-msgstr "B<persistent-path>=I<PATH>"
+msgstr ""
 
 #. type: Plain text
 #: en/live-boot.7:119
@@ -641,7 +634,7 @@ msgstr ""
 #: en/live-boot.7:119
 #, no-wrap
 msgid "B<persistent-read-only>"
-msgstr "B<persistent-read-only>"
+msgstr ""
 
 #. type: Plain text
 #: en/live-boot.7:121
@@ -671,7 +664,7 @@ msgstr ""
 #: en/live-boot.7:123
 #, no-wrap
 msgid "B<persistent-subtext>=I<SUFFIX>"
-msgstr "B<persistent-subtext>=I<SUFFIX>"
+msgstr ""
 
 #. type: Plain text
 #: en/live-boot.7:125
@@ -687,7 +680,7 @@ msgstr ""
 #: en/live-boot.7:125
 #, no-wrap
 msgid "{B<preseed/file>|B<file>}=I<FILE>"
-msgstr "{B<preseed/file>|B<file>}=I<FILE>"
+msgstr ""
 
 #. type: Plain text
 #: en/live-boot.7:127
@@ -700,7 +693,7 @@ msgstr ""
 #: en/live-boot.7:127
 #, no-wrap
 msgid "B<package/question>=I<VALUE>"
-msgstr "B<package/question>=I<VALUE>"
+msgstr ""
 
 #. type: Plain text
 #: en/live-boot.7:129
@@ -714,7 +707,7 @@ msgstr ""
 #: en/live-boot.7:129
 #, no-wrap
 msgid "B<quickreboot>"
-msgstr "B<quickreboot>"
+msgstr ""
 
 #. type: Plain text
 #: en/live-boot.7:131
@@ -727,7 +720,7 @@ msgstr ""
 #: en/live-boot.7:131
 #, no-wrap
 msgid "B<showmounts>"
-msgstr "B<showmounts>"
+msgstr ""
 
 #. type: Plain text
 #: en/live-boot.7:133
@@ -742,7 +735,7 @@ msgstr ""
 #: en/live-boot.7:133
 #, no-wrap
 msgid "B<silent>"
-msgstr "B<silent>"
+msgstr ""
 
 #. type: Plain text
 #: en/live-boot.7:135
@@ -755,7 +748,7 @@ msgstr ""
 #: en/live-boot.7:135
 #, no-wrap
 msgid "B<todisk>=I<DEVICE>"
-msgstr "B<todisk>=I<DEVICE>"
+msgstr ""
 
 #. type: Plain text
 #: en/live-boot.7:137
@@ -771,7 +764,7 @@ msgstr ""
 #: en/live-boot.7:137
 #, no-wrap
 msgid "B<toram>"
-msgstr "B<toram>"
+msgstr ""
 
 #. type: Plain text
 #: en/live-boot.7:139
@@ -785,7 +778,7 @@ msgstr ""
 #: en/live-boot.7:139
 #, no-wrap
 msgid "B<union>=aufs|unionfs"
-msgstr "B<union>=aufs|unionfs"
+msgstr ""
 
 #.  FIXME
 #. type: Plain text
@@ -806,7 +799,7 @@ msgstr ""
 #: en/live-boot.7:145 en/live-snapshot.1:43
 #, no-wrap
 msgid "B</etc/live.conf>"
-msgstr "B</etc/live.conf>"
+msgstr ""
 
 #. type: Plain text
 #: en/live-boot.7:147 en/live-snapshot.1:45
@@ -819,7 +812,7 @@ msgstr ""
 #: en/live-boot.7:147 en/live-snapshot.1:45
 #, no-wrap
 msgid "B<live/filesystem.module>"
-msgstr "B<live/filesystem.module>"
+msgstr ""
 
 #. type: Plain text
 #: en/live-boot.7:149 en/live-snapshot.1:47
@@ -838,7 +831,7 @@ msgstr ""
 #: en/live-boot.7:149 en/live-snapshot.1:47
 #, no-wrap
 msgid "B</etc/live-persistence.binds>"
-msgstr "B</etc/live-persistence.binds>"
+msgstr ""
 
 #. type: Plain text
 #: en/live-boot.7:151 en/live-snapshot.1:49
@@ -862,106 +855,107 @@ msgstr ""
 #: en/live-boot.7:155 en/live-snapshot.1:42
 #, no-wrap
 msgid "FILES"
-msgstr "DATEIEN"
+msgstr ""
 
 #. type: IP
 #: en/live-boot.7:156
 #, no-wrap
 msgid "B</etc/live/boot.conf>"
-msgstr "B</etc/live/boot.conf>"
+msgstr ""
 
 #. type: IP
 #: en/live-boot.7:157
 #, no-wrap
 msgid "B</etc/live/boot.d/>"
-msgstr "B</etc/live/boot.d/>"
+msgstr ""
 
 #. type: IP
 #: en/live-boot.7:158
 #, no-wrap
 msgid "B<live/boot.conf>"
-msgstr "B<live/boot.conf>"
+msgstr ""
 
 #. type: IP
 #: en/live-boot.7:159
 #, no-wrap
 msgid "B<live/boot.d/>"
-msgstr "B<live/boot.d/>"
+msgstr ""
+
+#. type: IP
+#: en/live-boot.7:160
+#, no-wrap
+msgid "B<live.persist>"
+msgstr ""
 
 #. type: SH
-#: en/live-boot.7:161 en/live-snapshot.1:54
+#: en/live-boot.7:162 en/live-snapshot.1:54 en/live.persist.5:191
 #, no-wrap
 msgid "SEE ALSO"
-msgstr "SIEHE AUCH"
+msgstr ""
 
 #. type: Plain text
-#: en/live-boot.7:163
+#: en/live-boot.7:164
 msgid "I<live-snapshot>(1)"
-msgstr "I<live-snapshot>(1)"
+msgstr ""
 
 #. type: Plain text
-#: en/live-boot.7:165 en/live-snapshot.1:58
+#: en/live-boot.7:166
+msgid "I<live.persist>(5)"
+msgstr ""
+
+#. type: Plain text
+#: en/live-boot.7:168 en/live-snapshot.1:58 en/live.persist.5:195
 msgid "I<live-build>(7)"
-msgstr "I<live-build>(7)"
+msgstr ""
 
 #. type: Plain text
-#: en/live-boot.7:167 en/live-snapshot.1:60
+#: en/live-boot.7:170 en/live-snapshot.1:60 en/live.persist.5:197
 msgid "I<live-config>(7)"
-msgstr "I<live-config>(7)"
+msgstr ""
 
 #. type: Plain text
-#: en/live-boot.7:169 en/live-snapshot.1:62
+#: en/live-boot.7:172 en/live-snapshot.1:62 en/live.persist.5:199
 msgid "I<live-tools>(7)"
-msgstr "I<live-tools>(7)"
+msgstr ""
 
 #. type: SH
-#: en/live-boot.7:170 en/live-snapshot.1:63
+#: en/live-boot.7:173 en/live-snapshot.1:63 en/live.persist.5:200
 #, no-wrap
 msgid "HOMEPAGE"
-msgstr "HOMEPAGE"
+msgstr ""
 
 #. type: Plain text
-#: en/live-boot.7:172 en/live-snapshot.1:65
+#: en/live-boot.7:175 en/live-snapshot.1:65 en/live.persist.5:204
 msgid ""
 "More information about live-boot and the Debian Live project can be found on "
 "the homepage at E<lt>I<http://live.debian.net/>E<gt> and in the manual at "
 "E<lt>I<http://live.debian.net/manual/>E<gt>."
 msgstr ""
-"Weitere Informationen ueber live-boot und das Debian Live Projekt koennen "
-"auf der Homepage unter E<lt>I<http://live.debian.net/>E<gt> und im Handbuch "
-"unter E<lt>I<http://live.debian.net/manual/>E<gt> gefunden werden."
 
 #. type: SH
-#: en/live-boot.7:173 en/live-snapshot.1:66
+#: en/live-boot.7:176 en/live-snapshot.1:66 en/live.persist.5:205
 #, no-wrap
 msgid "BUGS"
-msgstr "FEHLER"
+msgstr ""
 
 #. type: Plain text
-#: en/live-boot.7:175 en/live-snapshot.1:68
+#: en/live-boot.7:178 en/live-snapshot.1:68 en/live.persist.5:210
 msgid ""
 "Bugs can be reported by submitting a bugreport for the live-boot package in "
 "the Debian Bug Tracking System at E<lt>I<http://bugs.debian.org/>E<gt> or by "
 "writing a mail to the Debian Live mailing list at E<lt>I<debian-live at lists."
 "debian.org>E<gt>."
 msgstr ""
-"Fehler koennen durch Einreichen eines Fehlerberichtes fuer das live-boot "
-"Paket im Debian Bug Tracking System unter E<lt>I<http://bugs.debian.org/"
-">E<gt> oder durch Senden einer E-Mail an die Debian Live Mailing Liste unter "
-"E<lt>I<debian-live at lists.debian.org>E<gt> (englischsprachig) mitgeteilt "
-"werden."
 
 #. type: SH
-#: en/live-boot.7:176 en/live-snapshot.1:69
+#: en/live-boot.7:179 en/live-snapshot.1:69 en/live.persist.5:211
 #, no-wrap
 msgid "AUTHOR"
-msgstr "AUTOR"
+msgstr ""
 
 #. type: Plain text
-#: en/live-boot.7:177 en/live-snapshot.1:70
+#: en/live-boot.7:180 en/live-snapshot.1:70
 msgid ""
 "live-boot was written by Daniel Baumann E<lt>I<daniel at debian.org>E<gt> for "
 "the Debian project."
 msgstr ""
-"live-boot wurde von Daniel Baumann E<lt>I<daniel at debian.org>E<gt> fuer das "
-"Debian Projekt geschrieben."
diff --git a/manpages/po/de/live-snapshot.1.po b/manpages/po/de/live-snapshot.1.po
index 2041de2..3907d36 100644
--- a/manpages/po/de/live-snapshot.1.po
+++ b/manpages/po/de/live-snapshot.1.po
@@ -1,13 +1,13 @@
 # German translations for live-boot package
-# Copyright (C) 2006-2010 Daniel Baumann <daniel at debian.org>
+# 2010-2012 Daniel Baumann <daniel at debian.org>
 # This file is distributed under the same license as the live-boot package.
 #
 msgid ""
 msgstr ""
-"Project-Id-Version: live-boot 3.0~a22-1\n"
-"POT-Creation-Date: 2012-02-06 23:27+0100\n"
-"PO-Revision-Date: 2010-05-24 12:34+0300\n"
-"Last-Translator: Daniel Baumann <daniel at debian.org>\n"
+"Project-Id-Version: live-boot 3.0~a26-1\n"
+"POT-Creation-Date: 2012-04-05 08:11+0300\n"
+"PO-Revision-Date: 2012-04-05 08:11+0300\n"
+"Last-Translator: Automatically generated\n"
 "Language-Team: none\n"
 "Language: de\n"
 "MIME-Version: 1.0\n"
@@ -16,54 +16,52 @@ msgstr ""
 "Plural-Forms: nplurals=2; plural=(n != 1);\n"
 
 #. type: TH
-#: en/live-boot.7:1 en/live-snapshot.1:1
+#: en/live-boot.7:1 en/live-snapshot.1:1 en/live.persist.5:1
 #, no-wrap
 msgid "LIVE-BOOT"
-msgstr "LIVE-BOOT"
+msgstr ""
 
 #. type: TH
-#: en/live-boot.7:1 en/live-snapshot.1:1
-#, fuzzy, no-wrap
-#| msgid "2011-12-04"
-msgid "2012-02-06"
-msgstr "04.12.2011"
+#: en/live-boot.7:1 en/live-snapshot.1:1 en/live.persist.5:1
+#, no-wrap
+msgid "2012-04-05"
+msgstr ""
 
 #. type: TH
-#: en/live-boot.7:1 en/live-snapshot.1:1
-#, fuzzy, no-wrap
-#| msgid "3.0~a24-1"
-msgid "3.0~a25-1"
-msgstr "3.0~a24-1"
+#: en/live-boot.7:1 en/live-snapshot.1:1 en/live.persist.5:1
+#, no-wrap
+msgid "3.0~a26-1"
+msgstr ""
 
 #. type: TH
-#: en/live-boot.7:1 en/live-snapshot.1:1
+#: en/live-boot.7:1 en/live-snapshot.1:1 en/live.persist.5:1
 #, no-wrap
 msgid "Debian Live Project"
-msgstr "Debian Live Projekt"
+msgstr ""
 
 #. type: SH
-#: en/live-boot.7:3 en/live-snapshot.1:3
+#: en/live-boot.7:3 en/live-snapshot.1:3 en/live.persist.5:3
 #, no-wrap
 msgid "NAME"
-msgstr "NAME"
+msgstr ""
 
 #. type: SH
-#: en/live-boot.7:6 en/live-snapshot.1:17
+#: en/live-boot.7:6 en/live-snapshot.1:17 en/live.persist.5:7
 #, no-wrap
 msgid "DESCRIPTION"
-msgstr "BESCHREIBUNG"
+msgstr ""
 
 #. type: SH
-#: en/live-boot.7:28 en/live-snapshot.1:20
+#: en/live-boot.7:28 en/live-snapshot.1:20 en/live.persist.5:57
 #, no-wrap
 msgid "OPTIONS"
-msgstr "OPTIONEN"
+msgstr ""
 
 #. type: IP
 #: en/live-boot.7:145 en/live-snapshot.1:43
 #, no-wrap
 msgid "B</etc/live.conf>"
-msgstr "B</etc/live.conf>"
+msgstr ""
 
 #. type: Plain text
 #: en/live-boot.7:147 en/live-snapshot.1:45
@@ -76,7 +74,7 @@ msgstr ""
 #: en/live-boot.7:147 en/live-snapshot.1:45
 #, no-wrap
 msgid "B<live/filesystem.module>"
-msgstr "B<live/filesystem.module>"
+msgstr ""
 
 #. type: Plain text
 #: en/live-boot.7:149 en/live-snapshot.1:47
@@ -95,7 +93,7 @@ msgstr ""
 #: en/live-boot.7:149 en/live-snapshot.1:47
 #, no-wrap
 msgid "B</etc/live-persistence.binds>"
-msgstr "B</etc/live-persistence.binds>"
+msgstr ""
 
 #. type: Plain text
 #: en/live-boot.7:151 en/live-snapshot.1:49
@@ -119,80 +117,70 @@ msgstr ""
 #: en/live-boot.7:155 en/live-snapshot.1:42
 #, no-wrap
 msgid "FILES"
-msgstr "DATEIEN"
+msgstr ""
 
 #. type: SH
-#: en/live-boot.7:161 en/live-snapshot.1:54
+#: en/live-boot.7:162 en/live-snapshot.1:54 en/live.persist.5:191
 #, no-wrap
 msgid "SEE ALSO"
-msgstr "SIEHE AUCH"
+msgstr ""
 
 #. type: Plain text
-#: en/live-boot.7:165 en/live-snapshot.1:58
+#: en/live-boot.7:168 en/live-snapshot.1:58 en/live.persist.5:195
 msgid "I<live-build>(7)"
-msgstr "I<live-build>(7)"
+msgstr ""
 
 #. type: Plain text
-#: en/live-boot.7:167 en/live-snapshot.1:60
+#: en/live-boot.7:170 en/live-snapshot.1:60 en/live.persist.5:197
 msgid "I<live-config>(7)"
-msgstr "I<live-config>(7)"
+msgstr ""
 
 #. type: Plain text
-#: en/live-boot.7:169 en/live-snapshot.1:62
+#: en/live-boot.7:172 en/live-snapshot.1:62 en/live.persist.5:199
 msgid "I<live-tools>(7)"
-msgstr "I<live-tools>(7)"
+msgstr ""
 
 #. type: SH
-#: en/live-boot.7:170 en/live-snapshot.1:63
+#: en/live-boot.7:173 en/live-snapshot.1:63 en/live.persist.5:200
 #, no-wrap
 msgid "HOMEPAGE"
-msgstr "HOMEPAGE"
+msgstr ""
 
 #. type: Plain text
-#: en/live-boot.7:172 en/live-snapshot.1:65
+#: en/live-boot.7:175 en/live-snapshot.1:65 en/live.persist.5:204
 msgid ""
 "More information about live-boot and the Debian Live project can be found on "
 "the homepage at E<lt>I<http://live.debian.net/>E<gt> and in the manual at "
 "E<lt>I<http://live.debian.net/manual/>E<gt>."
 msgstr ""
-"Weitere Informationen ueber live-boot und das Debian Live Projekt koennen "
-"auf der Homepage unter E<lt>I<http://live.debian.net/>E<gt> und im Handbuch "
-"unter E<lt>I<http://live.debian.net/manual/>E<gt> gefunden werden."
 
 #. type: SH
-#: en/live-boot.7:173 en/live-snapshot.1:66
+#: en/live-boot.7:176 en/live-snapshot.1:66 en/live.persist.5:205
 #, no-wrap
 msgid "BUGS"
-msgstr "FEHLER"
+msgstr ""
 
 #. type: Plain text
-#: en/live-boot.7:175 en/live-snapshot.1:68
+#: en/live-boot.7:178 en/live-snapshot.1:68 en/live.persist.5:210
 msgid ""
 "Bugs can be reported by submitting a bugreport for the live-boot package in "
 "the Debian Bug Tracking System at E<lt>I<http://bugs.debian.org/>E<gt> or by "
 "writing a mail to the Debian Live mailing list at E<lt>I<debian-live at lists."
 "debian.org>E<gt>."
 msgstr ""
-"Fehler koennen durch Einreichen eines Fehlerberichtes fuer das live-boot "
-"Paket im Debian Bug Tracking System unter E<lt>I<http://bugs.debian.org/"
-">E<gt> oder durch Senden einer E-Mail an die Debian Live Mailing Liste unter "
-"E<lt>I<debian-live at lists.debian.org>E<gt> (englischsprachig) mitgeteilt "
-"werden."
 
 #. type: SH
-#: en/live-boot.7:176 en/live-snapshot.1:69
+#: en/live-boot.7:179 en/live-snapshot.1:69 en/live.persist.5:211
 #, no-wrap
 msgid "AUTHOR"
-msgstr "AUTOR"
+msgstr ""
 
 #. type: Plain text
-#: en/live-boot.7:177 en/live-snapshot.1:70
+#: en/live-boot.7:180 en/live-snapshot.1:70
 msgid ""
 "live-boot was written by Daniel Baumann E<lt>I<daniel at debian.org>E<gt> for "
 "the Debian project."
 msgstr ""
-"live-boot wurde von Daniel Baumann E<lt>I<daniel at debian.org>E<gt> fuer das "
-"Debian Projekt geschrieben."
 
 #. type: Plain text
 #: en/live-snapshot.1:5
@@ -203,7 +191,7 @@ msgstr ""
 #: en/live-snapshot.1:6
 #, no-wrap
 msgid "SYNOPSIS"
-msgstr "SYNTAX"
+msgstr ""
 
 #. type: Plain text
 #: en/live-snapshot.1:8
@@ -211,28 +199,26 @@ msgid ""
 "B<live-snapshot> [-c|--cow I<DIRECTORY] [-d|--device DEVICE>] [-e|--exclude-"
 "list I<FILE>] [-o|--output I<FILE>] [-t|--type I<TYPE>]"
 msgstr ""
-"B<live-snapshot> [-c|--cow I<DIRECTORY] [-d|--device DEVICE>] [-e|--exclude-"
-"list I<FILE>] [-o|--output I<FILE>] [-t|--type I<TYPE>]"
 
 #. type: Plain text
 #: en/live-snapshot.1:10
 msgid "B<live-snapshot> [-r|--resync-string STRING]"
-msgstr "B<live-snapshot> [-r|--resync-string STRING]"
+msgstr ""
 
 #. type: Plain text
 #: en/live-snapshot.1:12
 msgid "B<live-snapshot> [-h|--help]"
-msgstr "B<live-snapshot> [-h|--help]"
+msgstr ""
 
 #. type: Plain text
 #: en/live-snapshot.1:14
 msgid "B<live-snapshot> [-u|--usage]"
-msgstr "B<live-snapshot> [-u|--usage]"
+msgstr ""
 
 #. type: Plain text
 #: en/live-snapshot.1:16
 msgid "B<live-snapshot> [-v|--version]"
-msgstr "B<live-snapshot> [-v|--version]"
+msgstr ""
 
 #. type: Plain text
 #: en/live-snapshot.1:19
@@ -246,7 +232,7 @@ msgstr ""
 #: en/live-snapshot.1:21
 #, no-wrap
 msgid "-c, --cow I<DIRECTORY>"
-msgstr "-c, --cow I<DIRECTORY>"
+msgstr ""
 
 #. type: Plain text
 #: en/live-snapshot.1:23
@@ -261,7 +247,7 @@ msgstr ""
 #: en/live-snapshot.1:23
 #, no-wrap
 msgid "-d, --device I<DEVICE>"
-msgstr "-d, --device I<DEVICE>"
+msgstr ""
 
 #. type: Plain text
 #: en/live-snapshot.1:25
@@ -278,7 +264,7 @@ msgstr ""
 #: en/live-snapshot.1:25
 #, no-wrap
 msgid "-e, --exclude-list I<FILE>"
-msgstr "-e, --exclude-list I<FILE>"
+msgstr ""
 
 #. type: Plain text
 #: en/live-snapshot.1:27
@@ -291,7 +277,7 @@ msgstr ""
 #: en/live-snapshot.1:27
 #, no-wrap
 msgid "-o, --output I<FILE>"
-msgstr "-o, --output I<FILE>"
+msgstr ""
 
 #. type: Plain text
 #: en/live-snapshot.1:29
@@ -305,7 +291,7 @@ msgstr ""
 #: en/live-snapshot.1:29
 #, no-wrap
 msgid "-r, --resync-string I<STRING>"
-msgstr "-r, --resync-string I<STRING>"
+msgstr ""
 
 #. type: Plain text
 #: en/live-snapshot.1:31
@@ -316,7 +302,7 @@ msgstr ""
 #: en/live-snapshot.1:31
 #, no-wrap
 msgid "-f, --refresh"
-msgstr "-f, --refresh"
+msgstr ""
 
 #. type: Plain text
 #: en/live-snapshot.1:33
@@ -330,7 +316,7 @@ msgstr ""
 #: en/live-snapshot.1:33
 #, no-wrap
 msgid "-t, --type I<TYPE>"
-msgstr "-t, --type I<TYPE>"
+msgstr ""
 
 #. type: Plain text
 #: en/live-snapshot.1:35
@@ -343,7 +329,7 @@ msgstr ""
 #: en/live-snapshot.1:35
 #, no-wrap
 msgid "-h, --help"
-msgstr "-h, --help"
+msgstr ""
 
 #. type: Plain text
 #: en/live-snapshot.1:37
@@ -354,7 +340,7 @@ msgstr ""
 #: en/live-snapshot.1:37
 #, no-wrap
 msgid "-u, --usage"
-msgstr "-u, --usage"
+msgstr ""
 
 #. type: Plain text
 #: en/live-snapshot.1:39
@@ -365,7 +351,7 @@ msgstr ""
 #: en/live-snapshot.1:39
 #, no-wrap
 msgid "-v, --version"
-msgstr "-v, --version"
+msgstr ""
 
 #. type: Plain text
 #: en/live-snapshot.1:41
@@ -376,7 +362,7 @@ msgstr ""
 #: en/live-snapshot.1:51
 #, no-wrap
 msgid "B</etc/live-snapshot.list>"
-msgstr "B</etc/live-snapshot.list>"
+msgstr ""
 
 #. type: Plain text
 #: en/live-snapshot.1:53
@@ -390,4 +376,4 @@ msgstr ""
 #. type: Plain text
 #: en/live-snapshot.1:56
 msgid "I<live-boot>(1)"
-msgstr "I<live-boot>(1)"
+msgstr ""
diff --git a/manpages/po/de/live.persist.5.po b/manpages/po/de/live.persist.5.po
new file mode 100644
index 0000000..d9981d5
--- /dev/null
+++ b/manpages/po/de/live.persist.5.po
@@ -0,0 +1,511 @@
+# German translations for live-boot package
+# 2010-2012 Daniel Baumann <daniel at debian.org>
+# This file is distributed under the same license as the live-boot package.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: live-boot 3.0~a26-1\n"
+"POT-Creation-Date: 2012-04-05 08:11+0300\n"
+"PO-Revision-Date: 2012-04-05 08:11+0300\n"
+"Last-Translator: Automatically generated\n"
+"Language-Team: none\n"
+"Language: de\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=ASCII\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+
+#. type: TH
+#: en/live-boot.7:1 en/live-snapshot.1:1 en/live.persist.5:1
+#, no-wrap
+msgid "LIVE-BOOT"
+msgstr ""
+
+#. type: TH
+#: en/live-boot.7:1 en/live-snapshot.1:1 en/live.persist.5:1
+#, no-wrap
+msgid "2012-04-05"
+msgstr ""
+
+#. type: TH
+#: en/live-boot.7:1 en/live-snapshot.1:1 en/live.persist.5:1
+#, no-wrap
+msgid "3.0~a26-1"
+msgstr ""
+
+#. type: TH
+#: en/live-boot.7:1 en/live-snapshot.1:1 en/live.persist.5:1
+#, no-wrap
+msgid "Debian Live Project"
+msgstr ""
+
+#. type: SH
+#: en/live-boot.7:3 en/live-snapshot.1:3 en/live.persist.5:3
+#, no-wrap
+msgid "NAME"
+msgstr ""
+
+#. type: SH
+#: en/live-boot.7:6 en/live-snapshot.1:17 en/live.persist.5:7
+#, no-wrap
+msgid "DESCRIPTION"
+msgstr ""
+
+#. type: SH
+#: en/live-boot.7:28 en/live-snapshot.1:20 en/live.persist.5:57
+#, no-wrap
+msgid "OPTIONS"
+msgstr ""
+
+#. type: SH
+#: en/live-boot.7:162 en/live-snapshot.1:54 en/live.persist.5:191
+#, no-wrap
+msgid "SEE ALSO"
+msgstr ""
+
+#. type: Plain text
+#: en/live-boot.7:168 en/live-snapshot.1:58 en/live.persist.5:195
+msgid "I<live-build>(7)"
+msgstr ""
+
+#. type: Plain text
+#: en/live-boot.7:170 en/live-snapshot.1:60 en/live.persist.5:197
+msgid "I<live-config>(7)"
+msgstr ""
+
+#. type: Plain text
+#: en/live-boot.7:172 en/live-snapshot.1:62 en/live.persist.5:199
+msgid "I<live-tools>(7)"
+msgstr ""
+
+#. type: SH
+#: en/live-boot.7:173 en/live-snapshot.1:63 en/live.persist.5:200
+#, no-wrap
+msgid "HOMEPAGE"
+msgstr ""
+
+#. type: Plain text
+#: en/live-boot.7:175 en/live-snapshot.1:65 en/live.persist.5:204
+msgid ""
+"More information about live-boot and the Debian Live project can be found on "
+"the homepage at E<lt>I<http://live.debian.net/>E<gt> and in the manual at "
+"E<lt>I<http://live.debian.net/manual/>E<gt>."
+msgstr ""
+
+#. type: SH
+#: en/live-boot.7:176 en/live-snapshot.1:66 en/live.persist.5:205
+#, no-wrap
+msgid "BUGS"
+msgstr ""
+
+#. type: Plain text
+#: en/live-boot.7:178 en/live-snapshot.1:68 en/live.persist.5:210
+msgid ""
+"Bugs can be reported by submitting a bugreport for the live-boot package in "
+"the Debian Bug Tracking System at E<lt>I<http://bugs.debian.org/>E<gt> or by "
+"writing a mail to the Debian Live mailing list at E<lt>I<debian-live at lists."
+"debian.org>E<gt>."
+msgstr ""
+
+#. type: SH
+#: en/live-boot.7:179 en/live-snapshot.1:69 en/live.persist.5:211
+#, no-wrap
+msgid "AUTHOR"
+msgstr ""
+
+#. type: Plain text
+#: en/live.persist.5:6
+msgid "B<live.persist> - Configuration file for persistent media in live-boot"
+msgstr ""
+
+#. type: Plain text
+#: en/live.persist.5:13
+msgid ""
+"If live-boot probes a persistent volume with the label (or GPT name, or file "
+"name, but from now on we will just say \"label\") \"custom-ov\", that "
+"volume's persistence is fully customizable through the B<live.persist> file "
+"stored on the root of its file system. Any such labeled volume must have "
+"such a file, or it will be ignored."
+msgstr ""
+
+#. type: Plain text
+#: en/live.persist.5:17
+msgid ""
+"The format of B<live.persist> allow empty lines and lines starting with a \"#"
+"\" (used for comments), both which will be ignored. A so called \"custom "
+"mount\" has the format:"
+msgstr ""
+
+#. type: Plain text
+#: en/live.persist.5:20
+msgid "I<DIR> [I<OPTION>]..."
+msgstr ""
+
+#. type: Plain text
+#: en/live.persist.5:24
+msgid ""
+"which roughly translates to \"make I<DIR> persistent in the way described by "
+"the list of I<OPTION>s\"."
+msgstr ""
+
+#. type: Plain text
+#: en/live.persist.5:35
+msgid ""
+"For each custom mount I<DIR> must be an absolute path that cannot contain "
+"white spaces or the special . and .. path components, and cannot be /live "
+"(or any of its sub-directories), or / (for the latter, use \"full-ov\" "
+"persistence instead). Once activated all changes (file deletion, creation "
+"and modification) to I<DIR> on the live file system are stored persistently "
+"into a path equivalent to I<DIR> on the persistent media, called the source "
+"directory. The default way to achieve persistence is to simply bind-mount "
+"the corresponding source directory to I<DIR>, but this can be changed "
+"through the use of I<OPTION>s."
+msgstr ""
+
+#. type: Plain text
+#: en/live.persist.5:48
+msgid ""
+"All custom mounts will be done in an order so that no two custom mounts can "
+"\"hide\" each other. For instance, if we have the two I<DIR>:s /a and /a/b "
+"it would always be the case that /a is mounted first, then /a/b. This "
+"remains true no matter how the lines in B<live.persist> are ordered, or if "
+"several B<live.persist> files on different persistent media are used at the "
+"same time. However, it is forbidden for custom mounts to have their source "
+"directory inside the source directory of another custom mount, so the source "
+"directories that are auto-created by live-boot does not support \"nested\" "
+"mounts like /a and /a/b on the same media. In this case you must use the "
+"B<source> option (see below) to make sure that they are stored in different "
+"source directories."
+msgstr ""
+
+#. type: Plain text
+#: en/live.persist.5:56
+msgid ""
+"When a source directory doesn't exist on the persistent media for a certain "
+"custom mount, it will be created automatically, and permissions and "
+"ownership will be optimistically set according to I<DIR>. It will also be "
+"bootstrapped by copying the contents of the I<DIR> into its source directory "
+"on the persistent media. The bootstrapping will not happen when the "
+"B<linkfiles> or B<union> options are used (see below)."
+msgstr ""
+
+#. type: Plain text
+#: en/live.persist.5:60
+msgid ""
+"Custom mounts defined in B<live.persist> accept the following options in a "
+"coma-separated list:"
+msgstr ""
+
+#. type: IP
+#: en/live.persist.5:60
+#, no-wrap
+msgid "B<source>=I<PATH>"
+msgstr ""
+
+#. type: Plain text
+#: en/live.persist.5:69
+msgid ""
+"When given, store the persistent changes into I<PATH> on the persistent "
+"media. I<PATH> must be a relative path (w.r.t. the persistent media root) "
+"that cannot contain white spaces or the special . or .. path components, "
+"with the exception that it can be just . which means the persistent media "
+"root. This option is mostly relevant if you want to nest custom mounts, "
+"which otherwise would cause errors, or if you want to make the whole media "
+"root available (similar to the now deprecated B<home-rw> type of "
+"persistence)."
+msgstr ""
+
+#. type: Plain text
+#: en/live.persist.5:72
+msgid ""
+"The following options are mutually exclusive (only the last given one will "
+"be in effect):"
+msgstr ""
+
+#. type: IP
+#: en/live.persist.5:72
+#, no-wrap
+msgid "B<bind>"
+msgstr ""
+
+#. type: Plain text
+#: en/live.persist.5:74
+msgid "Bind-mount the source directory to I<DIR>. This is the default."
+msgstr ""
+
+#. type: IP
+#: en/live.persist.5:74
+#, no-wrap
+msgid "B<linkfiles>"
+msgstr ""
+
+#. type: Plain text
+#: en/live.persist.5:83
+msgid ""
+"Create the directory structure of the source directory on the persistent "
+"media in I<DIR> and create symbolic links from the corresponding place in "
+"I<DIR> to each file in the source directory.  Existing files or directories "
+"with the same name as any link will be overwritten. Note that deleting the "
+"links in I<DIR> will only remove the link, not the corresponding file in the "
+"source; removed links will reappear after a reboot. To permanently add or "
+"delete a file one must do so directly in the source directory."
+msgstr ""
+
+#. type: Plain text
+#: en/live.persist.5:91
+msgid ""
+"Effectively B<linkfiles> will make only files already in the source "
+"directory persistent, not any other files in I<DIR>. These files must be "
+"manually added to the source directory to make use of this option, and they "
+"will appear in I<DIR> in addition to files already there. This option is "
+"useful when only certain files need to be persistent, not the whole "
+"directory they're in, e.g. some configuration files in a user's home "
+"directory."
+msgstr ""
+
+#. type: IP
+#: en/live.persist.5:91
+#, no-wrap
+msgid "B<union>"
+msgstr ""
+
+#. type: Plain text
+#: en/live.persist.5:101
+msgid ""
+"Save the rw branch of a union on the persistent media, so only the changes "
+"are stored persistently. This can potentially reduce disk usage compared to "
+"bind-mounts, and will not hide files added to the read-only media. One "
+"caveat is that the union will use I<DIR> from the image's read-only file "
+"system, not the real file system root, so files created after boot (e.g. by "
+"live-config) will not appear in the union. This option will use the union "
+"file system specified by live-boot's B<union> boot parameter, but is not "
+"supported with B<union=unionmount>."
+msgstr ""
+
+#. type: SH
+#: en/live.persist.5:102
+#, no-wrap
+msgid "DIRECTORIES"
+msgstr ""
+
+#. type: IP
+#: en/live.persist.5:103
+#, no-wrap
+msgid "B</live/persistent>"
+msgstr ""
+
+#. type: Plain text
+#: en/live.persist.5:109
+msgid ""
+"All persistent volumes will be mounted here (in a directory corresponding to "
+"the device name). The B<live.persist> file can easily be edited through this "
+"mount, as well as any source directories (which is especially practical for "
+"custom mounts using the B<linkfiles> option)."
+msgstr ""
+
+#. type: SH
+#: en/live.persist.5:110
+#, no-wrap
+msgid "EXAMPLES"
+msgstr ""
+
+#. type: Plain text
+#: en/live.persist.5:115
+msgid ""
+"Let's say we have a persistent volume I<VOL> with the a B<live.persist> file "
+"containing the following four lines (numbered for ease of reference):"
+msgstr ""
+
+#. type: TP
+#: en/live.persist.5:115 en/live.persist.5:129
+#, no-wrap
+msgid "1."
+msgstr ""
+
+#. type: Plain text
+#: en/live.persist.5:118
+msgid "/home/user1 linkfiles,source=config-files/user1"
+msgstr ""
+
+#. type: TP
+#: en/live.persist.5:118 en/live.persist.5:133
+#, no-wrap
+msgid "2."
+msgstr ""
+
+#. type: Plain text
+#: en/live.persist.5:121
+msgid "/home/user2 linkfiles,source=config-files/user2"
+msgstr ""
+
+#. type: TP
+#: en/live.persist.5:121 en/live.persist.5:137
+#, no-wrap
+msgid "3."
+msgstr ""
+
+#. type: Plain text
+#: en/live.persist.5:124
+msgid "/home"
+msgstr ""
+
+#. type: TP
+#: en/live.persist.5:124 en/live.persist.5:140
+#, no-wrap
+msgid "4."
+msgstr ""
+
+#. type: Plain text
+#: en/live.persist.5:127
+msgid "/usr union"
+msgstr ""
+
+#. type: Plain text
+#: en/live.persist.5:129
+msgid "The corresponding source directories are:"
+msgstr ""
+
+#. type: Plain text
+#: en/live.persist.5:133
+msgid ""
+"I<VOL>/config-files/user1 (but it would be I<VOL>/home/user1 without the "
+"B<source> option)"
+msgstr ""
+
+#. type: Plain text
+#: en/live.persist.5:137
+msgid ""
+"I<VOL>/config-files/user2 (but it would be I<VOL>/home/user2 without the "
+"B<source> option)"
+msgstr ""
+
+#. type: Plain text
+#: en/live.persist.5:140
+msgid "I<VOL>/home"
+msgstr ""
+
+#. type: Plain text
+#: en/live.persist.5:143
+msgid "I<VOL>/usr"
+msgstr ""
+
+#. type: Plain text
+#: en/live.persist.5:146
+msgid ""
+"It was necessary to set the B<source> options for 1 and 2, since they "
+"otherwise would become nested with 3's source, which is illegal."
+msgstr ""
+
+#. type: Plain text
+#: en/live.persist.5:151
+msgid ""
+"Line 3 will be taken care of before line 1 and 2 in order to prevent custom "
+"mounts 1 and 2 from being hidden by 3. When line 3 is handled, I<VOL>/home "
+"is simply bind-mounted on /home. To illustrate what happens for lines 1 and "
+"2, let's say that the following files exist:"
+msgstr ""
+
+#. type: TP
+#: en/live.persist.5:151
+#, no-wrap
+msgid "a."
+msgstr ""
+
+#. type: Plain text
+#: en/live.persist.5:154
+msgid "I<VOL>/config-files/user1/.emacs"
+msgstr ""
+
+#. type: TP
+#: en/live.persist.5:154
+#, no-wrap
+msgid "b."
+msgstr ""
+
+#. type: Plain text
+#: en/live.persist.5:157
+msgid "I<VOL>/config-files/user2/.bashrc"
+msgstr ""
+
+#. type: TP
+#: en/live.persist.5:157
+#, no-wrap
+msgid "c."
+msgstr ""
+
+#. type: Plain text
+#: en/live.persist.5:160
+msgid "I<VOL>/config-files/user2/.ssh/config"
+msgstr ""
+
+#. type: Plain text
+#: en/live.persist.5:162
+msgid "Then the following links and directories will be created:"
+msgstr ""
+
+#. type: TP
+#: en/live.persist.5:162 en/live.persist.5:165 en/live.persist.5:171
+#, no-wrap
+msgid "Link:"
+msgstr ""
+
+#. type: Plain text
+#: en/live.persist.5:165
+msgid "/home/user1/.emacs -E<gt> I<VOL>/config-files/user1/.emacs (from a)"
+msgstr ""
+
+#. type: Plain text
+#: en/live.persist.5:168
+msgid "/home/user2/.bashrc -E<gt> I<VOL>/config-files/user2/.bashrc (from b)"
+msgstr ""
+
+#. type: TP
+#: en/live.persist.5:168
+#, no-wrap
+msgid "Dir:"
+msgstr ""
+
+#. type: Plain text
+#: en/live.persist.5:171
+msgid "/homea/user2/.ssh (from c)"
+msgstr ""
+
+#. type: Plain text
+#: en/live.persist.5:175
+msgid ""
+"/home/user2/.ssh/config -E<gt> I<VOL>/config-files/user2/.ssh/config (from c)"
+msgstr ""
+
+#. type: Plain text
+#: en/live.persist.5:181
+msgid ""
+"One could argue, though, that lines 1 and 2 in the example B<live.persist> "
+"file above are unnecessary since line 3 already would make all of /home "
+"persistent. The B<linkfiles> option is intended for situations where you "
+"don't want a complete directory to be persistent, only certain files in it "
+"or its sub-directories."
+msgstr ""
+
+#. type: Plain text
+#: en/live.persist.5:190
+msgid ""
+"Line 4 can be mounted at any time since its I<DIR> (and source directory) is "
+"completely disjoint from all the other custom mounts. When mounted, I<VOL>/"
+"usr will be the rw branch due to the B<union> option, and will only contain "
+"the difference compared to the underlying read-only file system. Hence "
+"packages could be installed into /usr with great space-wise efficiency "
+"compared to bind-mounts, since in the latter case all of /usr would have to "
+"be copied into I<VOL>/usr during the initial bootstrap."
+msgstr ""
+
+#. type: Plain text
+#: en/live.persist.5:193
+msgid "I<live-boot>(7)"
+msgstr ""
+
+#. type: Plain text
+#: en/live.persist.5:213
+msgid ""
+"live.persist was written by anonym E<lt>I<anonym at lavabit.com>E<gt> for the "
+"Debian project."
+msgstr ""
diff --git a/manpages/po4a.cfg b/manpages/po4a.cfg
index c0b056e..4d52b0f 100644
--- a/manpages/po4a.cfg
+++ b/manpages/po4a.cfg
@@ -2,3 +2,4 @@
 [po4a_paths] pot/$master.pot $lang:po/$lang/$master.po
 [type: man] en/live-boot.7 $lang:$lang/live-boot.$lang.7
 [type: man] en/live-snapshot.1 $lang:$lang/live-snapshot.$lang.1
+[type: man] en/live.persist.5 $lang:$lang/live.persist.5.$lang.persist
diff --git a/manpages/pot/live-boot.7.pot b/manpages/pot/live-boot.7.pot
index 7f46b3a..a0d0478 100644
--- a/manpages/pot/live-boot.7.pot
+++ b/manpages/pot/live-boot.7.pot
@@ -7,7 +7,7 @@
 msgid ""
 msgstr ""
 "Project-Id-Version: live-boot VERSION\n"
-"POT-Creation-Date: 2012-02-06 23:27+0100\n"
+"POT-Creation-Date: 2012-04-05 08:11+0300\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
 "Language-Team: LANGUAGE <LL at li.org>\n"
@@ -17,31 +17,31 @@ msgstr ""
 "Content-Transfer-Encoding: 8bit\n"
 
 #. type: TH
-#: en/live-boot.7:1 en/live-snapshot.1:1
+#: en/live-boot.7:1 en/live-snapshot.1:1 en/live.persist.5:1
 #, no-wrap
 msgid "LIVE-BOOT"
 msgstr ""
 
 #. type: TH
-#: en/live-boot.7:1 en/live-snapshot.1:1
+#: en/live-boot.7:1 en/live-snapshot.1:1 en/live.persist.5:1
 #, no-wrap
-msgid "2012-02-06"
+msgid "2012-04-05"
 msgstr ""
 
 #. type: TH
-#: en/live-boot.7:1 en/live-snapshot.1:1
+#: en/live-boot.7:1 en/live-snapshot.1:1 en/live.persist.5:1
 #, no-wrap
-msgid "3.0~a25-1"
+msgid "3.0~a26-1"
 msgstr ""
 
 #. type: TH
-#: en/live-boot.7:1 en/live-snapshot.1:1
+#: en/live-boot.7:1 en/live-snapshot.1:1 en/live.persist.5:1
 #, no-wrap
 msgid "Debian Live Project"
 msgstr ""
 
 #. type: SH
-#: en/live-boot.7:3 en/live-snapshot.1:3
+#: en/live-boot.7:3 en/live-snapshot.1:3 en/live.persist.5:3
 #, no-wrap
 msgid "NAME"
 msgstr ""
@@ -52,7 +52,7 @@ msgid "B<live-boot> - System Boot Scripts"
 msgstr ""
 
 #. type: SH
-#: en/live-boot.7:6 en/live-snapshot.1:17
+#: en/live-boot.7:6 en/live-snapshot.1:17 en/live.persist.5:7
 #, no-wrap
 msgid "DESCRIPTION"
 msgstr ""
@@ -138,7 +138,7 @@ msgid ""
 msgstr ""
 
 #. type: SH
-#: en/live-boot.7:28 en/live-snapshot.1:20
+#: en/live-boot.7:28 en/live-snapshot.1:20 en/live.persist.5:57
 #, no-wrap
 msgid "OPTIONS"
 msgstr ""
@@ -558,16 +558,17 @@ msgstr ""
 #. type: Plain text
 #: en/live-boot.7:111
 msgid ""
-"live-boot will probe filesystems for persistent media. These can either be "
-"the filesystems themselves, if labeled correctly, or image/archive files, if "
-"named correctly. Overlays are labeled/named either \"live-rw\" or \"home-rw"
-"\" and will be mounted on / or /home, respectively; snapshots are labeled/"
+"live-boot will probe devices for persistent media. These can be partitions "
+"(with the correct GPT name), filesystems (with the correct label) or image/"
+"archive files (with the correct file name). Overlays are labeled/named "
+"either \"full-ov\", which will be mounted on /, or \"custom-ov\", which can "
+"be completely customized (see I<live.persist>(5)); snapshots are labeled/"
 "named either \"live-sn\" or \"home-sn\" and will be extracted into / or /"
-"home, respectively (see live-snapshot(1) for more information). Overlays are "
-"mounted before snapshots are extracted, and for both overlays and snapshots, "
-"\"live-*\" are handled before \"home-*\". Overlay image files and snapshot "
-"archive files have extensions which determines their filesystem or archive "
-"type, e.g. \"live-rw.ext3\" and \"\\home-sn.squashfs\"."
+"home, respectively (see I<live-snapshot>(1) for more information). The order "
+"these are handled are: full-ov, custom-ov, live-sn, home-sn. Overlay image "
+"files and snapshot archive files have extensions which determines their "
+"filesystem or archive type, e.g. \"custom-ov.ext3\" and \"\\home-sn.squashfs"
+"\"."
 msgstr ""
 
 #. type: IP
@@ -881,40 +882,51 @@ msgstr ""
 msgid "B<live/boot.d/>"
 msgstr ""
 
+#. type: IP
+#: en/live-boot.7:160
+#, no-wrap
+msgid "B<live.persist>"
+msgstr ""
+
 #. type: SH
-#: en/live-boot.7:161 en/live-snapshot.1:54
+#: en/live-boot.7:162 en/live-snapshot.1:54 en/live.persist.5:191
 #, no-wrap
 msgid "SEE ALSO"
 msgstr ""
 
 #. type: Plain text
-#: en/live-boot.7:163
+#: en/live-boot.7:164
 msgid "I<live-snapshot>(1)"
 msgstr ""
 
 #. type: Plain text
-#: en/live-boot.7:165 en/live-snapshot.1:58
+#: en/live-boot.7:166
+msgid "I<live.persist>(5)"
+msgstr ""
+
+#. type: Plain text
+#: en/live-boot.7:168 en/live-snapshot.1:58 en/live.persist.5:195
 msgid "I<live-build>(7)"
 msgstr ""
 
 #. type: Plain text
-#: en/live-boot.7:167 en/live-snapshot.1:60
+#: en/live-boot.7:170 en/live-snapshot.1:60 en/live.persist.5:197
 msgid "I<live-config>(7)"
 msgstr ""
 
 #. type: Plain text
-#: en/live-boot.7:169 en/live-snapshot.1:62
+#: en/live-boot.7:172 en/live-snapshot.1:62 en/live.persist.5:199
 msgid "I<live-tools>(7)"
 msgstr ""
 
 #. type: SH
-#: en/live-boot.7:170 en/live-snapshot.1:63
+#: en/live-boot.7:173 en/live-snapshot.1:63 en/live.persist.5:200
 #, no-wrap
 msgid "HOMEPAGE"
 msgstr ""
 
 #. type: Plain text
-#: en/live-boot.7:172 en/live-snapshot.1:65
+#: en/live-boot.7:175 en/live-snapshot.1:65 en/live.persist.5:204
 msgid ""
 "More information about live-boot and the Debian Live project can be found on "
 "the homepage at E<lt>I<http://live.debian.net/>E<gt> and in the manual at "
@@ -922,13 +934,13 @@ msgid ""
 msgstr ""
 
 #. type: SH
-#: en/live-boot.7:173 en/live-snapshot.1:66
+#: en/live-boot.7:176 en/live-snapshot.1:66 en/live.persist.5:205
 #, no-wrap
 msgid "BUGS"
 msgstr ""
 
 #. type: Plain text
-#: en/live-boot.7:175 en/live-snapshot.1:68
+#: en/live-boot.7:178 en/live-snapshot.1:68 en/live.persist.5:210
 msgid ""
 "Bugs can be reported by submitting a bugreport for the live-boot package in "
 "the Debian Bug Tracking System at E<lt>I<http://bugs.debian.org/>E<gt> or by "
@@ -937,13 +949,13 @@ msgid ""
 msgstr ""
 
 #. type: SH
-#: en/live-boot.7:176 en/live-snapshot.1:69
+#: en/live-boot.7:179 en/live-snapshot.1:69 en/live.persist.5:211
 #, no-wrap
 msgid "AUTHOR"
 msgstr ""
 
 #. type: Plain text
-#: en/live-boot.7:177 en/live-snapshot.1:70
+#: en/live-boot.7:180 en/live-snapshot.1:70
 msgid ""
 "live-boot was written by Daniel Baumann E<lt>I<daniel at debian.org>E<gt> for "
 "the Debian project."
diff --git a/manpages/pot/live-snapshot.1.pot b/manpages/pot/live-snapshot.1.pot
index ab3ee0f..a20119c 100644
--- a/manpages/pot/live-snapshot.1.pot
+++ b/manpages/pot/live-snapshot.1.pot
@@ -7,7 +7,7 @@
 msgid ""
 msgstr ""
 "Project-Id-Version: live-boot VERSION\n"
-"POT-Creation-Date: 2012-02-06 23:27+0100\n"
+"POT-Creation-Date: 2012-04-05 08:11+0300\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
 "Language-Team: LANGUAGE <LL at li.org>\n"
@@ -17,43 +17,43 @@ msgstr ""
 "Content-Transfer-Encoding: 8bit\n"
 
 #. type: TH
-#: en/live-boot.7:1 en/live-snapshot.1:1
+#: en/live-boot.7:1 en/live-snapshot.1:1 en/live.persist.5:1
 #, no-wrap
 msgid "LIVE-BOOT"
 msgstr ""
 
 #. type: TH
-#: en/live-boot.7:1 en/live-snapshot.1:1
+#: en/live-boot.7:1 en/live-snapshot.1:1 en/live.persist.5:1
 #, no-wrap
-msgid "2012-02-06"
+msgid "2012-04-05"
 msgstr ""
 
 #. type: TH
-#: en/live-boot.7:1 en/live-snapshot.1:1
+#: en/live-boot.7:1 en/live-snapshot.1:1 en/live.persist.5:1
 #, no-wrap
-msgid "3.0~a25-1"
+msgid "3.0~a26-1"
 msgstr ""
 
 #. type: TH
-#: en/live-boot.7:1 en/live-snapshot.1:1
+#: en/live-boot.7:1 en/live-snapshot.1:1 en/live.persist.5:1
 #, no-wrap
 msgid "Debian Live Project"
 msgstr ""
 
 #. type: SH
-#: en/live-boot.7:3 en/live-snapshot.1:3
+#: en/live-boot.7:3 en/live-snapshot.1:3 en/live.persist.5:3
 #, no-wrap
 msgid "NAME"
 msgstr ""
 
 #. type: SH
-#: en/live-boot.7:6 en/live-snapshot.1:17
+#: en/live-boot.7:6 en/live-snapshot.1:17 en/live.persist.5:7
 #, no-wrap
 msgid "DESCRIPTION"
 msgstr ""
 
 #. type: SH
-#: en/live-boot.7:28 en/live-snapshot.1:20
+#: en/live-boot.7:28 en/live-snapshot.1:20 en/live.persist.5:57
 #, no-wrap
 msgid "OPTIONS"
 msgstr ""
@@ -121,34 +121,34 @@ msgid "FILES"
 msgstr ""
 
 #. type: SH
-#: en/live-boot.7:161 en/live-snapshot.1:54
+#: en/live-boot.7:162 en/live-snapshot.1:54 en/live.persist.5:191
 #, no-wrap
 msgid "SEE ALSO"
 msgstr ""
 
 #. type: Plain text
-#: en/live-boot.7:165 en/live-snapshot.1:58
+#: en/live-boot.7:168 en/live-snapshot.1:58 en/live.persist.5:195
 msgid "I<live-build>(7)"
 msgstr ""
 
 #. type: Plain text
-#: en/live-boot.7:167 en/live-snapshot.1:60
+#: en/live-boot.7:170 en/live-snapshot.1:60 en/live.persist.5:197
 msgid "I<live-config>(7)"
 msgstr ""
 
 #. type: Plain text
-#: en/live-boot.7:169 en/live-snapshot.1:62
+#: en/live-boot.7:172 en/live-snapshot.1:62 en/live.persist.5:199
 msgid "I<live-tools>(7)"
 msgstr ""
 
 #. type: SH
-#: en/live-boot.7:170 en/live-snapshot.1:63
+#: en/live-boot.7:173 en/live-snapshot.1:63 en/live.persist.5:200
 #, no-wrap
 msgid "HOMEPAGE"
 msgstr ""
 
 #. type: Plain text
-#: en/live-boot.7:172 en/live-snapshot.1:65
+#: en/live-boot.7:175 en/live-snapshot.1:65 en/live.persist.5:204
 msgid ""
 "More information about live-boot and the Debian Live project can be found on "
 "the homepage at E<lt>I<http://live.debian.net/>E<gt> and in the manual at "
@@ -156,13 +156,13 @@ msgid ""
 msgstr ""
 
 #. type: SH
-#: en/live-boot.7:173 en/live-snapshot.1:66
+#: en/live-boot.7:176 en/live-snapshot.1:66 en/live.persist.5:205
 #, no-wrap
 msgid "BUGS"
 msgstr ""
 
 #. type: Plain text
-#: en/live-boot.7:175 en/live-snapshot.1:68
+#: en/live-boot.7:178 en/live-snapshot.1:68 en/live.persist.5:210
 msgid ""
 "Bugs can be reported by submitting a bugreport for the live-boot package in "
 "the Debian Bug Tracking System at E<lt>I<http://bugs.debian.org/>E<gt> or by "
@@ -171,13 +171,13 @@ msgid ""
 msgstr ""
 
 #. type: SH
-#: en/live-boot.7:176 en/live-snapshot.1:69
+#: en/live-boot.7:179 en/live-snapshot.1:69 en/live.persist.5:211
 #, no-wrap
 msgid "AUTHOR"
 msgstr ""
 
 #. type: Plain text
-#: en/live-boot.7:177 en/live-snapshot.1:70
+#: en/live-boot.7:180 en/live-snapshot.1:70
 msgid ""
 "live-boot was written by Daniel Baumann E<lt>I<daniel at debian.org>E<gt> for "
 "the Debian project."
diff --git a/manpages/pot/live.persist.5.pot b/manpages/pot/live.persist.5.pot
new file mode 100644
index 0000000..b0e4919
--- /dev/null
+++ b/manpages/pot/live.persist.5.pot
@@ -0,0 +1,512 @@
+# SOME DESCRIPTIVE TITLE
+# Copyright (C) YEAR Free Software Foundation, Inc.
+# This file is distributed under the same license as the live-boot package.
+# FIRST AUTHOR <EMAIL at ADDRESS>, YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: live-boot VERSION\n"
+"POT-Creation-Date: 2012-04-05 08:11+0300\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
+"Language-Team: LANGUAGE <LL at li.org>\n"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. type: TH
+#: en/live-boot.7:1 en/live-snapshot.1:1 en/live.persist.5:1
+#, no-wrap
+msgid "LIVE-BOOT"
+msgstr ""
+
+#. type: TH
+#: en/live-boot.7:1 en/live-snapshot.1:1 en/live.persist.5:1
+#, no-wrap
+msgid "2012-04-05"
+msgstr ""
+
+#. type: TH
+#: en/live-boot.7:1 en/live-snapshot.1:1 en/live.persist.5:1
+#, no-wrap
+msgid "3.0~a26-1"
+msgstr ""
+
+#. type: TH
+#: en/live-boot.7:1 en/live-snapshot.1:1 en/live.persist.5:1
+#, no-wrap
+msgid "Debian Live Project"
+msgstr ""
+
+#. type: SH
+#: en/live-boot.7:3 en/live-snapshot.1:3 en/live.persist.5:3
+#, no-wrap
+msgid "NAME"
+msgstr ""
+
+#. type: SH
+#: en/live-boot.7:6 en/live-snapshot.1:17 en/live.persist.5:7
+#, no-wrap
+msgid "DESCRIPTION"
+msgstr ""
+
+#. type: SH
+#: en/live-boot.7:28 en/live-snapshot.1:20 en/live.persist.5:57
+#, no-wrap
+msgid "OPTIONS"
+msgstr ""
+
+#. type: SH
+#: en/live-boot.7:162 en/live-snapshot.1:54 en/live.persist.5:191
+#, no-wrap
+msgid "SEE ALSO"
+msgstr ""
+
+#. type: Plain text
+#: en/live-boot.7:168 en/live-snapshot.1:58 en/live.persist.5:195
+msgid "I<live-build>(7)"
+msgstr ""
+
+#. type: Plain text
+#: en/live-boot.7:170 en/live-snapshot.1:60 en/live.persist.5:197
+msgid "I<live-config>(7)"
+msgstr ""
+
+#. type: Plain text
+#: en/live-boot.7:172 en/live-snapshot.1:62 en/live.persist.5:199
+msgid "I<live-tools>(7)"
+msgstr ""
+
+#. type: SH
+#: en/live-boot.7:173 en/live-snapshot.1:63 en/live.persist.5:200
+#, no-wrap
+msgid "HOMEPAGE"
+msgstr ""
+
+#. type: Plain text
+#: en/live-boot.7:175 en/live-snapshot.1:65 en/live.persist.5:204
+msgid ""
+"More information about live-boot and the Debian Live project can be found on "
+"the homepage at E<lt>I<http://live.debian.net/>E<gt> and in the manual at "
+"E<lt>I<http://live.debian.net/manual/>E<gt>."
+msgstr ""
+
+#. type: SH
+#: en/live-boot.7:176 en/live-snapshot.1:66 en/live.persist.5:205
+#, no-wrap
+msgid "BUGS"
+msgstr ""
+
+#. type: Plain text
+#: en/live-boot.7:178 en/live-snapshot.1:68 en/live.persist.5:210
+msgid ""
+"Bugs can be reported by submitting a bugreport for the live-boot package in "
+"the Debian Bug Tracking System at E<lt>I<http://bugs.debian.org/>E<gt> or by "
+"writing a mail to the Debian Live mailing list at E<lt>I<debian-live at lists."
+"debian.org>E<gt>."
+msgstr ""
+
+#. type: SH
+#: en/live-boot.7:179 en/live-snapshot.1:69 en/live.persist.5:211
+#, no-wrap
+msgid "AUTHOR"
+msgstr ""
+
+#. type: Plain text
+#: en/live.persist.5:6
+msgid "B<live.persist> - Configuration file for persistent media in live-boot"
+msgstr ""
+
+#. type: Plain text
+#: en/live.persist.5:13
+msgid ""
+"If live-boot probes a persistent volume with the label (or GPT name, or file "
+"name, but from now on we will just say \"label\") \"custom-ov\", that "
+"volume's persistence is fully customizable through the B<live.persist> file "
+"stored on the root of its file system. Any such labeled volume must have "
+"such a file, or it will be ignored."
+msgstr ""
+
+#. type: Plain text
+#: en/live.persist.5:17
+msgid ""
+"The format of B<live.persist> allow empty lines and lines starting with a \"#"
+"\" (used for comments), both which will be ignored. A so called \"custom "
+"mount\" has the format:"
+msgstr ""
+
+#. type: Plain text
+#: en/live.persist.5:20
+msgid "I<DIR> [I<OPTION>]..."
+msgstr ""
+
+#. type: Plain text
+#: en/live.persist.5:24
+msgid ""
+"which roughly translates to \"make I<DIR> persistent in the way described by "
+"the list of I<OPTION>s\"."
+msgstr ""
+
+#. type: Plain text
+#: en/live.persist.5:35
+msgid ""
+"For each custom mount I<DIR> must be an absolute path that cannot contain "
+"white spaces or the special . and .. path components, and cannot be /live "
+"(or any of its sub-directories), or / (for the latter, use \"full-ov\" "
+"persistence instead). Once activated all changes (file deletion, creation "
+"and modification) to I<DIR> on the live file system are stored persistently "
+"into a path equivalent to I<DIR> on the persistent media, called the source "
+"directory. The default way to achieve persistence is to simply bind-mount "
+"the corresponding source directory to I<DIR>, but this can be changed "
+"through the use of I<OPTION>s."
+msgstr ""
+
+#. type: Plain text
+#: en/live.persist.5:48
+msgid ""
+"All custom mounts will be done in an order so that no two custom mounts can "
+"\"hide\" each other. For instance, if we have the two I<DIR>:s /a and /a/b "
+"it would always be the case that /a is mounted first, then /a/b. This "
+"remains true no matter how the lines in B<live.persist> are ordered, or if "
+"several B<live.persist> files on different persistent media are used at the "
+"same time. However, it is forbidden for custom mounts to have their source "
+"directory inside the source directory of another custom mount, so the source "
+"directories that are auto-created by live-boot does not support \"nested\" "
+"mounts like /a and /a/b on the same media. In this case you must use the "
+"B<source> option (see below) to make sure that they are stored in different "
+"source directories."
+msgstr ""
+
+#. type: Plain text
+#: en/live.persist.5:56
+msgid ""
+"When a source directory doesn't exist on the persistent media for a certain "
+"custom mount, it will be created automatically, and permissions and "
+"ownership will be optimistically set according to I<DIR>. It will also be "
+"bootstrapped by copying the contents of the I<DIR> into its source directory "
+"on the persistent media. The bootstrapping will not happen when the "
+"B<linkfiles> or B<union> options are used (see below)."
+msgstr ""
+
+#. type: Plain text
+#: en/live.persist.5:60
+msgid ""
+"Custom mounts defined in B<live.persist> accept the following options in a "
+"coma-separated list:"
+msgstr ""
+
+#. type: IP
+#: en/live.persist.5:60
+#, no-wrap
+msgid "B<source>=I<PATH>"
+msgstr ""
+
+#. type: Plain text
+#: en/live.persist.5:69
+msgid ""
+"When given, store the persistent changes into I<PATH> on the persistent "
+"media. I<PATH> must be a relative path (w.r.t. the persistent media root) "
+"that cannot contain white spaces or the special . or .. path components, "
+"with the exception that it can be just . which means the persistent media "
+"root. This option is mostly relevant if you want to nest custom mounts, "
+"which otherwise would cause errors, or if you want to make the whole media "
+"root available (similar to the now deprecated B<home-rw> type of "
+"persistence)."
+msgstr ""
+
+#. type: Plain text
+#: en/live.persist.5:72
+msgid ""
+"The following options are mutually exclusive (only the last given one will "
+"be in effect):"
+msgstr ""
+
+#. type: IP
+#: en/live.persist.5:72
+#, no-wrap
+msgid "B<bind>"
+msgstr ""
+
+#. type: Plain text
+#: en/live.persist.5:74
+msgid "Bind-mount the source directory to I<DIR>. This is the default."
+msgstr ""
+
+#. type: IP
+#: en/live.persist.5:74
+#, no-wrap
+msgid "B<linkfiles>"
+msgstr ""
+
+#. type: Plain text
+#: en/live.persist.5:83
+msgid ""
+"Create the directory structure of the source directory on the persistent "
+"media in I<DIR> and create symbolic links from the corresponding place in "
+"I<DIR> to each file in the source directory.  Existing files or directories "
+"with the same name as any link will be overwritten. Note that deleting the "
+"links in I<DIR> will only remove the link, not the corresponding file in the "
+"source; removed links will reappear after a reboot. To permanently add or "
+"delete a file one must do so directly in the source directory."
+msgstr ""
+
+#. type: Plain text
+#: en/live.persist.5:91
+msgid ""
+"Effectively B<linkfiles> will make only files already in the source "
+"directory persistent, not any other files in I<DIR>. These files must be "
+"manually added to the source directory to make use of this option, and they "
+"will appear in I<DIR> in addition to files already there. This option is "
+"useful when only certain files need to be persistent, not the whole "
+"directory they're in, e.g. some configuration files in a user's home "
+"directory."
+msgstr ""
+
+#. type: IP
+#: en/live.persist.5:91
+#, no-wrap
+msgid "B<union>"
+msgstr ""
+
+#. type: Plain text
+#: en/live.persist.5:101
+msgid ""
+"Save the rw branch of a union on the persistent media, so only the changes "
+"are stored persistently. This can potentially reduce disk usage compared to "
+"bind-mounts, and will not hide files added to the read-only media. One "
+"caveat is that the union will use I<DIR> from the image's read-only file "
+"system, not the real file system root, so files created after boot (e.g. by "
+"live-config) will not appear in the union. This option will use the union "
+"file system specified by live-boot's B<union> boot parameter, but is not "
+"supported with B<union=unionmount>."
+msgstr ""
+
+#. type: SH
+#: en/live.persist.5:102
+#, no-wrap
+msgid "DIRECTORIES"
+msgstr ""
+
+#. type: IP
+#: en/live.persist.5:103
+#, no-wrap
+msgid "B</live/persistent>"
+msgstr ""
+
+#. type: Plain text
+#: en/live.persist.5:109
+msgid ""
+"All persistent volumes will be mounted here (in a directory corresponding to "
+"the device name). The B<live.persist> file can easily be edited through this "
+"mount, as well as any source directories (which is especially practical for "
+"custom mounts using the B<linkfiles> option)."
+msgstr ""
+
+#. type: SH
+#: en/live.persist.5:110
+#, no-wrap
+msgid "EXAMPLES"
+msgstr ""
+
+#. type: Plain text
+#: en/live.persist.5:115
+msgid ""
+"Let's say we have a persistent volume I<VOL> with the a B<live.persist> file "
+"containing the following four lines (numbered for ease of reference):"
+msgstr ""
+
+#. type: TP
+#: en/live.persist.5:115 en/live.persist.5:129
+#, no-wrap
+msgid "1."
+msgstr ""
+
+#. type: Plain text
+#: en/live.persist.5:118
+msgid "/home/user1 linkfiles,source=config-files/user1"
+msgstr ""
+
+#. type: TP
+#: en/live.persist.5:118 en/live.persist.5:133
+#, no-wrap
+msgid "2."
+msgstr ""
+
+#. type: Plain text
+#: en/live.persist.5:121
+msgid "/home/user2 linkfiles,source=config-files/user2"
+msgstr ""
+
+#. type: TP
+#: en/live.persist.5:121 en/live.persist.5:137
+#, no-wrap
+msgid "3."
+msgstr ""
+
+#. type: Plain text
+#: en/live.persist.5:124
+msgid "/home"
+msgstr ""
+
+#. type: TP
+#: en/live.persist.5:124 en/live.persist.5:140
+#, no-wrap
+msgid "4."
+msgstr ""
+
+#. type: Plain text
+#: en/live.persist.5:127
+msgid "/usr union"
+msgstr ""
+
+#. type: Plain text
+#: en/live.persist.5:129
+msgid "The corresponding source directories are:"
+msgstr ""
+
+#. type: Plain text
+#: en/live.persist.5:133
+msgid ""
+"I<VOL>/config-files/user1 (but it would be I<VOL>/home/user1 without the "
+"B<source> option)"
+msgstr ""
+
+#. type: Plain text
+#: en/live.persist.5:137
+msgid ""
+"I<VOL>/config-files/user2 (but it would be I<VOL>/home/user2 without the "
+"B<source> option)"
+msgstr ""
+
+#. type: Plain text
+#: en/live.persist.5:140
+msgid "I<VOL>/home"
+msgstr ""
+
+#. type: Plain text
+#: en/live.persist.5:143
+msgid "I<VOL>/usr"
+msgstr ""
+
+#. type: Plain text
+#: en/live.persist.5:146
+msgid ""
+"It was necessary to set the B<source> options for 1 and 2, since they "
+"otherwise would become nested with 3's source, which is illegal."
+msgstr ""
+
+#. type: Plain text
+#: en/live.persist.5:151
+msgid ""
+"Line 3 will be taken care of before line 1 and 2 in order to prevent custom "
+"mounts 1 and 2 from being hidden by 3. When line 3 is handled, I<VOL>/home "
+"is simply bind-mounted on /home. To illustrate what happens for lines 1 and "
+"2, let's say that the following files exist:"
+msgstr ""
+
+#. type: TP
+#: en/live.persist.5:151
+#, no-wrap
+msgid "a."
+msgstr ""
+
+#. type: Plain text
+#: en/live.persist.5:154
+msgid "I<VOL>/config-files/user1/.emacs"
+msgstr ""
+
+#. type: TP
+#: en/live.persist.5:154
+#, no-wrap
+msgid "b."
+msgstr ""
+
+#. type: Plain text
+#: en/live.persist.5:157
+msgid "I<VOL>/config-files/user2/.bashrc"
+msgstr ""
+
+#. type: TP
+#: en/live.persist.5:157
+#, no-wrap
+msgid "c."
+msgstr ""
+
+#. type: Plain text
+#: en/live.persist.5:160
+msgid "I<VOL>/config-files/user2/.ssh/config"
+msgstr ""
+
+#. type: Plain text
+#: en/live.persist.5:162
+msgid "Then the following links and directories will be created:"
+msgstr ""
+
+#. type: TP
+#: en/live.persist.5:162 en/live.persist.5:165 en/live.persist.5:171
+#, no-wrap
+msgid "Link:"
+msgstr ""
+
+#. type: Plain text
+#: en/live.persist.5:165
+msgid "/home/user1/.emacs -E<gt> I<VOL>/config-files/user1/.emacs (from a)"
+msgstr ""
+
+#. type: Plain text
+#: en/live.persist.5:168
+msgid "/home/user2/.bashrc -E<gt> I<VOL>/config-files/user2/.bashrc (from b)"
+msgstr ""
+
+#. type: TP
+#: en/live.persist.5:168
+#, no-wrap
+msgid "Dir:"
+msgstr ""
+
+#. type: Plain text
+#: en/live.persist.5:171
+msgid "/homea/user2/.ssh (from c)"
+msgstr ""
+
+#. type: Plain text
+#: en/live.persist.5:175
+msgid ""
+"/home/user2/.ssh/config -E<gt> I<VOL>/config-files/user2/.ssh/config (from c)"
+msgstr ""
+
+#. type: Plain text
+#: en/live.persist.5:181
+msgid ""
+"One could argue, though, that lines 1 and 2 in the example B<live.persist> "
+"file above are unnecessary since line 3 already would make all of /home "
+"persistent. The B<linkfiles> option is intended for situations where you "
+"don't want a complete directory to be persistent, only certain files in it "
+"or its sub-directories."
+msgstr ""
+
+#. type: Plain text
+#: en/live.persist.5:190
+msgid ""
+"Line 4 can be mounted at any time since its I<DIR> (and source directory) is "
+"completely disjoint from all the other custom mounts. When mounted, I<VOL>/"
+"usr will be the rw branch due to the B<union> option, and will only contain "
+"the difference compared to the underlying read-only file system. Hence "
+"packages could be installed into /usr with great space-wise efficiency "
+"compared to bind-mounts, since in the latter case all of /usr would have to "
+"be copied into I<VOL>/usr during the initial bootstrap."
+msgstr ""
+
+#. type: Plain text
+#: en/live.persist.5:193
+msgid "I<live-boot>(7)"
+msgstr ""
+
+#. type: Plain text
+#: en/live.persist.5:213
+msgid ""
+"live.persist was written by anonym E<lt>I<anonym at lavabit.com>E<gt> for the "
+"Debian project."
+msgstr ""
diff --git a/scripts/live b/scripts/live
deleted file mode 100755
index 5af7ad8..0000000
--- a/scripts/live
+++ /dev/null
@@ -1,2086 +0,0 @@
-#!/bin/sh
-
-# set -e
-
-export PATH="/root/usr/bin:/root/usr/sbin:/root/bin:/root/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
-
-echo "/root/lib" >> /etc/ld.so.conf
-echo "/root/usr/lib" >> /etc/ld.so.conf
-
-mountpoint="/live/image"
-alt_mountpoint="/media"
-LIVE_MEDIA_PATH="live"
-
-root_persistence="live-rw"
-home_persistence="home-rw"
-root_snapshot_label="live-sn"
-home_snapshot_label="home-sn"
-
-USERNAME="user"
-USERFULLNAME="Live user"
-HOSTNAME="host"
-
-mkdir -p "${mountpoint}"
-tried="/tmp/tried"
-
-# Create /etc/mtab for debug purpose and future syncs
-if [ ! -d /etc ]
-then
-	mkdir /etc/
-fi
-
-if [ ! -f /etc/mtab ]
-then
-	touch /etc/mtab
-fi
-
-. /scripts/live-helpers
-
-if [ ! -f /live.vars ]
-then
-	touch /live.vars
-fi
-
-Arguments ()
-{
-	PRESEEDS=""
-	LOCATIONS=""
-
-	for ARGUMENT in $(cat /proc/cmdline)
-	do
-		case "${ARGUMENT}" in
-			skipconfig)
-				NOACCESSIBILITY="Yes"
-				NOFASTBOOT="Yes"
-				NOFSTAB="Yes"
-				NONETWORKING="Yes"
-
-				export NOACCESSIBILITY NOFASTBOOT NOFSTAB NONETWORKING
-				;;
-
-			access=*)
-				ACCESS="${ARGUMENT#access=}"
-				export ACCESS
-				;;
-
-			console=*)
-				DEFCONSOLE="${ARGUMENT#*=}"
-				export DEFCONSOLE
-				;;
-
-			BOOTIF=*)
-				BOOTIF="${x#BOOTIF=}"
-				;;
-
-			debug)
-				DEBUG="Yes"
-				export DEBUG
-
-				set -x
-				;;
-
-			dhcp)
-				# Force dhcp even while netbooting
-				# Use for debugging in case somebody works on fixing dhclient
-				DHCP="Force";
-				export DHCP
-				;;
-
-			nodhcp)
-				unset DHCP
-				;;
-
-			ethdevice=*)
-				DEVICE="${ARGUMENT#ethdevice=}"
-				ETHDEVICE="${DEVICE}"
-				export DEVICE ETHDEVICE
-				;;
-
-			ethdevice-timeout=*)
-				ETHDEV_TIMEOUT="${ARGUMENT#ethdevice-timeout=}"
-				export ETHDEV_TIMEOUT
-				;;
-
-			fetch=*)
-				FETCH="${ARGUMENT#fetch=}"
-				export FETCH
-				;;
-
-			forcepersistentfsck)
-				FORCEPERSISTENTFSCK="Yes"
-				export FORCEPERSISTENTFSCK
-				;;
-
-			ftpfs=*)
-				FTPFS="${ARGUMENT#ftpfs=}"
-				export FTPFS
-				;;
-
-			httpfs=*)
-				HTTPFS="${ARGUMENT#httpfs=}"
-				export HTTPFS
-				;;
-
-			iscsi=*)
-				ISCSI="${ARGUMENT#iscsi=}"
-				#ip:port - separated by ;
-				ISCSI_PORTAL="${ISCSI%;*}"
-				if echo "${ISCSI_PORTAL}" | grep -q , ; then
-					ISCSI_SERVER="${ISCSI_PORTAL%,*}"
-					ISCSI_PORT="${ISCSI_PORTAL#*,}"
-				fi
-				#target name
-				ISCSI_TARGET="${ISCSI#*;}"
-				export ISCSI ISCSI_PORTAL ISCSI_TARGET ISCSI_SERVER ISCSI_PORT
-				;;
-
-			isofrom=*|fromiso=*)
-				FROMISO="${ARGUMENT#*=}"
-				export FROMISO
-				;;
-
-			ignore_uuid)
-				IGNORE_UUID="Yes"
-				export IGNORE_UUID
-				;;
-
-			integrity-check)
-				INTEGRITY_CHECK="Yes"
-				export INTEGRITY_CHECK
-				;;
-
-			ip=*)
-				STATICIP="${ARGUMENT#ip=}"
-
-				if [ -z "${STATICIP}" ]
-				then
-					STATICIP="frommedia"
-				fi
-
-				export STATICIP
-				;;
-
-			live-getty)
-				LIVE_GETTY="1"
-				export LIVE_GETTY
-				;;
-
-			live-media=*|bootfrom=*)
-				LIVE_MEDIA="${ARGUMENT#*=}"
-				export LIVE_MEDIA
-				;;
-
-			live-media-encryption=*|encryption=*)
-				LIVE_MEDIA_ENCRYPTION="${ARGUMENT#*=}"
-				export LIVE_MEDIA_ENCRYPTION
-				;;
-
-			live-media-offset=*)
-				LIVE_MEDIA_OFFSET="${ARGUMENT#live-media-offset=}"
-				export LIVE_MEDIA_OFFSET
-				;;
-
-			live-media-path=*)
-				LIVE_MEDIA_PATH="${ARGUMENT#live-media-path=}"
-				export LIVE_MEDIA_PATH
-				;;
-
-			live-media-timeout=*)
-				LIVE_MEDIA_TIMEOUT="${ARGUMENT#live-media-timeout=}"
-				export LIVE_MEDIA_TIMEOUT
-				;;
-
-			module=*)
-				MODULE="${ARGUMENT#module=}"
-				export MODULE
-				;;
-
-			netboot=*)
-				NETBOOT="${ARGUMENT#netboot=}"
-				export NETBOOT
-				;;
-
-			nfsopts=*)
-				NFSOPTS="${ARGUMENT#nfsopts=}"
-				export NFSOPTS
-				;;
-
-			nfscow=*)
-				NFS_COW="${ARGUMENT#nfscow=}"
-				export NFS_COW
-				;;
-
-			noaccessibility)
-				NOACCESSIBILITY="Yes"
-				export NOACCESSIBILITY
-				;;
-
-			nofastboot)
-				NOFASTBOOT="Yes"
-				export NOFASTBOOT
-				;;
-
-			nofstab)
-				NOFSTAB="Yes"
-				export NOFSTAB
-				;;
-
-			nonetworking)
-				NONETWORKING="Yes"
-				export NONETWORKING
-				;;
-
-			ramdisk-size=*)
-				ramdisk_size="${ARGUMENT#ramdisk-size=}"
-				;;
-
-			swapon)
-				SWAPON="Yes"
-				export SWAPON
-				;;
-
-			persistent)
-				PERSISTENT="Yes"
-				export PERSISTENT
-				;;
-
-			persistent-encryption=*)
-				PERSISTENT_ENCRYPTION="${ARGUMENT#*=}"
-				export PERSISTENT_ENCRYPTION
-				;;
-
-			persistent-media=*)
-				PERSISTENT_MEDIA="${ARGUMENT#*=}"
-				export PERSISTENT_MEDIA
-				;;
-			persistent-method=*)
-				PERSISTENT_METHOD="${ARGUMENT#*=}"
-				export PERSISTENT_METHOD
-				;;
-
-			persistent-path=*)
-				PERSISTENT_PATH="${ARGUMENT#persistent-path=}"
-				export PERSISTENT_PATH
-				;;
-			persistent-read-only)
-				PERSISTENT_READONLY="Yes"
-				export PERSISTENT_READONLY
-				;;
-
-			persistent-storage=*)
-				PERSISTENT_STORAGE="${ARGUMENT#persistent-storage=}"
-				export PERSISTENT_STORAGE
-				;;
-
-			persistent-subtext=*)
-				root_persistence="${root_persistence}-${ARGUMENT#persistent-subtext=}"
-				home_persistence="${home_persistence}-${ARGUMENT#persistent-subtext=}"
-				root_snapshot_label="${root_snapshot_label}-${ARGUMENT#persistent-subtext=}"
-				home_snapshot_label="${home_snapshot_label}-${ARGUMENT#persistent-subtext=}"
-				;;
-
-			nopersistent)
-				NOPERSISTENT="Yes"
-				export NOPERSISTENT
-				;;
-
-			noprompt)
-				NOPROMPT="Yes"
-				export NOPROMPT
-				;;
-
-			noprompt=*)
-				NOPROMPT="${ARGUMENT#noprompt=}"
-				export NOPROMPT
-				;;
-
-			quickusbmodules)
-				QUICKUSBMODULES="Yes"
-				export QUICKUSBMODULES
-				;;
-
-			preseed/file=*|file=*)
-				LOCATIONS="${ARGUMENT#*=} ${LOCATIONS}"
-				export LOCATIONS
-				;;
-
-			nopreseed)
-				NOPRESEED="Yes"
-				export NOPRESEED
-				;;
-
-			*/*=*)
-				question="${ARGUMENT%%=*}"
-				value="${ARGUMENT#*=}"
-				PRESEEDS="${PRESEEDS}\"${question}=${value}\" "
-				export PRESEEDS
-				;;
-
-			showmounts)
-				SHOWMOUNTS="Yes"
-				export SHOWMOUNTS
-				;;
-
-			silent)
-				SILENT="Yes"
-				export SILENT
-				;;
-
-			todisk=*)
-				TODISK="${ARGUMENT#todisk=}"
-				export TODISK
-				;;
-
-			toram)
-				TORAM="Yes"
-				export TORAM
-				;;
-
-			toram=*)
-				TORAM="Yes"
-				MODULETORAM="${ARGUMENT#toram=}"
-				export TORAM MODULETORAM
-				;;
-
-			exposedroot)
-				EXPOSED_ROOT="Yes"
-				export EXPOSED_ROOT
-				;;
-
-			plainroot)
-				PLAIN_ROOT="Yes"
-				export PLAIN_ROOT
-				;;
-
-			skipunion)
-				SKIP_UNION_MOUNTS="Yes"
-				export SKIP_UNION_MOUNTS
-				;;
-
-			root=*)
-				ROOT="${ARGUMENT#root=}"
-				export ROOT
-				;;
-
-			union=*)
-				UNIONTYPE="${ARGUMENT#union=}"
-				export UNIONTYPE
-				;;
-		esac
-	done
-
-	# sort of compatibility with netboot.h from linux docs
-	if [ -z "${NETBOOT}" ]
-	then
-		if [ "${ROOT}" = "/dev/nfs" ]
-		then
-			NETBOOT="nfs"
-			export NETBOOT
-		elif [ "${ROOT}" = "/dev/cifs" ]
-		then
-			NETBOOT="cifs"
-			export NETBOOT
-		fi
-	fi
-
-	if [ -z "${MODULE}" ]
-	then
-		MODULE="filesystem"
-		export MODULE
-	fi
-
-	if [ -z "${UNIONTYPE}" ]
-	then
-		UNIONTYPE="aufs"
-		export UNIONTYPE
-	fi
-
-	if [ -z "${PERSISTENT_ENCRYPTION}" ]
-	then
-		PERSISTENT_ENCRYPTION="none"
-		export PERSISTENT_ENCRYPTION
-	elif echo ${PERSISTENT_ENCRYPTION} | grep -qe "\<luks\>"
-	then
-		if ! modprobe dm-crypt
-		then
-			log_warning_msg "Unable to load module dm-crypt"
-			PERSISTENT_ENCRYPTION=$(echo ${PERSISTENT_ENCRYPTION} | sed -e 's/\<luks,\|,\?luks$//g')
-			export PERSISTENT_ENCRYPTION
-		fi
-
-		if [ ! -x /lib/cryptsetup/askpass ] || [ ! -x /sbin/cryptsetup ]
-		then
-			log_warning_msg "cryptsetup in unavailable"
-			PERSISTENT_ENCRYPTION=$(echo ${PERSISTENT_ENCRYPTION} | sed -e 's/\<luks,\|,\?luks$//g')
-			export PERSISTENT_ENCRYPTION
-		fi
-	fi
-
-	if [ -n "${PERSISTENT}" ] && [ -z "${PERSISTENT_METHOD}" ]
-	then
-		PERSISTENT_METHOD="snapshot,overlay"
-		export PERSISTENT_METHOD
-	fi
-
-	if [ -n "${PERSISTENT}" ] && [ -z "${PERSISTENT_STORAGE}" ]
-	then
-		PERSISTENT_STORAGE="filesystem,file"
-		export PERSISTENT_STORAGE
-	fi
-}
-
-is_live_path ()
-{
-	DIRECTORY="${1}"
-
-	if [ -d "${DIRECTORY}"/"${LIVE_MEDIA_PATH}" ]
-	then
-		for FILESYSTEM in squashfs ext2 ext3 ext4 xfs dir jffs2
-		do
-			if [ "$(echo ${DIRECTORY}/${LIVE_MEDIA_PATH}/*.${FILESYSTEM})" != "${DIRECTORY}/${LIVE_MEDIA_PATH}/*.${FILESYSTEM}" ]
-			then
-				return 0
-			fi
-		done
-	fi
-
-	return 1
-}
-
-matches_uuid ()
-{
-	if [ "${IGNORE_UUID}" ] || [ ! -e /conf/uuid.conf ]
-	then
-		return 0
-	fi
-
-	path="${1}"
-	uuid="$(cat /conf/uuid.conf)"
-
-	for try_uuid_file in "${path}/.disk/live-uuid"*
-	do
-		[ -e "${try_uuid_file}" ] || continue
-
-		try_uuid="$(cat "${try_uuid_file}")"
-
-		if [ "${uuid}" = "${try_uuid}" ]
-		then
-			return 0
-		fi
-	done
-
-	return 1
-}
-
-get_backing_device ()
-{
-	case "${1}" in
-		*.squashfs|*.ext2|*.ext3|*.ext4|*.jffs2)
-			echo $(setup_loop "${1}" "loop" "/sys/block/loop*" '0' "${LIVE_MEDIA_ENCRYPTION}" "${2}")
-			;;
-
-		*.dir)
-			echo "directory"
-			;;
-
-		*)
-			panic "Unrecognized live filesystem: ${1}"
-			;;
-	esac
-}
-
-match_files_in_dir ()
-{
-	# Does any files match pattern ${1} ?
-	local pattern="${1}"
-
-	if [ "$(echo ${pattern})" != "${pattern}" ]
-	then
-		return 0
-	fi
-
-	return 1
-}
-
-mount_images_in_directory ()
-{
-	directory="${1}"
-	rootmnt="${2}"
-	mac="${3}"
-
-
-	if match_files_in_dir "${directory}/${LIVE_MEDIA_PATH}/*.squashfs" ||
-		match_files_in_dir "${directory}/${LIVE_MEDIA_PATH}/*.ext2" ||
-		match_files_in_dir "${directory}/${LIVE_MEDIA_PATH}/*.ext3" ||
-		match_files_in_dir "${directory}/${LIVE_MEDIA_PATH}/*.ext4" ||
-		match_files_in_dir "${directory}/${LIVE_MEDIA_PATH}/*.jffs2" ||
-		match_files_in_dir "${directory}/${LIVE_MEDIA_PATH}/*.dir"
-	then
-		[ -n "${mac}" ] && adddirectory="${directory}/${LIVE_MEDIA_PATH}/${mac}"
-		setup_unionfs "${directory}/${LIVE_MEDIA_PATH}" "${rootmnt}" "${adddirectory}"
-	else
-		panic "No supported filesystem images found at /${LIVE_MEDIA_PATH}."
-	fi
-}
-
-is_nice_device ()
-{
-	sysfs_path="${1#/sys}"
-
-	if [ -e /lib/udev/path_id ]
-	then
-		# squeeze
-		PATH_ID="/lib/udev/path_id"
-	else
-		# wheezy/sid (udev >= 174)
-		PATH_ID="/sbin/udevadm test-builtin path_id"
-	fi
-
-	if ${PATH_ID} "${sysfs_path}" | egrep -q "ID_PATH=(usb|pci-[^-]*-(ide|sas|scsi|usb|virtio)|platform-sata_mv|platform-orion-ehci|platform-mmc|platform-mxsdhci)"
-	then
-		return 0
-	elif echo "${sysfs_path}" | grep -q '^/block/vd[a-z]$'
-	then
-		return 0
-	elif echo ${sysfs_path} | grep -q "^/block/dm-"
-	then
-		return 0
-	elif echo ${sysfs_path} | grep -q "^/block/mtdblock"
-	then
-		return 0
-	fi
-
-	return 1
-}
-
-copy_live_to ()
-{
-	copyfrom="${1}"
-	copytodev="${2}"
-	copyto="${copyfrom}_swap"
-
-	if [ -z "${MODULETORAM}" ]
-	then
-		size=$(fs_size "" ${copyfrom}/${LIVE_MEDIA_PATH} "used")
-	else
-		MODULETORAMFILE="${copyfrom}/${LIVE_MEDIA_PATH}/${MODULETORAM}"
-
-		if [ -f "${MODULETORAMFILE}" ]
-		then
-			size=$( expr $(ls -la ${MODULETORAMFILE} | awk '{print $5}') / 1024 + 5000 )
-		else
-			log_warning_msg "Error: toram-module ${MODULETORAM} (${MODULETORAMFILE}) could not be read."
-			return 1
-		fi
-	fi
-
-	if [ "${copytodev}" = "ram" ]
-	then
-		# copying to ram:
-		freespace=$(awk '/^MemFree:/{f=$2} /^Cached:/{c=$2} END{print f+c}' /proc/meminfo)
-		mount_options="-o size=${size}k"
-		free_string="memory"
-		fstype="tmpfs"
-		dev="/dev/shm"
-	else
-		# it should be a writable block device
-		if [ -b "${copytodev}" ]
-		then
-			dev="${copytodev}"
-			free_string="space"
-			fstype=$(get_fstype "${dev}")
-			freespace=$(fs_size "${dev}")
-		else
-			log_warning_msg "${copytodev} is not a block device."
-			return 1
-		fi
-	fi
-
-	if [ "${freespace}" -lt "${size}" ]
-	then
-		log_warning_msg "Not enough free ${free_string} (${freespace}k free, ${size}k needed) to copy live media in ${copytodev}."
-		return 1
-	fi
-
-	# Custom ramdisk size
-	if [ -z "${mount_options}" ] && [ -n "${ramdisk_size}" ]
-	then
-		# FIXME: should check for wrong values
-		mount_options="-o size=${ramdisk_size}"
-	fi
-
-	# begin copying (or uncompressing)
-	mkdir "${copyto}"
-	log_begin_msg "mount -t ${fstype} ${mount_options} ${dev} ${copyto}"
-	mount -t "${fstype}" ${mount_options} "${dev}" "${copyto}"
-
-	if [ "${extension}" = "tgz" ]
-	then
-		cd "${copyto}"
-		tar zxf "${copyfrom}/${LIVE_MEDIA_PATH}/$(basename ${FETCH})"
-		rm -f "${copyfrom}/${LIVE_MEDIA_PATH}/$(basename ${FETCH})"
-		mount -r -o move "${copyto}" "${rootmnt}"
-		cd "${OLDPWD}"
-	else
-		if [ -n "${MODULETORAMFILE}" ]
-		then
-			if [ -x /bin/rsync ]
-			then
-				echo " * Copying $MODULETORAMFILE to RAM" 1>/dev/console
-				rsync -a --progress ${MODULETORAMFILE} ${copyto} 1>/dev/console # copy only the filesystem module
-			else
-				cp ${MODULETORAMFILE} ${copyto} # copy only the filesystem module
-			fi
-		else
-			if [ -x /bin/rsync ]
-			then
-				echo " * Copying whole medium to RAM" 1>/dev/console
-				rsync -a --progress ${copyfrom}/* ${copyto} 1>/dev/console  # "cp -a" from busybox also copies hidden files
-			else
-				mkdir -p ${copyto}/${LIVE_MEDIA_PATH}
-				cp -a ${copyfrom}/${LIVE_MEDIA_PATH}/* ${copyto}/${LIVE_MEDIA_PATH}
-				if [ -e ${copyfrom}/${LIVE_MEDIA_PATH}/.disk ]
-				then
-					cp -a ${copyfrom}/${LIVE_MEDIA_PATH}/.disk ${copyto}
-				fi
-			fi
-		fi
-
-		umount ${copyfrom}
-		mount -r -o move ${copyto} ${copyfrom}
-	fi
-
-	rmdir ${copyto}
-	return 0
-}
-
-do_netsetup ()
-{
-	modprobe -q af_packet # For DHCP
-
-	udevadm trigger
-	udevadm settle
-
-	[ -n "$ETHDEV_TIMEOUT" ] || ETHDEV_TIMEOUT=15
-	echo "Using timeout of $ETHDEV_TIMEOUT seconds for network configuration."
-
-	if [ -z "${NETBOOT}" ] && [ -z "${FETCH}" ] && \
-	   [ -z "${HTTPFS}" ] && [ -z "${FTPFS}" ]
-	then
-
-
-	# support for Syslinux IPAPPEND parameter
-	# it sets the BOOTIF variable on the kernel parameter
-
-	if [ -n "${BOOTIF}" ]
-	then
-		# pxelinux sets BOOTIF to a value based on the mac address of the
-		# network card used to PXE boot, so use this value for DEVICE rather
-		# than a hard-coded device name from initramfs.conf. this facilitates
-		# network booting when machines may have multiple network cards.
-		# pxelinux sets BOOTIF to 01-$mac_address
-
-		# strip off the leading "01-", which isn't part of the mac
-		# address
-		temp_mac=${BOOTIF#*-}
-
-		# convert to typical mac address format by replacing "-" with ":"
-		bootif_mac=""
-		IFS='-'
-		for x in $temp_mac
-		do
-			if [ -z "$bootif_mac" ]
-			then
-				bootif_mac="$x"
-			else
-				bootif_mac="$bootif_mac:$x"
-			fi
-		done
-		unset IFS
-
-		# look for devices with matching mac address, and set DEVICE to
-		# appropriate value if match is found.
-
-		for device in /sys/class/net/*
-		do
-			if [ -f "$device/address" ]
-			then
-				current_mac=$(cat "$device/address")
-
-				if [ "$bootif_mac" = "$current_mac" ]
-				then
-					DEVICE=${device##*/}
-					break
-				fi
-			fi
-		done
-	fi
-
-	# if ethdevice was not specified on the kernel command line
-	# make sure we try to get a working network configuration
-	# for *every* present network device (except for loopback of course)
-	if [ -z "$ETHDEVICE" ] ; then
-		echo "If you want to boot from a specific device use bootoption ethdevice=..."
-		for device in /sys/class/net/*; do
-			dev=${device##*/} ;
-			if [ "$dev" != "lo" ] ; then
-				ETHDEVICE="$ETHDEVICE $dev"
-			fi
-		done
-	fi
-
-	# split args of ethdevice=eth0,eth1 into "eth0 eth1"
-	for device in $(echo $ETHDEVICE | sed 's/,/ /g') ; do
-		devlist="$devlist $device"
-	done
-
-	# this is tricky (and ugly) because ipconfig sometimes just hangs/runs into
-	# an endless loop; iff execution fails give it two further tries, that's
-	# why we use '$devlist $devlist $devlist' for the other for loop
-	for dev in $devlist $devlist $devlist ; do
-		echo "Executing ipconfig -t $ETHDEV_TIMEOUT $dev"
-		ipconfig -t "$ETHDEV_TIMEOUT" $dev | tee -a /netboot.config &
-		jobid=$!
-		sleep "$ETHDEV_TIMEOUT" ; sleep 1
-		if [ -r /proc/"$jobid"/status ] ; then
-			echo "Killing job $jobid for device $dev as ipconfig ran into recursion..."
-			kill -9 $jobid
-		fi
-
-		# if configuration of device worked we should have an assigned
-		# IP address, iff so let's use the according as $DEVICE for later usage
-		# simple and primitive approach which seems to work fine
-		if ifconfig $dev | grep -q 'inet.*addr:' ; then
-			export DEVICE="$dev"
-			break
-		fi
-	done
-
-	else
-		for interface in ${DEVICE}; do
-			ipconfig -t "$ETHDEV_TIMEOUT" ${interface} | tee /netboot-${interface}.config
-			[ -e /tmp/net-${interface}.conf ] && . /tmp/net-${interface}.conf
-			if [ "$IPV4ADDR" != "0.0.0.0" ]
-			then
-				break
-			fi
-		done
-	fi
-
-	for interface in ${DEVICE}; do
-		# source relevant ipconfig output
-		OLDHOSTNAME=${HOSTNAME}
-		[ -e /tmp/net-${interface}.conf ] && . /tmp/net-${interface}.conf
-		[ -z ${HOSTNAME} ] && HOSTNAME=${OLDHOSTNAME}
-		export HOSTNAME
-
-		if [ -n "${interface}" ]
-		then
-			HWADDR="$(cat /sys/class/net/${interface}/address)"
-		fi
-
-		if [ ! -e "/etc/resolv.conf" ]
-		then
-			echo "Creating /etc/resolv.conf"
-
-			if [ -n "${DNSDOMAIN}" ]
-			then
-				echo "domain ${DNSDOMAIN}" > /etc/resolv.conf
-				echo "search ${DNSDOMAIN}" >> /etc/resolv.conf
-			fi
-
-			for i in ${IPV4DNS0} ${IPV4DNS1} ${IPV4DNS1}
-			do
-				if [ -n "$i" ] && [ "$i" != 0.0.0.0 ]
-				then
-					echo "nameserver $i" >> /etc/resolv.conf
-				fi
-			done
-		fi
-
-		# Check if we have a network device at all
-		if ! ls /sys/class/net/"$interface" > /dev/null 2>&1 && \
-		   ! ls /sys/class/net/eth0 > /dev/null 2>&1 && \
-		   ! ls /sys/class/net/wlan0 > /dev/null 2>&1 && \
-		   ! ls /sys/class/net/ath0 > /dev/null 2>&1 && \
-		   ! ls /sys/class/net/ra0 > /dev/null 2>&1
-		then
-			panic "No supported network device found, maybe a non-mainline driver is required."
-		fi
-	done
-}
-
-do_netmount()
-{
-	do_netsetup
-
-	if [ "${NFSROOT}" = "auto" ]
-	then
-		NFSROOT=${ROOTSERVER}:${ROOTPATH}
-	fi
-
-	rc=1
-
-	if ( [ -n "${FETCH}" ] || [ -n "${HTTPFS}" ] || [ -n "${FTPFS}" ] )
-	then
-		do_httpmount
-		return $?
-	fi
-
-	if [ "${NFSROOT#*:}" = "${NFSROOT}" ] && [ "$NETBOOT" != "cifs" ]
-	then
-		NFSROOT=${ROOTSERVER}:${NFSROOT}
-	fi
-
-	log_begin_msg "Trying netboot from ${NFSROOT}"
-
-	if [ "${NETBOOT}" != "nfs" ] && do_cifsmount
-	then
-		rc=0
-	elif do_nfsmount
-	then
-		NETBOOT="nfs"
-		export NETBOOT
-		rc=0
-	fi
-
-	log_end_msg
-	return ${rc}
-}
-
-do_iscsi()
-{
-	do_netsetup
-	#modprobe ib_iser
-	modprobe iscsi_tcp
-	local debugopt=""
-	[ "${DEBUG}" == "Yes" ] && debugopt="-d 8"
-	#FIXME this name is supposed to be unique - some date + ifconfig hash?
-	ISCSI_INITIATORNAME="iqn.1993-08.org.debian.live:01:$(echo "${HWADDR}" | sed -e s/://g)"
-	export ISCSI_INITIATORNAME
-	if [ -n "${ISCSI_SERVER}" ] ; then
-		iscsistart $debugopt -i "${ISCSI_INITIATORNAME}" -t "${ISCSI_TARGET}" -g 1 -a "${ISCSI_SERVER}" -p "${ISCSI_PORT}"
-	else
-		iscsistart $debugopt -i "${ISCSI_INITIATORNAME}" -t "${ISCSI_TARGET}" -g 1 -a "${ISCSI_PORTAL}" -p 3260
-	fi
-	if [ $? != 0 ]
-	then
-		panic "Failed to log into iscsi target"
-	fi
-	local host="$(ls -d /sys/class/scsi_host/host*/device/iscsi_host:host* \
-			    /sys/class/scsi_host/host*/device/iscsi_host/host* | sed -e 's:/device.*::' -e 's:.*host::')"
-	if [ -n "${host}" ]
-	then
-		local devices=""
-		local i=0
-		while [ -z "${devices}" -a $i -lt 60 ]
-		do
-			sleep 1
-			devices="$(ls -d /sys/class/scsi_device/${host}*/device/block:* \
-					 /sys/class/scsi_device/${host}*/device/block/* | sed -e 's!.*[:/]!!')"
-			i=$(expr $i + 1)
-			echo -ne $i\\r
-		done
-		for dev in $devices
-		do
-			if check_dev "null" "/dev/$dev"
-			then
-				NETBOOT="iscsi"
-				export NETBOOT
-				return 0;
-			fi
-		done
-		panic "Failed to locate a live device on iSCSI devices (tried: $devices)."
-	else
-		panic "Failed to locate iSCSI host in /sys"
-	fi
-}
-
-do_httpmount ()
-{
-	rc=1
-
-	for webfile in HTTPFS FTPFS FETCH
-	do
-		local url="$(eval echo \"\$\{${webfile}\}\")"
-		local extension="$(echo "${url}" | sed 's/\(.*\)\.\(.*\)/\2/')"
-
-		if [ -n "$url" ]
-		then
-			case "${extension}" in
-				iso|squashfs|tgz|tar)
-					if [ "${extension}" = "iso" ]
-					then
-						mkdir -p "${alt_mountpoint}"
-						dest="${alt_mountpoint}"
-					else
-						local dest="${mountpoint}/${LIVE_MEDIA_PATH}"
-						mount -t ramfs ram "${mountpoint}"
-						mkdir -p "${dest}"
-					fi
-					if [ "${webfile}" = "FETCH" ]
-					then
-						case "$url" in
-							tftp*)
-								ip="$(dirname $url | sed -e 's|tftp://||g' -e 's|/.*$||g')"
-								rfile="$(echo $url | sed -e "s|tftp://$ip||g")"
-								lfile="$(basename $url)"
-								log_begin_msg "Trying tftp -g -b 10240 -r $rfile -l ${dest}/$lfile $ip"
-								tftp -g -b 10240 -r $rfile -l ${dest}/$lfile $ip
-							;;
-
-							*)
-								log_begin_msg "Trying wget ${url} -O ${dest}/$(basename ${url})"
-								wget "${url}" -O "${dest}/$(basename ${url})"
-								;;
-						esac
-					else
-						log_begin_msg "Trying to mount ${url} on ${dest}/$(basename ${url})"
-						if [ "${webfile}" = "FTPFS" ]
-						then
-							FUSE_MOUNT="curlftpfs"
-							url="$(dirname ${url})"
-						else
-							FUSE_MOUNT="httpfs"
-						fi
-						modprobe fuse
-						$FUSE_MOUNT "${url}" "${dest}"
-						ROOT_PID="$(minips h -C "$FUSE_MOUNT" | { read x y ; echo "$x" ; } )"
-					fi
-					[ ${?} -eq 0 ] && rc=0
-					[ "${extension}" = "tgz" ] && live_dest="ram"
-					if [ "${extension}" = "iso" ]
-					then
-						isoloop=$(setup_loop "${dest}/$(basename "${url}")" "loop" "/sys/block/loop*" "" '')
-						mount -t iso9660 "${isoloop}" "${mountpoint}"
-						rc=${?}
-					fi
-					break
-					;;
-
-				*)
-					log_begin_msg "Unrecognized archive extension for ${url}"
-					;;
-			esac
-		fi
-	done
-
-	if [ ${rc} != 0 ]
-	then
-		if [ -d "${alt_mountpoint}" ]
-		then
-		        umount "${alt_mountpoint}"
-			rmdir "${alt_mountpoint}"
-		fi
-		umount "${mountpoint}"
-	elif [ "${webfile}"  != "FETCH" ] ; then
-		NETBOOT="${webfile}"
-		export NETBOOT
-	fi
-
-	return ${rc}
-}
-
-do_nfsmount ()
-{
-	rc=1
-
-	modprobe -q nfs
-
-	if [ -z "${NFSOPTS}" ]
-	then
-		NFSOPTS=""
-	fi
-
-	log_begin_msg "Trying nfsmount -o nolock -o ro ${NFSOPTS} ${NFSROOT} ${mountpoint}"
-
-	# FIXME: This while loop is an ugly HACK round an nfs bug
-	i=0
-	while [ "$i" -lt 60 ]
-	do
-		nfsmount -o nolock -o ro ${NFSOPTS} "${NFSROOT}" "${mountpoint}" && rc=0 && break
-		sleep 1
-		i="$(($i + 1))"
-	done
-
-	return ${rc}
-}
-
-do_cifsmount ()
-{
-	rc=1
-
-	if [ -x "/sbin/mount.cifs" ]
-	then
-		if [ -z "${NFSOPTS}" ]
-		then
-			CIFSOPTS="-ouser=root,password="
-		else
-			CIFSOPTS="${NFSOPTS}"
-		fi
-
-		log_begin_msg "Trying mount.cifs ${NFSROOT} ${mountpoint} ${CIFSOPTS}"
-		modprobe -q cifs
-
-		if mount.cifs "${NFSROOT}" "${mountpoint}" "${CIFSOPTS}"
-		then
-			rc=0
-		fi
-	fi
-
-	return ${rc}
-}
-
-do_snap_copy ()
-{
-	fromdev="${1}"
-	todir="${2}"
-	snap_type="${3}"
-	size=$(fs_size "${fromdev}" "" "used")
-
-	if [ -b "${fromdev}" ]
-	then
-		log_success_msg "Copying snapshot ${fromdev} to ${todir}..."
-
-		# look for free mem
-		if [ -n "${HOMEMOUNTED}" -a "${snap_type}" = "HOME" ]
-		then
-			todev=$(awk -v pat="$(base_path ${todir})" '$2 == pat { print $1 }' /proc/mounts)
-			freespace=$(df -k | awk '/'${todev}'/{print $4}')
-		else
-			freespace=$(awk '/^MemFree:/{f=$2} /^Cached:/{c=$2} END{print f+c}' /proc/meminfo)
-		fi
-
-		tomount="/mnt/tmpsnap"
-
-		if [ ! -d "${tomount}" ]
-		then
-			mkdir -p "${tomount}"
-		fi
-
-		fstype=$(get_fstype "${fromdev}")
-
-		if [ -n "${fstype}" ]
-		then
-			# Copying stuff...
-			mount -o ro -t "${fstype}" "${fromdev}" "${tomount}" || log_warning_msg "Error in mount -t ${fstype} -o ro ${fromdev} ${tomount}"
-			cp -a "${tomount}"/* ${todir}
-			umount "${tomount}"
-		else
-			log_warning_msg "Unrecognized fstype: ${fstype} on ${fromdev}:${snap_type}"
-		fi
-
-		rmdir "${tomount}"
-
-		if echo ${fromdev} | grep -qs loop
-		then
-			losetup -d "${fromdev}"
-		fi
-
-		return 0
-	else
-		log_warning_msg "Unable to find the snapshot ${snap_type} medium"
-		return 1
-	fi
-}
-
-try_snap ()
-{
-	# copy the contents of previously found snapshot to ${snap_mount}
-	# and remember the device and filename for resync on exit in live-boot.init
-
-	snapdata="${1}"
-	snap_mount="${2}"
-	snap_type="${3}"
-	snap_relpath="${4}"
-
-	if [ -z "${snap_relpath}" ]
-	then
-		# root snapshot, default usage
-		snap_relpath="/"
-	else
-		# relative snapshot (actually used just for "/home" snapshots)
-		snap_mount="${2}${snap_relpath}"
-	fi
-
-	if [ -n "${snapdata}" ] && [ ! -b "${snapdata}" ]
-	then
-		log_success_msg "found snapshot: ${snapdata}"
-		snapdev="$(echo ${snapdata} | cut -f1 -d ' ')"
-		snapback="$(echo ${snapdata} | cut -f2 -d ' ')"
-		snapfile="$(echo ${snapdata} | cut -f3 -d ' ')"
-
-		if ! try_mount "${snapdev}" "${snapback}" "ro"
-		then
-			break
-		fi
-
-		RES="0"
-
-		if echo "${snapfile}" | grep -qs '\(squashfs\|ext2\|ext3\|ext4\|jffs2\)'
-		then
-			# squashfs, jffs2 or ext2/ext3/ext4 snapshot
-			dev=$(get_backing_device "${snapback}/${snapfile}")
-
-			do_snap_copy "${dev}" "${snap_mount}" "${snap_type}"
-			RES="$?"
-		else
-			# cpio.gz snapshot
-
-			# Unfortunately klibc's cpio is incompatible with the
-			# rest of the world; everything else requires -u -d,
-			# while klibc doesn't implement them. Try to detect
-			# whether it's in use.
-			cpiopath="$(which cpio)" || true
-			if [ "$cpiopath" ] && grep -aq /lib/klibc "$cpiopath"
-			then
-				cpioargs=
-			else
-				cpioargs='--unconditional --make-directories'
-			fi
-
-			if [ -s "${snapback}/${snapfile}" ]
-			then
-				BEFOREDIR="$(pwd)"
-				cd "${snap_mount}" && zcat "${snapback}/${snapfile}" | $cpiopath $cpioargs --extract --preserve-modification-time --no-absolute-filenames --sparse 2>/dev/null
-				RES="$?"
-				cd "${BEFOREDIR}"
-			else
-				log_warning_msg "${snapback}/${snapfile} is empty, adding it for sync on reboot."
-				RES="0"
-			fi
-
-			if [ "${RES}" != "0" ]
-			then
-				log_warning_msg "failure to \"zcat ${snapback}/${snapfile} | $cpiopath $cpioargs --extract --preserve-modification-time --no-absolute-filenames --sparse\""
-			fi
-		fi
-
-		umount "${snapback}" ||  log_warning_msg "failure to \"umount ${snapback}\""
-
-		if [ "${RES}" != "0" ]
-		then
-			log_warning_msg "Impossible to include the ${snapfile} Snapshot file"
-		fi
-
-	elif [ -b "${snapdata}" ]
-	then
-		# Try to find if it could be a snapshot partition
-		dev="${snapdata}"
-		log_success_msg "found snapshot ${snap_type} device on ${dev}"
-		if echo "${dev}" | grep -qs loop
-		then
-			# strange things happens, user confused?
-			snaploop=$( losetup ${dev} | awk '{print $3}' | tr -d '()' )
-			snapfile=$(basename ${snaploop})
-			snapdev=$(awk -v pat="$( dirname ${snaploop})" '$2 == pat { print $1 }' /proc/mounts)
-		else
-			snapdev="${dev}"
-		fi
-
-		if ! do_snap_copy "${dev}" "${snap_mount}" "${snap_type}"
-		then
-			log_warning_msg "Impossible to include the ${snap_type} Snapshot (i)"
-			return 1
-		else
-			if [ -n "${snapfile}" ]
-			then
-				# it was a loop device, user confused
-				umount ${snapdev}
-			fi
-		fi
-	else
-		log_warning_msg "Impossible to include the ${snap_type} Snapshot (o)"
-		return 1
-	fi
-
-	if [ -z ${PERSISTENT_READONLY} ]
-	then
-		echo "export ${snap_type}SNAP=${snap_relpath}:${snapdev}:${snapfile}" >> snapshot.conf # for resync on reboot/halt
-	fi
-	return 0
-}
-
-setup_unionfs ()
-{
-	image_directory="${1}"
-	rootmnt="${2}"
-	addimage_directory="${3}"
-
-	case ${UNIONTYPE} in
-		aufs|unionfs|overlayfs)
-			modprobe -q -b ${UNIONTYPE}
-
-			if ! cut -f2 /proc/filesystems | grep -q "^${UNIONTYPE}\$" && [ -x /bin/unionfs-fuse ]
-			then
-				echo "${UNIONTYPE} not available, falling back to unionfs-fuse."
-				echo "This might be really slow."
-
-				UNIONTYPE="unionfs-fuse"
-			fi
-			;;
-	esac
-
-	if [ "${UNIONTYPE}" = unionfs-fuse ]
-	then
-		modprobe fuse
-	fi
-
-	# run-init can't deal with images in a subdir, but we're going to
-	# move all of these away before it runs anyway.  No, we're not,
-	# put them in / since move-mounting them into / breaks mono and
-	# some other apps.
-
-	croot="/"
-
-	# Let's just mount the read-only file systems first
-	rofslist=""
-
-	if [ "${UNIONTYPE}" = "aufs" ]
-	then
-		roopt="rr+wh"
-		noxino_opt="noxino,"
-	elif [ "${UNIONTYPE}" = "unionfs-fuse" ]
-	then
-		roopt="RO"
-	else
-		roopt="ro"
-	fi
-
-	if [ -z "${PLAIN_ROOT}" ]
-	then
-		# Read image names from ${MODULE}.module if it exists
-		if [ -e "${image_directory}/filesystem.${MODULE}.module" ]
-		then
-			for IMAGE in $(cat ${image_directory}/filesystem.${MODULE}.module)
-			do
-				image_string="${image_string} ${image_directory}/${IMAGE}"
-			done
-		elif [ -e "${image_directory}/${MODULE}.module" ]
-		then
-			for IMAGE in $(cat ${image_directory}/${MODULE}.module)
-			do
-				image_string="${image_string} ${image_directory}/${IMAGE}"
-			done
-		else
-			# ${MODULE}.module does not exist, create a list of images
-			for FILESYSTEM in squashfs ext2 ext3 ext4 xfs jffs2 dir
-			do
-				for IMAGE in "${image_directory}"/*."${FILESYSTEM}"
-				do
-					if [ -e "${IMAGE}" ]
-					then
-						image_string="${image_string} ${IMAGE}"
-					fi
-				done
-			done
-
-			if [ -n "${addimage_directory}" ] && [ -d "${addimage_directory}" ]
-			then
-				for FILESYSTEM in squashfs ext2 ext3 ext4 xfs jffs2 dir
-				do
-					for IMAGE in "${addimage_directory}"/*."${FILESYSTEM}"
-					do
-						if [ -e "${IMAGE}" ]
-						then
-							image_string="${image_string} ${IMAGE}"
-						fi
-					done
-				done
-			fi
-
-			# Now sort the list
-			image_string="$(echo ${image_string} | sed -e 's/ /\n/g' | sort )"
-		fi
-
-		[ -n "${MODULETORAMFILE}" ] && image_string="${image_directory}/$(basename ${MODULETORAMFILE})"
-
-		mkdir -p "${croot}"
-
-		for image in ${image_string}
-		do
-			imagename=$(basename "${image}")
-
-			export image devname
-			maybe_break live-realpremount
-			log_begin_msg "Running /scripts/live-realpremount"
-			run_scripts /scripts/live-realpremount
-			log_end_msg
-
-			if [ -d "${image}" ]
-			then
-				# it is a plain directory: do nothing
-				rofslist="${image} ${rofslist}"
-			elif [ -f "${image}" ]
-			then
-				if losetup --help 2>&1 | grep -q -- "-r\b"
-				then
-					backdev=$(get_backing_device "${image}" "-r")
-				else
-					backdev=$(get_backing_device "${image}")
-				fi
-				fstype=$(get_fstype "${backdev}")
-
-				if [ "${fstype}" = "unknown" ]
-				then
-					panic "Unknown file system type on ${backdev} (${image})"
-				fi
-
-				if [ -z "${fstype}" ]
-				then
-					fstype="${imagename##*.}"
-					log_warning_msg "Unknown file system type on ${backdev} (${image}), assuming ${fstype}."
-				fi
-
-				if [ "${UNIONTYPE}" != "unionmount" ]
-				then
-					mpoint="${croot}/${imagename}"
-					rofslist="${mpoint} ${rofslist}"
-				else
-					mpoint="${rootmnt}"
-					rofslist="${rootmnt} ${rofslist}"
-				fi
-				mkdir -p "${mpoint}"
-				log_begin_msg "Mounting \"${image}\" on \"${mpoint}\" via \"${backdev}\""
-				mount -t "${fstype}" -o ro,noatime "${backdev}" "${mpoint}" || panic "Can not mount ${backdev} (${image}) on ${mpoint}"
-				log_end_msg
-			fi
-		done
-	else
-		# we have a plain root system
-		mkdir -p "${croot}/filesystem"
-		log_begin_msg "Mounting \"${image_directory}\" on \"${croot}/filesystem\""
-		mount -t $(get_fstype "${image_directory}") -o ro,noatime "${image_directory}" "${croot}/filesystem" || \
-			panic "Can not mount ${image_directory} on ${croot}/filesystem" && \
-			rofslist="${croot}/filesystem ${rofslist}"
-		# probably broken:
-		mount -o bind ${croot}/filesystem $mountpoint
-		log_end_msg
-	fi
-
-	mkdir -p /cow
-
-	# Looking for "${root_persistence}" device or file
-	if [ -n "${PERSISTENT}" ] && [ -z "${NOPERSISTENT}" ]
-	then
-
-		if [ -z "${QUICKUSBMODULES}" ]
-		then
-			# Load USB modules
-			num_block=$(ls -l /sys/block | wc -l)
-			for module in sd_mod uhci-hcd ehci-hcd ohci-hcd usb-storage
-			do
-				modprobe -q -b ${module}
-			done
-
-			udevadm trigger
-			udevadm settle
-
-			# For some reason, udevsettle does not block in this scenario,
-			# so we sleep for a little while.
-			#
-			# See https://bugs.launchpad.net/ubuntu/+source/casper/+bug/84591
-			for timeout in 5 4 3 2 1
-			do
-				sleep 1
-
-				if [ $(ls -l /sys/block | wc -l) -gt ${num_block} ]
-				then
-					break
-				fi
-			done
-		fi
-
-		case "${PERSISTENT_MEDIA}" in
-			removable)
-				whitelistdev="$(removable_dev)"
-				;;
-			removable-usb)
-				whitelistdev="$(removable_usb_dev)"
-				;;
-			*)
-				whitelistdev=""
-				;;
-		esac
-
-		if echo ${PERSISTENT_METHOD} | grep -qe "\<overlay\>"
-		then
-			overlays="${root_persistence} ${home_persistence}"
-		fi
-
-		if echo ${PERSISTENT_METHOD} | grep -qe "\<snapshot\>"
-		then
-			snapshots="${root_snapshot_label} ${home_snapshot_label}"
-		fi
-
-
-		for media in $(find_persistent_media "${overlays}" "${snapshots}" "${blacklistdev}" "${whitelistdev}")
-		do
-			media="$(echo ${media} | tr ":" " ")"
-			case ${media} in
-				${root_persistence}=*)
-					cowprobe="${media#*=}"
-					;;
-				${home_persistence}=*)
-					homecow="${media#*=}"
-					;;
-				${root_snapshot_label}=*)
-					root_snapdata="${media#*=}"
-					;;
-				${home_snapshot_label}=*)
-					# This second type should be removed when snapshot will get smarter,
-					# hence when "/etc/live-snapshot*list" will be supported also by
-					# ext2|ext3|ext4|jffs2 snapshot types.
-					home_snapdata="${media#*=}"
-					;;
-				*)
-					;;
-			 esac
-		done
-
-		if [ -b "${cowprobe}" ] || [ -b "${homecow}" ]
-		then
-			PERSISTENCE_IS_ON="1"
-			export PERSISTENCE_IS_ON
-		fi
-
-		if [ -b "${cowprobe}" ]
-		then
-			cowdevice=${cowprobe}
-			cow_fstype=$(get_fstype "${cowprobe}")
-			if [ -z "${PERSISTENT_READONLY}" ]
-			then
-				cow_mountopt="rw,noatime"
-			else
-				cow_mountopt="ro,noatime"
-			fi
-
-			if [ "${FORCEPERSISTENTFSCK}" = "Yes" ]
-			then
-				fsck -y ${cowdevice}
-			fi
-		fi
-	elif [ -n "${NFS_COW}" ] && [ -z "${NOPERSISTENT}" ]
-	then
-		# check if there are any nfs options
-		if echo ${NFS_COW}|grep -q ','
-		then
-			nfs_cow_opts="-o nolock,$(echo ${NFS_COW}|cut -d, -f2-)"
-			nfs_cow=$(echo ${NFS_COW}|cut -d, -f1)
-		else
-			nfs_cow_opts="-o nolock"
-			nfs_cow=${NFS_COW}
-		fi
-
-		if [ -n "${PERSISTENT_READONLY}" ]
-		then
-			nfs_cow_opts="${nfs_cow_opts},nocto,ro"
-		fi
-
-		mac="$(get_mac)"
-		if [ -n "${mac}" ]
-		then
-			cowdevice=$(echo ${nfs_cow}|sed "s/client_mac_address/${mac}/")
-			cow_fstype="nfs"
-		else
-			panic "unable to determine mac address"
-		fi
-	fi
-
-	if [ -z "${cowdevice}" ]
-	then
-		cowdevice="tmpfs"
-		cow_fstype="tmpfs"
-		cow_mountopt="rw,noatime,mode=755"
-	fi
-
-	if [ "${UNIONTYPE}" != "unionmount" ]
-	then
-		if [ -n "${PERSISTENT_READONLY}" ]
-		then
-			persistent_root="/$(basename ${cowdevice})-backing"
-			mkdir -p ${persistent_root}
-		else
-			persistent_root="/cow"
-		fi
-
-		if [ "${cow_fstype}" = "nfs" ]
-		then
-			log_begin_msg \
-				"Trying nfsmount ${nfs_cow_opts} ${cowdevice} ${persistent_root}"
-			nfsmount ${nfs_cow_opts} ${cowdevice} ${persistent_root} || \
-				panic "Can not mount ${cowdevice} (n: ${cow_fstype}) on ${persistent_root}"
-		else
-			mount -t ${cow_fstype} -o ${cow_mountopt} ${cowdevice} ${persistent_root} || \
-				panic "Can not mount ${cowdevice} (o: ${cow_fstype}) on ${persistent_root}"
-		fi
-	fi
-
-	rofscount=$(echo ${rofslist} |wc -w)
-
-	if [ ${rofscount} -ne 1 ]
-	then
-		panic "only one RO file system supported with exposedroot: ${rofslist}"
-	fi
-	rofs=${rofslist%% }
-
-	if [ -n "${EXPOSED_ROOT}" ]
-	then
-		mount --bind ${rofs} ${rootmnt} || \
-			panic "bind mount of ${rofs} failed"
-
-		if [ -z "${SKIP_UNION_MOUNTS}" ]
-		then
-			cow_dirs='/var/tmp /var/lock /var/run /var/log /var/spool /home /var/lib/live'
-		else
-			cow_dirs=''
-		fi
-	else
-		cow_dirs="/"
-	fi
-
-	if [ "${cow_fstype}" != "tmpfs" ] && [ "${cow_dirs}" != "/" ] && [ "${UNIONTYPE}" = "unionmount" ]
-	then
-		true # FIXME: Maybe it does, I don't really know.
-		#panic "unionmount does not support subunions (${cow_dirs})."
-	fi
-
-	unionmountopts=""
-	unionmountpoint=""
-
-	for dir in ${cow_dirs}; do
-		mkdir -p /cow${dir}
-
-		unionmountpoint="${rootmnt}${dir}"
-		unionrw="/cow${dir}"
-		unionro="${rofs}${dir}"
-		# We don't handle spaces and other junk gracefully here, hopefully not needed.
-		case "${UNIONTYPE}" in
-			unionfs-fuse)
-				unionmountopts="-o cow -o noinitgroups -o default_permissions -o allow_other -o use_ino -o suid"
-				unionmountopts="${unionmountopts} ${unionrw}=RW:${unionro}=RO"
-				( sysctl -w fs.file-max=391524 ; ulimit -HSn 16384
-				unionfs-fuse ${unionmountopts} "${unionmountpoint}" ) && \
-				( mkdir -p /run/sendsigs.omit.d
-				pidof unionfs-fuse >> /run/sendsigs.omit.d/unionfs-fuse || true )
-				;;
-
-			unionmount)
-				unionmountopts="-t ${cow_fstype} -o noatime,union,${cow_mountopt} ${cowdevice}"
-				mount_full $unionmountopts "${unionmountpoint}"
-				;;
-
-			overlayfs)
-				unionmountopts="-o noatime,${noxino_opt},lowerdir=${unionro},upperdir=${unionrw}"
-				mount -t ${UNIONTYPE} ${unionmountopts} ${UNIONTYPE} "${unionmountpoint}"
-				;;
-
-			*)
-				if [ -n "${PERSISTENT_READONLY}" ]
-				then
-					mount -t tmpfs -o rw,noatime,mode=755 tmpfs "${unionrw}"
-					unionmountopts="-o noatime,${noxino_opt}dirs=${unionrw}=rw:${persistent_root}=${roopt}:${unionro}=${roopt}"
-				else
-					unionmountopts="-o noatime,${noxino_opt}dirs=${unionrw}=rw:${unionro}=${roopt}"
-				fi
-				mount -t ${UNIONTYPE} ${unionmountopts} ${UNIONTYPE} "${unionmountpoint}"
-				;;
-		esac || \
-			panic "mount ${UNIONTYPE} on ${unionmountpoint} failed with option ${unionmountopts}"
-	done
-
-	# Correct the permissions of /:
-	chmod 0755 "${rootmnt}"
-
-	# tmpfs file systems
-	touch /etc/fstab
-	mkdir -p "${rootmnt}/live"
-	mount -t tmpfs tmpfs ${rootmnt}/live
-
-	# Adding other custom mounts
-	if [ -n "${PERSISTENT}" ] && [ -z "${NOPERSISTENT}" ]
-	then
-		# directly mount /home
-		# FIXME: add a custom mounts configurable system
-
-		if [ -b "${homecow}" ]
-		then
-			if [ -z "${PERSISTENT_READONLY}" ]
-			then
-				mount -t $(get_fstype "${homecow}") -o rw,noatime "${homecow}" "${rootmnt}/home"
-			else
-				homerw="/cow/home"
-			        homero="/$(basename ${homecow})-backing"
-				homemountpoint="${rootmnt}/home"
-				mkdir -p ${homerw} ${homero} ${homemountpoint}
-				mount -t $(get_fstype "${homecow}") -o ro "${homecow}" "${homero}"
-				mount -t "${UNIONTYPE}" -o "noatime,${noxino_opt}dirs=${homerw}=rw:${homero}=${roopt}" "${UNIONTYPE}" "${homemountpoint}"
-			fi
-			export HOMEMOUNTED=1 # used to proper calculate free space in do_snap_copy()
-		else
-			log_warning_msg "Unable to find the persistent home medium"
-		fi
-
-		# Look for other snapshots to copy in
-		try_snap "${root_snapdata}" "${rootmnt}" "ROOT"
-		# This second type should be removed when snapshot grow smarter
-		try_snap "${home_snapdata}" "${rootmnt}" "HOME" "/home"
-	fi
-
-	if [ -n "${SHOWMOUNTS}" ]
-	then
-		for d in ${rofslist}
-		do
-			mkdir -p "${rootmnt}/live/${d##*/}"
-
-			case d in
-				*.dir)
-					# do nothing # mount -o bind "${d}" "${rootmnt}/live/${d##*/}"
-					;;
-
-				*)
-					case "${UNIONTYPE}" in
-						unionfs-fuse)
-							mount -o bind "${d}" "${rootmnt}/live/${d##*/}"
-							;;
-
-						*)
-							mount -o move "${d}" "${rootmnt}/live/${d##*/}"
-							;;
-					esac
-					;;
-			esac
-		done
-	fi
-
-	# shows cow fs on /cow for use by live-snapshot
-	mkdir -p "${rootmnt}/live/cow"
-	mount -o move /cow "${rootmnt}/live/cow" >/dev/null 2>&1 || mount -o bind /cow "${rootmnt}/live/cow" || log_warning_msg "Unable to move or bind /cow to ${rootmnt}/live/cow"
-}
-
-check_dev ()
-{
-	sysdev="${1}"
-	devname="${2}"
-	skip_uuid_check="${3}"
-
-	# support for fromiso=.../isofrom=....
-	if [ -n "$FROMISO" ]
-	then
-		ISO_DEVICE=$(dirname $FROMISO)
-		if ! [ -b $ISO_DEVICE ]
-		then
-			# to support unusual device names like /dev/cciss/c0d0p1
-			# as well we have to identify the block device name, let's
-			# do that for up to 15 levels
-			i=15
-			while [ -n "$ISO_DEVICE" ] && [ "$i" -gt 0 ]
-			do
-				ISO_DEVICE=$(dirname ${ISO_DEVICE})
-				[ -b "$ISO_DEVICE" ] && break
-				i=$(($i -1))
-		        done
-		fi
-
-		if [ "$ISO_DEVICE" = "/" ]
-		then
-			echo "Warning: device for bootoption isofrom= ($FROMISO) not found.">>/live-boot.log
-		else
-			fs_type=$(get_fstype "${ISO_DEVICE}")
-			if is_supported_fs ${fs_type}
-			then
-				mkdir /isofrom
-				mount -t $fs_type "$ISO_DEVICE" /isofrom
-				ISO_NAME="$(echo $FROMISO | sed "s|$ISO_DEVICE||")"
-				loopdevname=$(setup_loop "/isofrom/${ISO_NAME}" "loop" "/sys/block/loop*" "" '')
-				devname="${loopdevname}"
-			else
-				echo "Warning: unable to mount $ISO_DEVICE." >>/live-boot.log
-			fi
-		fi
-	fi
-
-	if [ -z "${devname}" ]
-	then
-		devname=$(sys2dev "${sysdev}")
-	fi
-
-	if [ -d "${devname}" ]
-	then
-		mount -o bind "${devname}" $mountpoint || continue
-
-		if is_live_path $mountpoint
-		then
-			echo $mountpoint
-			return 0
-		else
-			umount $mountpoint
-		fi
-	fi
-
-	IFS=","
-	for device in ${devname}
-	do
-		case "$device" in
-			*mapper*)
-				# Adding lvm support
-				if [ -x /scripts/local-top/lvm2 ]
-				then
-					ROOT="$device" resume="" /scripts/local-top/lvm2
-				fi
-				;;
-
-			/dev/md*)
-				# Adding raid support
-				if [ -x /scripts/local-top/mdadm ]
-				then
-					cp /conf/conf.d/md /conf/conf.d/md.orig
-					echo "MD_DEVS=$device " >> /conf/conf.d/md
-					/scripts/local-top/mdadm
-					mv /conf/conf.d/md.orig /conf/conf.d/md
-				fi
-				;;
-		esac
-	done
-	unset IFS
-
-	[ -n "$device" ] && devname="$device"
-
-	[ -e "$devname" ] || continue
-
-	if [ -n "${LIVE_MEDIA_OFFSET}" ]
-	then
-		loopdevname=$(setup_loop "${devname}" "loop" "/sys/block/loop*" "${LIVE_MEDIA_OFFSET}" '')
-		devname="${loopdevname}"
-	fi
-
-	fstype=$(get_fstype "${devname}")
-
-	if is_supported_fs ${fstype}
-	then
-		devuid=$(blkid -o value -s UUID "$devname")
-		[ -n "$devuid" ] && grep -qs "\<$devuid\>" $tried && continue
-		mount -t ${fstype} -o ro,noatime "${devname}" ${mountpoint} || continue
-		[ -n "$devuid" ] && echo "$devuid" >> $tried
-
-		if is_live_path ${mountpoint} && \
-			([ "${skip_uuid_check}" ] || matches_uuid ${mountpoint})
-		then
-			echo ${mountpoint}
-			return 0
-		else
-			umount ${mountpoint} 2>/dev/null
-		fi
-	fi
-
-	if [ -n "${LIVE_MEDIA_OFFSET}" ]
-	then
-		losetup -d "${loopdevname}"
-	fi
-
-	return 1
-}
-
-find_livefs ()
-{
-	timeout="${1}"
-
-	# don't start autodetection before timeout has expired
-	if [ -n "${LIVE_MEDIA_TIMEOUT}" ]
-	then
-		if [ "${timeout}" -lt "${LIVE_MEDIA_TIMEOUT}" ]
-		then
-			return 1
-		fi
-	fi
-
-	# first look at the one specified in the command line
-	case "${LIVE_MEDIA}" in
-		removable-usb)
-			for sysblock in $(removable_usb_dev "sys")
-			do
-				for dev in $(subdevices "${sysblock}")
-				do
-					if check_dev "${dev}"
-					then
-						return 0
-					fi
-				done
-			done
-			return 1
-			;;
-
-		removable)
-			for sysblock in $(removable_dev "sys")
-			do
-				for dev in $(subdevices "${sysblock}")
-				do
-					if check_dev "${dev}"
-					then
-						return 0
-					fi
-				done
-			done
-			return 1
-			;;
-
-		*)
-			if [ ! -z "${LIVE_MEDIA}" ]
-			then
-				if check_dev "null" "${LIVE_MEDIA}" "skip_uuid_check"
-				then
-					return 0
-				fi
-			fi
-			;;
-	esac
-
-	# or do the scan of block devices
-	# prefer removable devices over non-removable devices, so scan them first
-	devices_to_scan="$(removable_dev 'sys') $(non_removable_dev 'sys')"
-
-	for sysblock in $devices_to_scan
-	do
-		devname=$(sys2dev "${sysblock}")
-		[ -e "$devname" ] || continue
-		fstype=$(get_fstype "${devname}")
-
-		if /lib/udev/cdrom_id ${devname} > /dev/null
-		then
-			if check_dev "null" "${devname}"
-			then
-				return 0
-			fi
-		elif is_nice_device "${sysblock}"
-		then
-			for dev in $(subdevices "${sysblock}")
-			do
-				if check_dev "${dev}"
-				then
-					return 0
-				fi
-			done
-		elif [ "${fstype}" = "squashfs" -o \
-			"${fstype}" = "btrfs" -o \
-			"${fstype}" = "ext2" -o \
-			"${fstype}" = "ext3" -o \
-			"${fstype}" = "ext4" -o \
-			"${fstype}" = "jffs2" ]
-		then
-			# This is an ugly hack situation, the block device has
-			# an image directly on it.  It's hopefully
-			# live-boot, so take it and run with it.
-			ln -s "${devname}" "${devname}.${fstype}"
-			echo "${devname}.${fstype}"
-			return 0
-		fi
-	done
-
-	return 1
-}
-
-integrity_check ()
-{
-	media_mountpoint="${1}"
-
-	log_begin_msg "Checking media integrity"
-
-	cd ${media_mountpoint}
-	/bin/md5sum -c md5sum.txt < /dev/tty8 > /dev/tty8
-	RC="${?}"
-
-	log_end_msg
-
-	if [ "${RC}" -eq 0 ]
-	then
-		log_success_msg "Everything ok, will reboot in 10 seconds."
-		sleep 10
-		cd /
-		umount ${media_mountpoint}
-		sync
-		echo u > /proc/sysrq-trigger
-		echo b > /proc/sysrq-trigger
-	else
-		panic "Not ok, a media defect is likely, switch to VT8 for details."
-	fi
-}
-
-mountroot ()
-{
-	if [ -x /scripts/local-top/cryptroot ]; then
-	    /scripts/local-top/cryptroot
-	fi
-
-	exec 6>&1
-	exec 7>&2
-	exec > live-boot.log
-	exec 2>&1
-	tail -f live-boot.log >&7 &
-	tailpid="${!}"
-
-	# Ensure 'panic' function is overridden
-	. /scripts/live-functions
-
-	Arguments
-
-	maybe_break live-premount
-	log_begin_msg "Running /scripts/live-premount"
-	run_scripts /scripts/live-premount
-	log_end_msg
-
-	# Needed here too because some things (*cough* udev *cough*)
-	# changes the timeout
-
-	if [ ! -z "${NETBOOT}" ] || [ ! -z "${FETCH}" ] || [ ! -z "${HTTPFS}" ] || [ ! -z "${FTPFS}" ]
-	then
-		if do_netmount
-		then
-			livefs_root="${mountpoint}"
-		else
-			panic "Unable to find a live file system on the network"
-		fi
-	else
-		if [ -n "${ISCSI_PORTAL}" ]
-		then
-			do_iscsi && livefs_root="${mountpoint}"
-		elif [ -n "${PLAIN_ROOT}" ] && [ -n "${ROOT}" ]
-		then
-			# Do a local boot from hd
-			livefs_root=${ROOT}
-		else
-			if [ -x /usr/bin/memdiskfind ]
-			then
-				MEMDISK=$(/usr/bin/memdiskfind)
-
-				if [ $? -eq 0 ]
-				then
-					# We found a memdisk, set up phram
-					modprobe phram phram=memdisk,${MEMDISK}
-
-					# Load mtdblock, the memdisk will be /dev/mtdblock0
-					modprobe mtdblock
-				fi
-			fi
-
-			# Scan local devices for the image
-			i=0
-			while [ "$i" -lt 60 ]
-			do
-				livefs_root=$(find_livefs ${i})
-
-				if [ -n "${livefs_root}" ]
-				then
-					break
-				fi
-
-				sleep 1
-				i="$(($i + 1))"
-			done
-		fi
-	fi
-
-	if [ -z "${livefs_root}" ]
-	then
-		panic "Unable to find a medium containing a live file system"
-	fi
-
-	if [ "${INTEGRITY_CHECK}" ]
-	then
-		integrity_check "${livefs_root}"
-	fi
-
-	if [ "${TORAM}" ]
-	then
-		live_dest="ram"
-	elif [ "${TODISK}" ]
-	then
-		live_dest="${TODISK}"
-	fi
-
-	if [ "${live_dest}" ]
-	then
-		log_begin_msg "Copying live media to ${live_dest}"
-		copy_live_to "${livefs_root}" "${live_dest}"
-		log_end_msg
-	fi
-
-	# if we do not unmount the ISO we can't run "fsck /dev/ice" later on
-	# because the mountpoint is left behind in /proc/mounts, so let's get
-	# rid of it when running from RAM
-	if [ -n "$FROMISO" ] && [ "${TORAM}" ]
-	then
-	  losetup -d /dev/loop0
-	  grep -q /isofrom /proc/mounts && umount /isofrom
-	fi
-
-	if [ -n "${MODULETORAMFILE}" ] || [ -n "${PLAIN_ROOT}" ]
-	then
-		setup_unionfs "${livefs_root}" "${rootmnt}"
-	else
-		mac="$(get_mac)"
-		mac="$(echo ${mac} | sed 's/-//g')"
-		mount_images_in_directory "${livefs_root}" "${rootmnt}" "${mac}"
-	fi
-
-
-	if [ -n "${ROOT_PID}" ] ; then
-		echo "${ROOT_PID}" > "${rootmnt}"/live/root.pid
-	fi
-
-	log_end_msg
-
-	# unionfs-fuse needs /dev to be bind-mounted for the duration of
-	# live-bottom; udev's init script will take care of things after that
-	if [ "${UNIONTYPE}" = unionfs-fuse ]
-	then
-		mount -n -o bind /dev "${rootmnt}/dev"
-	fi
-
-	# Move to the new root filesystem so that programs there can get at it.
-	if [ ! -d /root/live/image ]
-	then
-		mkdir -p /root/live/image
-		mount --move /live/image /root/live/image
-	fi
-
-	# aufs2 in kernel versions around 2.6.33 has a regression:
-	# directories can't be accessed when read for the first the time,
-	# causing a failure for example when accessing /var/lib/fai
-	# when booting FAI, this simple workaround solves it
-	ls /root/* >/dev/null 2>&1
-
-	# copy snapshot configuration if exists
-	if [ -f snapshot.conf ]
-	then
-		log_begin_msg "Copying snapshot.conf to ${rootmnt}/etc/live/boot.d"
-		if [ ! -d "${rootmnt}/etc/live/boot.d" ]
-		then
-			mkdir -p "${rootmnt}/etc/live/boot.d"
-		fi
-		cp snapshot.conf "${rootmnt}/etc/live/boot.d/"
-		log_end_msg
-	fi
-
-	if [ -f /etc/resolv.conf ] && [ ! -s ${rootmnt}/etc/resolv.conf ]
-	then
-		log_begin_msg "Copying /etc/resolv.conf to ${rootmnt}/etc/resolv.conf"
-		cp -v /etc/resolv.conf ${rootmnt}/etc/resolv.conf
-		log_end_msg
-	fi
-
-	maybe_break live-bottom
-	log_begin_msg "Running /scripts/live-bottom\n"
-
-	run_scripts /scripts/live-bottom
-	log_end_msg
-
-	if [ "${UNIONFS}" = unionfs-fuse ]
-	then
-		umount "${rootmnt}/dev"
-	fi
-
-	exec 1>&6 6>&-
-	exec 2>&7 7>&-
-	kill ${tailpid}
-	[ -w "${rootmnt}/var/log/" ] && cp live-boot.log "${rootmnt}/var/log/" 2>/dev/null
-}
diff --git a/scripts/live-helpers b/scripts/live-helpers
index 3109356..889d157 100644
--- a/scripts/live-helpers
+++ b/scripts/live-helpers
@@ -15,6 +15,406 @@ else
 	udevinfo='udevinfo'
 fi
 
+root_overlay_label="full-ov"
+old_root_overlay_label="live-rw"
+old_home_overlay_label="home-rw"
+custom_overlay_label="custom-ov"
+root_snapshot_label="live-sn"
+old_root_snapshot_label="live-sn"
+home_snapshot_label="home-sn"
+persistence_list="live.persist"
+
+Arguments ()
+{
+	PRESEEDS=""
+	LOCATIONS=""
+
+	for ARGUMENT in $(cat /proc/cmdline)
+	do
+		case "${ARGUMENT}" in
+			skipconfig)
+				NOACCESSIBILITY="Yes"
+				NOFASTBOOT="Yes"
+				NOFSTAB="Yes"
+				NONETWORKING="Yes"
+
+				export NOACCESSIBILITY NOFASTBOOT NOFSTAB NONETWORKING
+				;;
+
+			access=*)
+				ACCESS="${ARGUMENT#access=}"
+				export ACCESS
+				;;
+
+			console=*)
+				DEFCONSOLE="${ARGUMENT#*=}"
+				export DEFCONSOLE
+				;;
+
+			BOOTIF=*)
+				BOOTIF="${x#BOOTIF=}"
+				;;
+
+			debug)
+				DEBUG="Yes"
+				export DEBUG
+
+				set -x
+				;;
+
+			dhcp)
+				# Force dhcp even while netbooting
+				# Use for debugging in case somebody works on fixing dhclient
+				DHCP="Force";
+				export DHCP
+				;;
+
+			nodhcp)
+				unset DHCP
+				;;
+
+			ethdevice=*)
+				DEVICE="${ARGUMENT#ethdevice=}"
+				ETHDEVICE="${DEVICE}"
+				export DEVICE ETHDEVICE
+				;;
+
+			ethdevice-timeout=*)
+				ETHDEV_TIMEOUT="${ARGUMENT#ethdevice-timeout=}"
+				export ETHDEV_TIMEOUT
+				;;
+
+			fetch=*)
+				FETCH="${ARGUMENT#fetch=}"
+				export FETCH
+				;;
+
+			forcepersistentfsck)
+				FORCEPERSISTENTFSCK="Yes"
+				export FORCEPERSISTENTFSCK
+				;;
+
+			ftpfs=*)
+				FTPFS="${ARGUMENT#ftpfs=}"
+				export FTPFS
+				;;
+
+			httpfs=*)
+				HTTPFS="${ARGUMENT#httpfs=}"
+				export HTTPFS
+				;;
+
+			iscsi=*)
+				ISCSI="${ARGUMENT#iscsi=}"
+				#ip:port - separated by ;
+				ISCSI_PORTAL="${ISCSI%;*}"
+				if echo "${ISCSI_PORTAL}" | grep -q , ; then
+					ISCSI_SERVER="${ISCSI_PORTAL%,*}"
+					ISCSI_PORT="${ISCSI_PORTAL#*,}"
+				fi
+				#target name
+				ISCSI_TARGET="${ISCSI#*;}"
+				export ISCSI ISCSI_PORTAL ISCSI_TARGET ISCSI_SERVER ISCSI_PORT
+				;;
+
+			isofrom=*|fromiso=*)
+				FROMISO="${ARGUMENT#*=}"
+				export FROMISO
+				;;
+
+			ignore_uuid)
+				IGNORE_UUID="Yes"
+				export IGNORE_UUID
+				;;
+
+			integrity-check)
+				INTEGRITY_CHECK="Yes"
+				export INTEGRITY_CHECK
+				;;
+
+			ip=*)
+				STATICIP="${ARGUMENT#ip=}"
+
+				if [ -z "${STATICIP}" ]
+				then
+					STATICIP="frommedia"
+				fi
+
+				export STATICIP
+				;;
+
+			live-getty)
+				LIVE_GETTY="1"
+				export LIVE_GETTY
+				;;
+
+			live-media=*|bootfrom=*)
+				LIVE_MEDIA="${ARGUMENT#*=}"
+				export LIVE_MEDIA
+				;;
+
+			live-media-encryption=*|encryption=*)
+				LIVE_MEDIA_ENCRYPTION="${ARGUMENT#*=}"
+				export LIVE_MEDIA_ENCRYPTION
+				;;
+
+			live-media-offset=*)
+				LIVE_MEDIA_OFFSET="${ARGUMENT#live-media-offset=}"
+				export LIVE_MEDIA_OFFSET
+				;;
+
+			live-media-path=*)
+				LIVE_MEDIA_PATH="${ARGUMENT#live-media-path=}"
+				export LIVE_MEDIA_PATH
+				;;
+
+			live-media-timeout=*)
+				LIVE_MEDIA_TIMEOUT="${ARGUMENT#live-media-timeout=}"
+				export LIVE_MEDIA_TIMEOUT
+				;;
+
+			module=*)
+				MODULE="${ARGUMENT#module=}"
+				export MODULE
+				;;
+
+			netboot=*)
+				NETBOOT="${ARGUMENT#netboot=}"
+				export NETBOOT
+				;;
+
+			nfsopts=*)
+				NFSOPTS="${ARGUMENT#nfsopts=}"
+				export NFSOPTS
+				;;
+
+			nfscow=*)
+				NFS_COW="${ARGUMENT#nfscow=}"
+				export NFS_COW
+				;;
+
+			noaccessibility)
+				NOACCESSIBILITY="Yes"
+				export NOACCESSIBILITY
+				;;
+
+			nofastboot)
+				NOFASTBOOT="Yes"
+				export NOFASTBOOT
+				;;
+
+			nofstab)
+				NOFSTAB="Yes"
+				export NOFSTAB
+				;;
+
+			nonetworking)
+				NONETWORKING="Yes"
+				export NONETWORKING
+				;;
+
+			ramdisk-size=*)
+				ramdisk_size="${ARGUMENT#ramdisk-size=}"
+				;;
+
+			swapon)
+				SWAPON="Yes"
+				export SWAPON
+				;;
+
+			persistent)
+				PERSISTENT="Yes"
+				export PERSISTENT
+				;;
+
+			persistent-encryption=*)
+				PERSISTENT_ENCRYPTION="${ARGUMENT#*=}"
+				export PERSISTENT_ENCRYPTION
+				;;
+
+			persistent-media=*)
+				PERSISTENT_MEDIA="${ARGUMENT#*=}"
+				export PERSISTENT_MEDIA
+				;;
+			persistent-method=*)
+				PERSISTENT_METHOD="${ARGUMENT#*=}"
+				export PERSISTENT_METHOD
+				;;
+
+			persistent-path=*)
+				PERSISTENT_PATH="${ARGUMENT#persistent-path=}"
+				export PERSISTENT_PATH
+				;;
+			persistent-read-only)
+				PERSISTENT_READONLY="Yes"
+				export PERSISTENT_READONLY
+				;;
+
+			persistent-storage=*)
+				PERSISTENT_STORAGE="${ARGUMENT#persistent-storage=}"
+				export PERSISTENT_STORAGE
+				;;
+
+			persistent-subtext=*)
+				root_overlay_label="${root_overlay_label}-${ARGUMENT#persistent-subtext=}"
+				old_root_overlay_label="${old_root_overlay_label}-${ARGUMENT#persistent-subtext=}"
+				old_home_overlay_label="${old_home_overlay_label}-${ARGUMENT#persistent-subtext=}"
+				custom_overlay_label="${custom_overlay_label}-${ARGUMENT#persistent-subtext=}"
+				root_snapshot_label="${root_snapshot_label}-${ARGUMENT#persistent-subtext=}"
+				old_root_snapshot_label="${root_snapshot_label}-${ARGUMENT#persistent-subtext=}"
+				home_snapshot_label="${home_snapshot_label}-${ARGUMENT#persistent-subtext=}"
+				;;
+
+			nopersistent)
+				NOPERSISTENT="Yes"
+				export NOPERSISTENT
+				;;
+
+			noprompt)
+				NOPROMPT="Yes"
+				export NOPROMPT
+				;;
+
+			noprompt=*)
+				NOPROMPT="${ARGUMENT#noprompt=}"
+				export NOPROMPT
+				;;
+
+			quickusbmodules)
+				QUICKUSBMODULES="Yes"
+				export QUICKUSBMODULES
+				;;
+
+			preseed/file=*|file=*)
+				LOCATIONS="${ARGUMENT#*=} ${LOCATIONS}"
+				export LOCATIONS
+				;;
+
+			nopreseed)
+				NOPRESEED="Yes"
+				export NOPRESEED
+				;;
+
+			*/*=*)
+				question="${ARGUMENT%%=*}"
+				value="${ARGUMENT#*=}"
+				PRESEEDS="${PRESEEDS}\"${question}=${value}\" "
+				export PRESEEDS
+				;;
+
+			showmounts)
+				SHOWMOUNTS="Yes"
+				export SHOWMOUNTS
+				;;
+
+			silent)
+				SILENT="Yes"
+				export SILENT
+				;;
+
+			todisk=*)
+				TODISK="${ARGUMENT#todisk=}"
+				export TODISK
+				;;
+
+			toram)
+				TORAM="Yes"
+				export TORAM
+				;;
+
+			toram=*)
+				TORAM="Yes"
+				MODULETORAM="${ARGUMENT#toram=}"
+				export TORAM MODULETORAM
+				;;
+
+			exposedroot)
+				EXPOSED_ROOT="Yes"
+				export EXPOSED_ROOT
+				;;
+
+			plainroot)
+				PLAIN_ROOT="Yes"
+				export PLAIN_ROOT
+				;;
+
+			skipunion)
+				SKIP_UNION_MOUNTS="Yes"
+				export SKIP_UNION_MOUNTS
+				;;
+
+			root=*)
+				ROOT="${ARGUMENT#root=}"
+				export ROOT
+				;;
+
+			union=*)
+				UNIONTYPE="${ARGUMENT#union=}"
+				export UNIONTYPE
+				;;
+		esac
+	done
+
+	# sort of compatibility with netboot.h from linux docs
+	if [ -z "${NETBOOT}" ]
+	then
+		if [ "${ROOT}" = "/dev/nfs" ]
+		then
+			NETBOOT="nfs"
+			export NETBOOT
+		elif [ "${ROOT}" = "/dev/cifs" ]
+		then
+			NETBOOT="cifs"
+			export NETBOOT
+		fi
+	fi
+
+	if [ -z "${MODULE}" ]
+	then
+		MODULE="filesystem"
+		export MODULE
+	fi
+
+	if [ -z "${UNIONTYPE}" ]
+	then
+		UNIONTYPE="aufs"
+		export UNIONTYPE
+	fi
+
+	if [ -z "${PERSISTENT_ENCRYPTION}" ]
+	then
+		PERSISTENT_ENCRYPTION="none"
+		export PERSISTENT_ENCRYPTION
+	elif echo ${PERSISTENT_ENCRYPTION} | grep -qe "\<luks\>"
+	then
+		if ! modprobe dm-crypt
+		then
+			log_warning_msg "Unable to load module dm-crypt"
+			PERSISTENT_ENCRYPTION=$(echo ${PERSISTENT_ENCRYPTION} | sed -e 's/\<luks,\|,\?luks$//g')
+			export PERSISTENT_ENCRYPTION
+		fi
+
+		if [ ! -x /lib/cryptsetup/askpass ] || [ ! -x /sbin/cryptsetup ]
+		then
+			log_warning_msg "cryptsetup in unavailable"
+			PERSISTENT_ENCRYPTION=$(echo ${PERSISTENT_ENCRYPTION} | sed -e 's/\<luks,\|,\?luks$//g')
+			export PERSISTENT_ENCRYPTION
+		fi
+	fi
+
+	if [ -z "${PERSISTENT_METHOD}" ]
+	then
+		PERSISTENT_METHOD="snapshot,overlay"
+		export PERSISTENT_METHOD
+	fi
+
+	if [ -z "${PERSISTENT_STORAGE}" ]
+	then
+		PERSISTENT_STORAGE="filesystem,file"
+		export PERSISTENT_STORAGE
+	fi
+}
+
 sys2dev ()
 {
 	sysdev=${1#/sys}
@@ -114,12 +514,38 @@ get_fstype ()
 where_is_mounted ()
 {
 	device=${1}
+	# return first found
+	grep -m1 "^${device} " /proc/mounts | cut -f2 -d ' '
+}
 
-	if grep -q "^${device} " /proc/mounts
-	then
-		# return the first found
-		grep -m1 "^${device} " /proc/mounts | cut -f2 -d ' '
-	fi
+trim_path () {
+    # remove all unnecessary /:s in the path, including last one (except
+    # if path is just "/")
+    echo ${1} | sed 's|//\+|/|g' | sed 's|^\(.*[^/]\)/$|\1|'
+}
+
+what_is_mounted_on ()
+{
+	local dir="$(trim_path ${1})"
+	grep -m1 "^[^ ]\+ ${dir} " /proc/mounts | cut -d' ' -f1
+}
+
+chown_ref ()
+{
+	local reference="${1}"
+	shift
+	local targets=${@}
+	local owner=$(stat -c %u:%g "${reference}")
+	chown -h ${owner} ${targets}
+}
+
+chmod_ref ()
+{
+	local reference="${1}"
+	shift
+	local targets=${@}
+	local rights=$(stat -c %a "${reference}")
+	chmod ${rights} ${targets}
 }
 
 lastline ()
@@ -311,6 +737,68 @@ try_mount ()
 	fi
 }
 
+mount_persistent_media ()
+{
+	local device=${1}
+	local backing=""
+
+	# We can't mount into ${rootmnt}/live before ${rootmnt} has been
+	# mounted since that would cover our mountpoint.
+	if [ -n "${rootmnt}" ] && [ -z "$(what_is_mounted_on ${rootmnt})" ]
+	then
+		backing="/$(basename ${device})-backing"
+	else
+		backing="${rootmnt}/live/persistent/$(basename ${device})"
+	fi
+
+	mkdir -p "${backing}"
+	local old_backing="$(where_is_mounted ${device})"
+	if [ -z "${old_backing}" ]
+	then
+		local fstype="$(get_fstype ${device})"
+		local mount_opts="rw,noatime"
+		if [ -n "${PERSISTENT_READONLY}" ]
+		then
+			mount_opts="ro,noatime"
+		fi
+		if mount -t "${fstype}" -o "${mount_opts}" "${device}" "${backing}" >/dev/null
+		then
+			echo ${backing}
+			return 0
+		else
+			log_warning_msg "Failed to mount persistent media ${device}"
+			return 1
+		fi
+	elif [ "${backing}" != "${old_backing}" ]
+	then
+		if mount --move ${old_backing} ${backing} >/dev/null
+		then
+			echo ${backing}
+			return 0
+		else
+			log_warning_msg "Failed to move persistent media ${device}"
+			return 1
+		fi
+	fi
+	return 0
+}
+
+close_persistent_media () {
+	local device=${1}
+	local backing="$(where_is_mounted ${device})"
+
+	if [ -d "${backing}" ]
+	then
+		umount "${backing}" >/dev/null 2>&1
+		rmdir "${backing}" >/dev/null 2>&1
+	fi
+
+	if is_active_luks_mapping ${device}
+	then
+		/sbin/cryptsetup luksClose ${device}
+	fi
+}
+
 open_luks_device ()
 {
 	dev="${1}"
@@ -321,6 +809,21 @@ open_luks_device ()
 		opts="${opts} --readonly"
 	fi
 
+	if /sbin/cryptsetup status "${name}" >/dev/null 2>&1
+	then
+		re="^[[:space:]]*device:[[:space:]]*\([^[:space:]]*\)$"
+		opened_dev=$(cryptsetup status ${name} 2>/dev/null | grep "${re}" | sed "s|${re}|\1|")
+		if [ "${opened_dev}" = "${dev}" ]
+		then
+			luks_device="/dev/mapper/${name}"
+			echo ${luks_device}
+			return 0
+		else
+			log_warning_msg "Cannot open luks device ${dev} since ${opened_dev} already is opened with its name"
+			return 1
+		fi
+	fi
+
 	load_keymap
 
 	while true
@@ -346,6 +849,104 @@ open_luks_device ()
 	done
 }
 
+get_gpt_name ()
+{
+    local dev="${1}"
+    /sbin/blkid -s PART_ENTRY_NAME -p -o value ${dev} 2>/dev/null
+}
+
+is_gpt_device ()
+{
+    local dev="${1}"
+    [ "$(/sbin/blkid -s PART_ENTRY_SCHEME -p -o value ${dev} 2>/dev/null)" = "gpt" ]
+}
+
+probe_for_gpt_name ()
+{
+	local overlays="${1}"
+	local snapshots="${2}"
+	local dev="${3}"
+
+	local gpt_dev="${dev}"
+	if is_active_luks_mapping ${dev}
+	then
+		# if $dev is an opened luks device, we need to check
+		# GPT stuff on the backing device
+		gpt_dev=$(get_luks_backing_device "${dev}")
+	fi
+
+	if ! is_gpt_device ${gpt_dev}
+	then
+		return
+	fi
+
+	local gpt_name=$(get_gpt_name ${gpt_dev})
+	for label in ${overlays} ${snapshots}
+	do
+		if [ "${gpt_name}" = "${label}" ]
+		then
+			echo "${label}=${dev}"
+		fi
+	done
+}
+
+probe_for_fs_label ()
+{
+	local overlays="${1}"
+	local snapshots="${2}"
+	local dev="${3}"
+
+	for label in ${overlays} ${snapshots}
+	do
+		if [ "$(/sbin/blkid -s LABEL -o value $dev 2>/dev/null)" = "${label}" ]
+		then
+			echo "${label}=${dev}"
+		fi
+	done
+}
+
+probe_for_file_name ()
+{
+	local overlays="${1}"
+	local snapshots="${2}"
+	local dev="${3}"
+
+	local ret=""
+	local backing="$(mount_persistent_media ${dev})"
+	if [ -z "${backing}" ]
+	then
+	    return
+	fi
+
+	for label in ${overlays}
+	do
+		path=${backing}/${PERSISTENT_PATH}${label}
+		if [ -f "${path}" ]
+		then
+			local loopdev=$(setup_loop "${path}" "loop" "/sys/block/loop*")
+			ret="${ret} ${label}=${loopdev}"
+		fi
+	done
+	for label in ${snapshots}
+	do
+		for ext in squashfs cpio.gz ext2 ext3 ext4 jffs2
+		do
+			path="${PERSISTENT_PATH}${label}.${ext}"
+			if [ -f "${backing}/${path}" ]
+			then
+				ret="${ret} ${label}=${dev}:${backing}:${path}"
+			fi
+		done
+	done
+
+	if [ -n "${ret}" ]
+	then
+		echo ${ret}
+	else
+		umount ${backing} > /dev/null 2>&1 || true
+	fi
+}
+
 find_persistent_media ()
 {
 	# Scans devices for overlays and snapshots, and returns a whitespace
@@ -369,18 +970,22 @@ find_persistent_media ()
 	# ${white_list_devices} is non-empty, only devices in it will be
 	# scanned.
 
-	overlays="${1}"
-	snapshots="${2}"
-	black_listed_devices="${3}"
-	white_listed_devices="${4}"
+	local overlays="${1}"
+	local snapshots="${2}"
+	local white_listed_devices="${3}"
+	local ret=""
 
-	for dev in $(storage_devices "${black_listed_devices}" "${white_listed_devices}")
+	for dev in $(storage_devices "" "${white_listed_devices}")
 	do
-		luks_device=""
+		local result=""
 
-		# Checking for a luks device
+		local luks_device=""
+		# Check if it's a luks device; we'll have to open the device
+		# in order to probe any filesystem it contains, like we do
+		# below. activate_custom_mounts() also depends on that any luks
+		# device already has been opened.
 		if echo ${PERSISTENT_ENCRYPTION} | grep -qe "\<luks\>" && \
-		   /sbin/cryptsetup isLuks ${dev}
+		   is_luks_partition ${dev}
 		then
 			if luks_device=$(open_luks_device "${dev}")
 			then
@@ -395,65 +1000,47 @@ find_persistent_media ()
 			continue
 		fi
 
+		# Probe for matching GPT partition names or filesystem labels
 		if echo ${PERSISTENT_STORAGE} | grep -qe "\<filesystem\>"
 		then
-			for label in ${overlays} ${snapshots}
-			do
-				if [ "$(/sbin/blkid -s LABEL -o value $dev 2>/dev/null)" = "${label}" ]
-				then
-					overlays=$(echo ${overlays} | sed -e "s|\<${label}\>||")
-					snapshots=$(echo ${snapshots} | sed -e "s|\<${label}\>||")
-					echo "${label}=${dev}"
-					# skip to the next device
-					continue 2
-				fi
-			done
+			result=$(probe_for_gpt_name "${overlays}" "${snapshots}" ${dev})
+			if [ -n "${result}" ]
+			then
+				ret="${ret} ${result}"
+				continue
+			fi
+
+			result=$(probe_for_fs_label "${overlays}" "${snapshots}" ${dev})
+			if [ -n "${result}" ]
+			then
+				ret="${ret} ${result}"
+				continue
+			fi
 		fi
 
+		# Probe for files with matching name on mounted partition
 		if echo ${PERSISTENT_STORAGE} | grep -qe "\<file\>"
 		then
-			devfstype="$(get_fstype ${dev})"
-			overlay_on_dev=""
-			snapshot_on_dev=""
-			backing="/$(basename ${dev})-backing"
-			mkdir -p "${backing}"
-			if is_supported_fs ${devfstype} && try_mount "${dev}" "${backing}" "rw" "${devfstype}"
-			then
-				for label in ${overlays}
-				do
-					path=${backing}/${PERSISTENT_PATH}${label}
-					if [ -f "${path}" ]
-					then
-						overlays=$(echo ${overlays} | sed -e "s|\<${label}\>||")
-						overlay_on_dev="yes"
-						echo "${label}=$(setup_loop "${path}" "loop" "/sys/block/loop*")"
-					fi
-				done
-
-				for label in ${snapshots}
-				do
-					for ext in squashfs cpio.gz ext2 ext3 ext4 jffs2
-					do
-						path="${PERSISTENT_PATH}${label}.${ext}"
-						if [ -f "${backing}/${path}" ]
-						then
-							snapshots=$(echo ${snapshots} | sed -e "s|\<${label}\>||")
-							snapshot_on_dev="yes"
-							echo "${label}=${dev}:${backing}:${path}"
-						fi
-					done
-				done
-			fi
-			if [ -z "${overlay_on_dev}" ]
+			result=$(probe_for_file_name "${overlays}" "${snapshots}" ${dev})
+			if [ -n "${result}" ]
 			then
-				umount ${backing} > /dev/null 2>&1 || true
-				if [ -z "${snapshot_on_dev}" ] && [ -n "${luks_device}" ] && /sbin/cryptsetup status "${luks_device}" 1> /dev/null
-				then
-					/sbin/cryptsetup luksClose "${luks_device}"
-				fi
+				ret="${ret} ${result}"
+				continue
 			fi
 		fi
+
+		# Close luks device if it isn't used
+		if [ -z "${result}" ] && [ -n "${luks_device}" ] && \
+		   is_active_luks_mapping "${luks_device}"
+		then
+			/sbin/cryptsetup luksClose "${luks_device}"
+		fi
 	done
+
+	if [ -n "${ret}" ]
+	then
+		echo ${ret}
+	fi
 }
 
 get_mac ()
@@ -474,17 +1061,22 @@ get_mac ()
 	echo ${mac}
 }
 
-is_luks()
+is_luks_partition ()
 {
-    devname="${1}"
-    if [ -x /sbin/cryptsetup ]
-    then
-	/sbin/cryptsetup isLuks "${devname}" 2>/dev/null || ret=${?}
-	return ${ret}
-    else
-	return 1
-    fi
+	device="${1}"
+	/sbin/cryptsetup isLuks "${device}" 1>/dev/null 2>&1
+}
+
+is_active_luks_mapping ()
+{
+	device="${1}"
+	/sbin/cryptsetup status "${device}" 1>/dev/null 2>&1
+}
 
+get_luks_backing_device () {
+	device=${1}
+	cryptsetup status ${device} 2> /dev/null | \
+		awk '{if ($1 == "device:") print $2}'
 }
 
 removable_dev ()
@@ -556,3 +1148,434 @@ non_removable_dev ()
 
 	echo "${ret}"
 }
+
+link_files ()
+{
+	# create source's directory structure in dest, and recursively
+	# create symlinks in dest to to all files in source. if mask
+	# is non-empty, remove mask from all source paths when
+	# creating links (will be necessary if we change root, which
+	# live-boot normally does (into $rootmnt)).
+
+	# remove multiple /:s and ensure ending on /
+	local src_dir="$(trim_path ${1})/"
+	local dest_dir="$(trim_path ${2})/"
+	local src_mask="${3}"
+
+	# This check can only trigger on the inital, non-recursive call since
+	# we create the destination before recursive calls
+	if [ ! -d "${dest_dir}" ]
+	then
+		log_warning_msg "Must link_files into a directory"
+		return
+	fi
+
+	find "${src_dir}" -mindepth 1 -maxdepth 1 | while read src; do
+		local dest="${dest_dir}$(basename "${src}")"
+		if [ -d "${src}" ]
+		then
+			if [ -z "$(ls -A "${src}")" ]
+			then
+				continue
+			fi
+			if [ ! -d "${dest}" ]
+			then
+				mkdir -p "${dest}"
+				chown_ref "${src}" "${dest}"
+				chmod_ref "${src}" "${dest}"
+			fi
+			link_files "${src}" "${dest}" "${src_mask}"
+		else
+			local final_src=${src}
+			if [ -n "${src_mask}" ]
+			then
+				final_src="$(echo ${final_src} | sed "s|^${src_mask}||")"
+			fi
+			rm -rf "${dest}" 2> /dev/null
+			ln -s "${final_src}" "${dest}"
+			chown_ref "${src}" "${dest}"
+		fi
+	done
+}
+
+do_union ()
+{
+	local unionmountpoint="${1}"	# directory where the union is mounted
+	local unionrw="${2}"		# branch where the union changes are stored
+	local unionro1="${3}"		# first underlying read-only branch (optional)
+	local unionro2="${4}"		# second underlying read-only branch (optional)
+
+	if [ "${UNIONTYPE}" = "aufs" ]
+	then
+		rw_opt="rw"
+		ro_opt="rr+wh"
+		noxino_opt="noxino"
+	elif [ "${UNIONTYPE}" = "unionfs-fuse" ]
+	then
+		rw_opt="RW"
+		ro_opt="RO"
+	else
+		rw_opt="rw"
+		ro_opt="ro"
+	fi
+
+	case "${UNIONTYPE}" in
+		unionfs-fuse)
+			unionmountopts="-o cow -o noinitgroups -o default_permissions -o allow_other -o use_ino -o suid"
+			unionmountopts="${unionmountopts} ${unionrw}=${rw_opt}"
+			if [ -n "${unionro1}" ]
+			then
+				unionmountopts="${unionmountopts}:${unionro1}=${ro_opt}"
+			fi
+			if [ -n "${unionro2}" ]
+			then
+				unionmountopts="${unionmountopts}:${unionro2}=${ro_opt}"
+			fi
+			( sysctl -w fs.file-max=391524 ; ulimit -HSn 16384
+			unionfs-fuse ${unionmountopts} "${unionmountpoint}" ) && \
+			( mkdir -p /run/sendsigs.omit.d
+			pidof unionfs-fuse >> /run/sendsigs.omit.d/unionfs-fuse || true )
+			;;
+
+		overlayfs)
+			# XXX: can unionro2 be used? (overlayfs only handles two dirs, but perhaps they can be chained?)
+			# XXX: and can unionro1 be optional? i.e. can overlayfs skip lowerdir?
+			unionmountopts="-o noatime,lowerdir=${unionro1},upperdir=${unionrw}"
+			mount -t ${UNIONTYPE} ${unionmountopts} ${UNIONTYPE} "${unionmountpoint}"
+			;;
+
+		*)
+			unionmountopts="-o noatime,${noxino_opt},dirs=${unionrw}=${rw_opt}"
+			if [ -n "${unionro1}" ]
+			then
+				unionmountopts="${unionmountopts}:${unionro1}=${ro_opt}"
+			fi
+			if [ -n "${unionro2}" ]
+			then
+				unionmountopts="${unionmountopts}:${unionro2}=${ro_opt}"
+			fi
+			mount -t ${UNIONTYPE} ${unionmountopts} ${UNIONTYPE} "${unionmountpoint}"
+			;;
+	esac
+}
+
+get_custom_mounts ()
+{
+	# Side-effect: leaves $devices with live.persist mounted in ${rootmnt}/live/persistent
+	# Side-effect: prints info to file $custom_mounts
+
+	local custom_mounts=${1}
+	shift
+	local devices=${@}
+
+	local bindings="/tmp/bindings.list"
+	local links="/tmp/links.list"
+	rm -rf ${bindings} ${links} 2> /dev/null
+
+	for device in ${devices}
+	do
+		if [ ! -b "${device}" ]
+		then
+			continue
+		fi
+
+		local device_name="$(basename ${device})"
+		local backing=$(mount_persistent_media ${device})
+		if [ -z "${backing}" ]
+		then
+			continue
+		fi
+
+		local include_list="${backing}/${persistence_list}"
+		if [ ! -r "${include_list}" ]
+		then
+			continue
+		fi
+
+		if [ -n "${DEBUG}" ] && [ -e "${include_list}" ]
+		then
+			cp ${include_list} ${rootmnt}/live/persistent/${persistence_list}.${device_name}
+		fi
+
+		while read dir options # < ${include_list}
+		do
+			if echo ${dir} | grep -qe "^[[:space:]]*\(#.*\)\?$"
+			then
+				# skipping empty or commented lines
+				continue
+			fi
+
+			if trim_path ${dir} | grep -q -e "^[^/]" -e "^/$" -e "^/live\(/.*\)\?$" -e "^/\(.*/\)\?\.\.\?\(/.*\)\?$"
+			then
+				log_warning_msg "Skipping unsafe custom mount ${dir}: must be an absolute path containing neither the \".\" nor \"..\" special dirs, and cannot be \"/live\" (or any sub-directory therein) or \"/\" (for the latter, use ${root_overlay_label}-type persistence)"
+				continue
+			fi
+
+			local opt_source=""
+			local opt_linkfiles=""
+			for opt in $(echo ${options} | tr ',' ' ');
+			do
+				case "${opt}" in
+					source=*)
+						opt_source=${opt#source=}
+						;;
+					linkfiles)
+						opt_linkfiles="yes"
+						;;
+					union|bind)
+						;;
+					*)
+						log_warning_msg "Skipping custom mount with unkown option: ${opt}"
+						continue 2
+						;;
+				esac
+			done
+
+			local source="${dir}"
+			if [ -n "${opt_source}" ]
+			then
+				if echo ${opt_source} | grep -q -e "^/" -e "^\(.*/\)\?\.\.\?\(/.*\)\?$" && [ "${source}" != "." ]
+				then
+					log_warning_msg "Skipping unsafe custom mount with option source=${opt_source}: must be either \".\" (the media root) or a relative path w.r.t. the media root that contains neither comas, nor the special \".\" and \"..\" path components"
+					continue
+				else
+					source="${opt_source}"
+				fi
+			fi
+
+			local full_source="$(trim_path ${backing}/${source})"
+			local full_dest="$(trim_path ${rootmnt}/${dir})"
+			if [ -n "${opt_linkfiles}" ]
+			then
+				echo "${device} ${full_source} ${full_dest} ${options}" >> ${links}
+			else
+				echo "${device} ${full_source} ${full_dest} ${options}" >> ${bindings}
+			fi
+		done < ${include_list}
+	done
+
+	# We sort the list according to destination so we're sure that
+	# we won't hide a previous mount. We also ignore duplicate
+	# destinations in a more or less arbitrary way.
+	[ -e "${bindings}" ] && sort -k3 -sbu ${bindings} >> ${custom_mounts} && rm ${bindings}
+
+	# After all mounts are considered we add symlinks so they
+	# won't be hidden by some mount.
+	[ -e "${links}" ] && cat ${links} >> ${custom_mounts} && rm ${links}
+
+	# We need to make sure that no two custom mounts have the same sources
+	# or are nested; if that is the case, too much weird stuff can happen.
+	local prev_source="impossible source" # first iteration must not match
+	local prev_dest=""
+	# This sort will ensure that a source /a comes right before a source
+	# /a/b so we only need to look at the previous source
+	sort -k2 -b ${custom_mounts} |
+	while read device source dest options
+	do
+		if echo ${source} | grep -qe "^${prev_source}\(/.*\)\?$"
+		then
+			panic "Two persistent mounts have the same or nested sources: ${source} on ${dest}, and ${prev_source} on ${prev_dest}"
+		fi
+		prev_source=${source}
+		prev_dest=${dest}
+	done
+}
+
+activate_custom_mounts ()
+{
+	local custom_mounts="${1}" # the ouput from get_custom_mounts()
+	local used_devices=""
+
+	while read device source dest options # < ${custom_mounts}
+	do
+		local opt_bind="yes"
+		local opt_linkfiles=""
+		local opt_union=""
+		for opt in $(echo ${options} | tr ',' ' ');
+		do
+			case "${opt}" in
+				bind)
+					opt_bind="yes"
+					unset opt_linkfiles opt_union
+					;;
+				linkfiles)
+					opt_linkfiles="yes"
+					unset opt_bind opt_union
+					;;
+				union)
+					opt_union="yes"
+					unset opt_bind opt_linkfiles
+					;;
+			esac
+		done
+
+		if [ -n "$(what_is_mounted_on "${dest}")" ]
+		then
+			log_warning_msg "Skipping custom mount ${dest}: $(what_is_mounted_on "${dest}") is already mounted there"
+			continue
+		fi
+
+		if [ ! -d "${dest}" ]
+		then
+			# create the destination and delete existing files in
+			# its path that are in the way
+			path="/"
+			for dir in $(echo ${dest} | sed -e 's|/\+| |g')
+			do
+				path=$(trim_path ${path}/${dir})
+				if [ -f ${path} ]
+				then
+					rm -f ${path}
+				fi
+				if [ ! -e ${path} ]
+				then
+					mkdir -p ${path}
+					if echo ${path} | grep -qe "^${rootmnt}/*home/[^/]\+"
+					then
+						# if ${dest} is in /home try fixing proper ownership by assuming that the intended user is the first, which is usually the case
+						# FIXME: this should really be handled by live-config since we don't know for sure which uid a certain user has until then
+						chown 1000:1000 ${path}
+					fi
+				fi
+			done
+		fi
+
+		# if ${source} doesn't exist on our persistent media
+		# we bootstrap it with $dest from the live filesystem.
+		# this both makes sense and is critical if we're
+		# dealing with /etc or other system dir.
+		if [ ! -d "${source}" ]
+		then
+			if [ -n "${PERSISTENT_READONLY}" ]
+			then
+				continue
+			elif [ -n "${opt_union}" ] || [ -n "${opt_linkfiles}" ]
+			then
+				# unions and don't need to be bootstrapped
+				# linkfiles dirs can't be bootstrapped in a sensible way
+				mkdir -p "${source}"
+				chown_ref "${dest}" "${source}"
+				chmod_ref "${dest}" "${source}"
+			elif [ -n "${opt_bind}" ]
+			then
+				# ensure that $dest is not copied *into* $source
+				mkdir -p "$(dirname ${source})"
+				cp -a "${dest}" "${source}"
+			fi
+		fi
+
+		# XXX: If CONFIG_AUFS_ROBR is added to the Debian kernel we can
+		# ignore the loop below and set rofs_dest_backing=$dest
+		local rofs_dest_backing=""
+		if [ -n "${opt_linkfiles}"]
+		then
+			for d in ${rootmnt}/live/rofs/*
+			do
+				if [ -n "${rootmnt}" ]
+				then
+					rofs_dest_backing="${d}/$(echo ${dest} | sed -e "s|${rootmnt}||")"
+				else
+					rofs_dest_backing="${d}/${dest}"
+				fi
+				if [ -d "${rofs_dest_backing}" ]
+				then
+					break
+				else
+					rofs_dest_backing=""
+				fi
+			done
+		fi
+
+		if [ -n "${opt_linkfiles}" ] && [ -z "${PERSISTENT_READONLY}" ]
+		then
+			link_files ${source} ${dest} ${rootmnt}
+		elif [ -n "${opt_linkfiles}" ] && [ -n "${PERSISTENT_READONLY}" ]
+		then
+			mkdir -p ${rootmnt}/live/persistent
+			local links_source=$(mktemp -d ${rootmnt}/live/persistent/links-source-XXXXXX)
+			chown_ref ${source} ${links_source}
+			chmod_ref ${source} ${links_source}
+			# We put the cow dir in the below strange place to
+			# make it absolutely certain that the link source
+			# has its own directory and isn't nested with some
+			# other custom mount (if so that mount's files would
+			# be linked, causing breakage.
+			if [ -n "${rootmnt}" ]
+			then
+				local cow_dir="/cow/live/persistent/$(basename ${links_source})"
+			else
+				# This is happens if persistence is activated
+				# post boot
+				local cow_dir="/live/cow/live/persistent/$(basename ${links_source})"
+			fi
+			mkdir -p ${cow_dir}
+			chown_ref "${source}" "${cow_dir}"
+			chmod_ref "${source}" "${cow_dir}"
+			do_union ${links_source} ${cow_dir} ${source} ${rofs_dest_backing}
+			link_files ${links_source} ${dest} ${rootmnt}
+		elif [ -n "${opt_union}" ] && [ -z "${PERSISTENT_READONLY}" ]
+		then
+			do_union ${dest} ${source} ${rofs_dest_backing}
+		elif [ -n "${opt_bind}" ] && [ -z "${PERSISTENT_READONLY}" ]
+		then
+			mount --bind "${source}" "${dest}"
+		elif [ -n "${opt_bind}" -o -n "${opt_union}" ] && [ -n "${PERSISTENT_READONLY}" ]
+		then
+			# bind-mount and union mount are handled the same
+			# in read-only mode, but note that rofs_dest_backing
+			# is non-empty (and necessary) only for unions
+			if [ -n "${rootmnt}" ]
+			then
+				local cow_dir="$(echo ${dest} | sed -e "s|^${rootmnt}|/cow/|")"
+			else
+				# This is happens if persistence is activated
+				# post boot
+				local cow_dir="/live/cow/${dest}"
+			fi
+			if [ -e "${cow_dir}" ] && [ -z "${opt_linkfiles}" ]
+			then
+				# If an earlier custom mount has files here
+				# it will "block" the current mount's files
+				# which is undesirable
+				rm -rf "${cow_dir}"
+			fi
+			mkdir -p ${cow_dir}
+			chown_ref "${source}" "${cow_dir}"
+			chmod_ref "${source}" "${cow_dir}"
+			do_union ${dest} ${cow_dir} ${source} ${rofs_dest_backing}
+		fi
+
+		PERSISTENCE_IS_ON="1"
+		export PERSISTENCE_IS_ON
+
+		if echo ${used_devices} | grep -qve "^\(.* \)\?${device}\( .*\)\?$"
+		then
+			used_devices="${used_devices} ${device}"
+		fi
+	done < ${custom_mounts}
+
+	echo ${used_devices}
+}
+
+fix_home_rw_compatibility ()
+{
+	local device=${1}
+
+	if [ -n "${PERSISTENT_READONLY}" ]
+	then
+		return
+	fi
+
+	local backing="$(mount_persistent_media ${device})"
+	if [ -z "${backing}" ]
+	then
+		return
+	fi
+
+	local include_list="${backing}/${persistence_list}"
+	if [ ! -r "${include_list}" ]
+	then
+		echo "# home-rw backwards compatibility:
+/home source=." > "${include_list}"
+	fi
+}

-- 
live-boot



More information about the debian-live-changes mailing list