]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
95nfs/nfs-lib.sh: do not bail out at sourcing in nfsroot_from_dhcp()
authorHarald Hoyer <harald@redhat.com>
Wed, 15 Feb 2012 15:39:41 +0000 (16:39 +0100)
committerHarald Hoyer <harald@redhat.com>
Wed, 15 Feb 2012 15:39:41 +0000 (16:39 +0100)
nfsroot_from_dhcp() returned with failure if one of
/tmp/net.$iface.override /tmp/dhclient.$iface.dhcpopts was missing

modules.d/95nfs/nfs-lib.sh

index 4f3d184f72731fadb87c8e99203ddc9a5f4b7755..1ccb416e587c5aa3104ba78f6aa8022fd53e3390 100755 (executable)
@@ -91,7 +91,7 @@ anaconda_nfs_to_var() {
 nfsroot_from_dhcp() {
     local f
     for f in /tmp/net.$1.override /tmp/dhclient.$1.dhcpopts; do
-        [ -f $f ] && . $f || return
+        [ -f $f ] && . $f
     done
     [ -n "$new_root_path" ] && nfsroot_to_var "$nfs:$new_root_path"
     [ -z "$path" ] && [ "$(getarg root=)" == "/dev/nfs" ] && path=/tftpboot/%s