diff --git a/xCAT-server/share/xcat/install/debian/initoverlay/lib/debian-installer-startup.d/S10detectnic b/xCAT-server/share/xcat/install/debian/initoverlay/lib/debian-installer-startup.d/S10detectnic index 3b0c63317..d17504dfc 100644 --- a/xCAT-server/share/xcat/install/debian/initoverlay/lib/debian-installer-startup.d/S10detectnic +++ b/xCAT-server/share/xcat/install/debian/initoverlay/lib/debian-installer-startup.d/S10detectnic @@ -4,6 +4,7 @@ if echo $BOOTMAC|grep BOOTIF= > /dev/null; then for dir in /sys/class/net/*; do if grep -i $BOOTMAC $dir/address > /dev/null; then debconf-set netcfg/choose_interface `basename $dir` + echo "d-i netcfg/choose_interface select `basename $dir`" >> /preseed.cfg fi done fi diff --git a/xCAT-server/share/xcat/install/debian/initoverlay/lib/debian-installer-startup.d/S90setserver b/xCAT-server/share/xcat/install/debian/initoverlay/lib/debian-installer-startup.d/S10setserver similarity index 78% rename from xCAT-server/share/xcat/install/debian/initoverlay/lib/debian-installer-startup.d/S90setserver rename to xCAT-server/share/xcat/install/debian/initoverlay/lib/debian-installer-startup.d/S10setserver index d93410ae7..9d28006c2 100644 --- a/xCAT-server/share/xcat/install/debian/initoverlay/lib/debian-installer-startup.d/S90setserver +++ b/xCAT-server/share/xcat/install/debian/initoverlay/lib/debian-installer-startup.d/S10setserver @@ -3,4 +3,5 @@ if echo $XCATD|grep xcatd= > /dev/null; then XCATD=`echo $XCATD|sed -e s/xcatd=//` echo -n $XCATD > /tmp/xcatserver debconf-set mirror/http/hostname $XCATD + echo "d-i mirror/http/hostname string $XCATD" >> /preseed.cfg fi