diff --git a/xCAT-server/share/xcat/netboot/sles/genimage b/xCAT-server/share/xcat/netboot/sles/genimage index 4e71b92cc..18f75e047 100755 --- a/xCAT-server/share/xcat/netboot/sles/genimage +++ b/xCAT-server/share/xcat/netboot/sles/genimage @@ -906,11 +906,6 @@ then fi EOMS - # udevd needed by s390x for networking -# if ($arch ne "s390x") { -# print $inifile "killall -9 udevd\n"; -# } - if($mode eq "statelite") { print $inifile "echo debug: before netstart\n"; print $inifile "# check and see if debug is specified on command line\n"; @@ -968,7 +963,16 @@ done ip addr add dev lo 127.0.0.1/8 ip link set lo up cd / +EOMS +# udevd needed by s390x for networking +# but for other type of machine, udevd will affect the start of devices which detected +# after the chroot, so kill it after the working of network device +if ($arch ne "s390x") { + print $inifile "killall -9 udevd\n"; +} + +print $inifile <