summaryrefslogtreecommitdiffstats
path: root/initramfs/cdboot/init
diff options
context:
space:
mode:
authorDirk von Suchodoletz2008-03-01 01:24:56 +0100
committerDirk von Suchodoletz2008-03-01 01:24:56 +0100
commitdb19f2ca18514f3dbb1e6e120e32289502b1e098 (patch)
treee00f3cd20167fc2062dd2ac3db5050d0111df4bf /initramfs/cdboot/init
parentadded ubuntu 8.04 (diff)
downloadcore-db19f2ca18514f3dbb1e6e120e32289502b1e098.tar.gz
core-db19f2ca18514f3dbb1e6e120e32289502b1e098.tar.xz
core-db19f2ca18514f3dbb1e6e120e32289502b1e098.zip
Improved version of CD preboot test with RootFS type to choose ...
git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1589 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initramfs/cdboot/init')
-rwxr-xr-xinitramfs/cdboot/init8
1 files changed, 7 insertions, 1 deletions
diff --git a/initramfs/cdboot/init b/initramfs/cdboot/init
index 5562c167..78282b83 100755
--- a/initramfs/cdboot/init
+++ b/initramfs/cdboot/init
@@ -103,6 +103,12 @@ for opts in ${KCMDLINE} ; do
# ... or a specified debug level (will be passed to next stage)
debug=*)
DEBUGLEVEL=${opts#debug=};;
+ nbd)
+ file=irfsnbd;;
+ nfs)
+ file=irfsnfs;;
+ dnbd2)
+ file=irfsd2;;
esac
done
# at this point a timer should be started to ensure an automated reboot
@@ -161,7 +167,7 @@ echo "Fetching selected kernel and initial ramfs from the net ..."
( wget -q -c -O /tmp/kernel \
ftp://openslx:OpenS1X@archive.ruf.uni-freiburg.de/kernel 2>/dev/null && \
wget -q -c -O /tmp/iramfs \
- ftp://openslx:OpenS1X@archive.ruf.uni-freiburg.de/iramfs 2>/dev/null ) || \
+ ftp://openslx:OpenS1X@archive.ruf.uni-freiburg.de/$file 2>/dev/null ) || \
/bin/ash
# start a debug shell if needed, else set quiet kernel parameter