If no resolv.conf has been made for the new system already and the install
media has one already, copy it in lieu of leaving things blank. This reduces the foot-shooting potential for PXE installs that immediately add packages.
This commit is contained in:
parent
0de8cf6314
commit
4bdf739335
@ -68,6 +68,11 @@ bsdinstall distextract
|
||||
# Finalize install
|
||||
bsdinstall config
|
||||
|
||||
# Make sure networking is functional, if we can arrange that
|
||||
if [ ! -f $BSDINSTALL_CHROOT/etc/resolv.conf -a -f /etc/resolv.conf ]; then
|
||||
cp /etc/resolv.conf $BSDINSTALL_CHROOT/etc/resolv.conf
|
||||
fi
|
||||
|
||||
# Run post-install script
|
||||
if [ -f /tmp/bsdinstall-installscript-ab ]; then
|
||||
cp /tmp/bsdinstall-installscript-ab $BSDINSTALL_CHROOT/tmp/installscript
|
||||
|
Loading…
x
Reference in New Issue
Block a user