From b502edec675bf0139071ae2ec3ed8eed2ed6f248 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Fri, 3 May 2013 18:36:36 +0000 Subject: [PATCH] Have detectnic write out to preseed.cfg file, which seems to take better git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@16177 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- .../initoverlay/lib/debian-installer-startup.d/S10detectnic | 1 + .../debian-installer-startup.d/{S90setserver => S10setserver} | 1 + 2 files changed, 2 insertions(+) rename xCAT-server/share/xcat/install/debian/initoverlay/lib/debian-installer-startup.d/{S90setserver => S10setserver} (78%) 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