iankelling.org
/
git
/
automated-distro-installer
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
wrt improvements
[automated-distro-installer]
/
fai
/
config
/
files
/
etc
/
rc.local
/
FAISERVER
diff --git
a/fai/config/files/etc/rc.local/FAISERVER
b/fai/config/files/etc/rc.local/FAISERVER
index 8bbfd291f4edcaa084d06b65a72a31a3f2908696..8710678a1991c0e1c8dc575e15754dd6b4307d25 100755
(executable)
--- a/
fai/config/files/etc/rc.local/FAISERVER
+++ b/
fai/config/files/etc/rc.local/FAISERVER
@@
-10,7
+10,7
@@
GREEN='\E[32m'
set -o pipefail
# setup network
set -o pipefail
# setup network
-nic=$(
grep iface /etc/network/interfaces| awk '{print $2}'
|egrep -v ^lo)
+nic=$(
awk '/iface/ {print $2}' /etc/network/interfaces
|egrep -v ^lo)
ifup $nic
# regenerate ssh_host keys
ls /etc/ssh/ssh_host_* > /dev/null
ifup $nic
# regenerate ssh_host keys
ls /etc/ssh/ssh_host_* > /dev/null
@@
-18,7
+18,7
@@
if [ $? -ne 0 ]; then
dpkg-reconfigure -fnoninteractive openssh-server
fi
sleep 8
dpkg-reconfigure -fnoninteractive openssh-server
fi
sleep 8
-[ -x /etc/init.d/nscd ] &&
/etc/init.d/
nscd restart
+[ -x /etc/init.d/nscd ] &&
invoke-rc.d
nscd restart
echo "================================="
echo "Setting up the FAI install server"
echo "================================="
echo "Setting up the FAI install server"
@@
-79,7
+79,7
@@
EOF
fai-chboot -o default
# create a template for booting the installation
fai-chboot -o default
# create a template for booting the installation
-fai-chboot -Iv -f verbose,sshd,createvt,menu -u nfs://faiserver/srv/fai/config
jessie
.tmpl
+fai-chboot -Iv -f verbose,sshd,createvt,menu -u nfs://faiserver/srv/fai/config
stretch
.tmpl
# Since we do not know the MAC address, our DHCP cannot provide the hostname.
# Therefore we do explicitly set the hostname
# Since we do not know the MAC address, our DHCP cannot provide the hostname.
# Therefore we do explicitly set the hostname