diff --git a/etc/rc.d/initdiskless b/etc/rc.d/initdiskless index 47ab3ec5bba6..16ca8cf86b59 100644 --- a/etc/rc.d/initdiskless +++ b/etc/rc.d/initdiskless @@ -202,7 +202,8 @@ fi # Figure out our NFS root path # -set `mount -t nfs` +# The 'x' is there in case the list is empty. +set x `mount -t nfs` while [ $# -ge 1 ] ; do if [ "$2" = "on" -a "$3" = "/" ]; then nfsroot="$1" diff --git a/etc/rc.initdiskless b/etc/rc.initdiskless index 47ab3ec5bba6..16ca8cf86b59 100644 --- a/etc/rc.initdiskless +++ b/etc/rc.initdiskless @@ -202,7 +202,8 @@ fi # Figure out our NFS root path # -set `mount -t nfs` +# The 'x' is there in case the list is empty. +set x `mount -t nfs` while [ $# -ge 1 ] ; do if [ "$2" = "on" -a "$3" = "/" ]; then nfsroot="$1"