summaryrefslogtreecommitdiffstats
path: root/initramfs/stage3-stuff/etc/functions
diff options
context:
space:
mode:
authorDirk von Suchodoletz2009-03-24 17:06:44 +0100
committerDirk von Suchodoletz2009-03-24 17:06:44 +0100
commitdb24c80699cc4fbd8299d26c46457a31b225572c (patch)
tree5747514301f8da7aa2dce935aa114893bacc6fd8 /initramfs/stage3-stuff/etc/functions
parentrearranged: (diff)
downloadcore-db24c80699cc4fbd8299d26c46457a31b225572c.tar.gz
core-db24c80699cc4fbd8299d26c46457a31b225572c.tar.xz
core-db24c80699cc4fbd8299d26c46457a31b225572c.zip
Fixing issue #401 ...
git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2755 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initramfs/stage3-stuff/etc/functions')
-rw-r--r--initramfs/stage3-stuff/etc/functions70
1 files changed, 35 insertions, 35 deletions
diff --git a/initramfs/stage3-stuff/etc/functions b/initramfs/stage3-stuff/etc/functions
index 5307b20f..33ce5760 100644
--- a/initramfs/stage3-stuff/etc/functions
+++ b/initramfs/stage3-stuff/etc/functions
@@ -832,40 +832,40 @@ include_in_fsroot_union () {
union_id=$(($union_id + 1))
srvproto=$(uri_token $ROOTFS prot)
case $srvproto in
- nfs)
- # activate kernel nfs if not present, nfsroot consists now of two
- # different parts
- root_path=$(uri_token $ROOTFS path)
- nfsserver=$(uri_token $ROOTFS server)
- mkdir -p /mnt/tmp/${root_path}_${union_id}
- for proto in tcp udp fail; do
- [ $proto = "fail" ] && { error "$scfg_nfs"; break; }
- mount -n -t nfs -o ro,nolock,$proto $nfsserver:$root_path \
- /mnt/tmp/${root_path}_${union_id} && break
- done
- ;;
- *nbd)
- echo "Not working yet"
- nbdmod=$srvproto
- # get settings for nbd-client, filesystem equals to path in URI
- # notation
- nbdhost=$(uri_token $ROOTFS server)
- nbdport=$(uri_token $ROOTFS port)
- nbdrfst=$(uri_token $ROOTFS path)
- echo -e "(D)NBD $ROOTFS parsed to $srvproto - $nbdhost - \
- $nbdport - $nbdrfst" >> /tmp/felixtestlog
- #FIXME: mount durchführen
- ;;
- aoe)
- echo "Not implemented yet"
- ;;
- iscsi)
- echo "Not implemented yet"
- #iscsiserver=$(uri_token $ROOTFS server)
- #iscsiport=$(uri_token $ROOTFS port)
- #iscsitarget=$(uri_token $ROOTFS path)
- ;;
- esac
+ nfs)
+ # activate kernel nfs if not present, nfsroot consists now of two
+ # different parts
+ root_path=$(uri_token $ROOTFS path)
+ nfsserver=$(uri_token $ROOTFS server)
+ mkdir -p /mnt/tmp/${root_path}_${union_id}
+ for proto in tcp udp fail; do
+ [ $proto = "fail" ] && { error "$scfg_nfs"; break; }
+ mount -n -t nfs -o ro,nolock,$proto $nfsserver:$root_path \
+ /mnt/tmp/${root_path}_${union_id} && break
+ done
+ ;;
+ *nbd)
+ echo "Not working yet"
+ nbdmod=$srvproto
+ # get settings for nbd-client, filesystem equals to path in URI
+ # notation
+ nbdhost=$(uri_token $ROOTFS server)
+ nbdport=$(uri_token $ROOTFS port)
+ nbdrfst=$(uri_token $ROOTFS path)
+ echo -e "(D)NBD $ROOTFS parsed to $srvproto - $nbdhost - \
+ $nbdport - $nbdrfst" >> /tmp/felixtestlog
+ #FIXME: do mount
+ ;;
+ aoe)
+ echo "Not implemented yet"
+ ;;
+ iscsi)
+ echo "Not implemented yet"
+ #iscsiserver=$(uri_token $ROOTFS server)
+ #iscsiport=$(uri_token $ROOTFS port)
+ #iscsitarget=$(uri_token $ROOTFS path)
+ ;;
+ esac
if [ "X$union_type" == "XUnionFS" ]; then
[ "$DEBUGLEVEL" -gt 2 -a "$DEBUGLEVEL" != 8 ] && \
echo "Using unionctl to mount ${root_path}_${union_id} (type: \
@@ -880,7 +880,7 @@ include_in_fsroot_union () {
else
error ${init_loadunions} nonfatal
fi
- done
+ done
}
#############################################################################