Allow for multiple but unique persistent media.
authorRichard Nelson <unixabg@gmail.com>
Wed, 2 Sep 2009 04:28:23 +0000 (06:28 +0200)
committerDaniel Baumann <daniel@debian.org>
Wed, 9 Mar 2011 16:48:05 +0000 (17:48 +0100)
The patch provides a boot parameter to be used in conjunction with
persistent and allow for multiple but unique persistent media such as
live-sn-subText with boot parameter persistent-subtext=subText.

scripts/live

index 2a146d7..db1d355 100755 (executable)
@@ -345,6 +345,13 @@ Arguments ()
                                export PERSISTENT_PATH
                                ;;
 
+                       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