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:
parent
e39d942d9c
commit
b502edec67
@ -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
|
||||
|
@ -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
|
Loading…
Reference in New Issue
Block a user