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
This commit is contained in:
jbjohnso 2013-05-03 18:36:36 +00:00
parent e39d942d9c
commit b502edec67
2 changed files with 2 additions and 0 deletions

View File

@ -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

View File

@ -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