SHA256
1
0
forked from pool/nfs-utils

Accepting request 35840 from home:michal-m:branches:Base:System

Copy from home:michal-m:branches:Base:System/nfs-utils via accept of submit request 35840 revision 2.
Request was accepted with message:
receive and volley

OBS-URL: https://build.opensuse.org/request/show/35840
OBS-URL: https://build.opensuse.org/package/show/Base:System/nfs-utils?expand=0&rev=13
This commit is contained in:
Ruediger Oertel
2010-03-29 11:54:09 +00:00
committed by Git OBS Bridge
parent 1d341f608b
commit 682a39e30d
5 changed files with 44 additions and 12 deletions

View File

@@ -2,7 +2,7 @@
#%stage: block
#%modules: nfs
#%programs: /sbin/mount.nfs
#%if: "$rootfstype" = "nfs" -o "$interface"
#%if: "$rootfstype" = "nfs" -a "$interface"
#
##### Network FileSystem
##
@@ -22,6 +22,8 @@
if [ -n "$ROOTPATH" -a -z "$cmd_root" ] ; then
case "$ROOTPATH" in
iscsi:*)
;;
*:*)
rootfstype="nfs"
rootdev="$ROOTPATH" ;;
@@ -40,17 +42,17 @@ if [ -n "$ROOTPATH" -a -z "$cmd_root" ] ; then
fi
fi
if [ -z "$rootdev" ]; then
echo "no local root= kernel option given and no root server set by the dhcp server."
echo "exiting to /bin/sh"
cd /
PATH=$PATH PS1='$ ' /bin/sh -i
fi
if [ "$rootfstype" = "nfs" ]; then
# load the nfs module before using it
load_modules
if [ -z "$rootdev" ]; then
echo "no local root= kernel option given and no root server set by the dhcp server."
echo "exiting to /bin/sh"
cd /
PATH=$PATH PS1='$ ' /bin/sh -i
fi
rootfsmod=
if [ -n "$rootflags" ] ; then
rootflags="${rootflags},nolock"