diff options
author | Dirk von Suchodoletz | 2006-10-15 23:41:43 +0200 |
---|---|---|
committer | Dirk von Suchodoletz | 2006-10-15 23:41:43 +0200 |
commit | 107d48c66571dde8d198ebf1319857a4e30e8596 (patch) | |
tree | f841692f5b43de2d87e93ed5ee8706c64f65a3f8 /initramfs/initrd-stuff/init | |
parent | * canonicalization of $LANG is now even more strict in order to be robust (diff) | |
download | core-107d48c66571dde8d198ebf1319857a4e30e8596.tar.gz core-107d48c66571dde8d198ebf1319857a4e30e8596.tar.xz core-107d48c66571dde8d198ebf1319857a4e30e8596.zip |
First steps for rootfs on iscsi/* integration ...
git-svn-id: http://svn.openslx.org/svn/openslx/trunk@465 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initramfs/initrd-stuff/init')
-rwxr-xr-x | initramfs/initrd-stuff/init | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/initramfs/initrd-stuff/init b/initramfs/initrd-stuff/init index 00ab5567..0c08813a 100755 --- a/initramfs/initrd-stuff/init +++ b/initramfs/initrd-stuff/init @@ -2,7 +2,7 @@ # main script for new type of initial ramdisk for OpenSLX linux diskless # clients version 4 # -# Dirk von Suchodoletz <dirk@goe.net>, 07-09-2006 +# Dirk von Suchodoletz <dirk@goe.net>, 15-10-2006 # <mj0@uni-freiburg.de> (xenbr), 27-09-2006 # # (c) 2006 - RZ Universitaet Freiburg @@ -156,6 +156,9 @@ line in $0\nnfsroot=\"${NFSROOT}\"\n" >> /etc/machine-setup ;; iscsi) echo "Not implemented yet" + #iscsiserver=$(uri_token $ROOTFS server) + #iscsiport=$(uri_token $ROOTFS port) + #iscsitarget=$(uri_token $ROOTFS path) ;; esac ;; @@ -339,6 +342,17 @@ if [ -n "${nbdmod}" ] ; then usleep $i mount -n -t $nbdrfst -o $RWRO $RDEV /mnt 2>/dev/null && break done +elif [ -n ${iscsiserver} ] ; then + : + #if [ -n ${iscsitarget} ] ; then + # echo "InitiatorName=${iscsitarget}">/etc/initiatorname.iscsi + #else + # discovery + #fi + #echo -e "node.startup = automatic">/etc/iscsid.conf + #iscsid -c /etc/iscsid.conf + # the cowloop part has to be moved (option for iscsi devices too) + # and should be generalized for nbd, dnbd, iscsi fi # if no type of root filesystem is passed via kernel command line try |