diff --git a/xCAT-server/share/xcat/netboot/sles/genimage b/xCAT-server/share/xcat/netboot/sles/genimage index 3a11a8d3f..22fcc24d4 100755 --- a/xCAT-server/share/xcat/netboot/sles/genimage +++ b/xCAT-server/share/xcat/netboot/sles/genimage @@ -1374,6 +1374,7 @@ EOMS print $inifile " exit\n"; print $inifile "fi\n"; + print $inifile "\$NEWROOT/etc/init.d/localdisk\n"; # to run the localdisk # 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 before the switching root @@ -1382,7 +1383,6 @@ EOMS } print $inifile "cd /\n"; - print $inifile "\$NEWROOT/etc/init.d/localdisk\n"; # to run the localdisk print $inifile "mkdir \$NEWROOT/var/lib/dhcpcd/\n"; #neccessary for SLES11, not sure for SLES10 print $inifile "cp /var/lib/dhcpcd/* \$NEWROOT/var/lib/dhcpcd/\n"; print $inifile "cp /etc/resolv.conf \$NEWROOT/etc/\n";