[SCM] debian-live/live-initramfs branch, master, updated. 1.118-1-8-g4d4bf52
Daniel Baumann
daniel at debian.org
Sun Mar 2 11:22:33 UTC 2008
The following commit has been merged in the master branch:
commit 4d4bf5294f0d7982fa1808ae72166becf633b4d4
Author: Daniel Baumann <daniel at debian.org>
Date: Sun Mar 2 12:22:30 2008 +0100
Adding plainroot.
diff --git a/scripts/live b/scripts/live
index ea770f4..0ed7675 100755
--- a/scripts/live
+++ b/scripts/live
@@ -386,6 +386,16 @@ Arguments ()
export EXPOSED_ROOT
;;
+ plainroot)
+ PLAIN_ROOT="Yes"
+ export PLAIN_ROOT
+ ;;
+
+ root=*)
+ ROOT="${ARGUMENT#root=}"
+ export ROOT
+ ;;
+
union=*)
UNIONTYPE="${ARGUMENT#union=}"
export UNIONTYPE
@@ -1254,18 +1264,24 @@ mountroot ()
panic "Unable to find a live file system on the network"
fi
else
- # Scan local devices for the image
- for i in 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
- do
- livefs_root=$(find_livefs ${i})
+ if [ -n "${PLAIN_ROOT}" ] && [ -n "${ROOT}" ]
+ then
+ # Do a local boot from hd
+ livefs_root=${ROOT}
+ else
+ # Scan local devices for the image
+ for i in 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
+ do
+ livefs_root=$(find_livefs ${i})
- if [ -n "${livefs_root}" ]
- then
- break
- fi
+ if [ -n "${livefs_root}" ]
+ then
+ break
+ fi
- sleep 1
- done
+ sleep 1
+ done
+ fi
fi
if [ -z "${livefs_root}" ]
--
debian-live/live-initramfs
More information about the debian-live-changes
mailing list