Skip to content

Commit

Permalink
also set hostname when calling fai-chboot
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Lange committed Sep 8, 2015
1 parent 0a45d2d commit 1af8017
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions examples/simple/files/etc/rc.local/FAISERVER
Expand Up @@ -39,9 +39,12 @@ fai-chboot -o default
# create a template for booting the installation
fai-chboot -IFv -u nfs://faiserver/srv/fai/config jessie.tmpl

fai-chboot -vc jessie.tmpl xfcehost demohost
# Since we do not know the MAC address, our DHCP cannot provide the hostname.
# Therefore we do explicitly set the hostname
fai-chboot -IFv -u nfs://faiserver/srv/fai/config -k hostname=xfcehost xfcehost
fai-chboot -IFv -u nfs://faiserver/srv/fai/config -k hostname=demohost demohost
for c in {01..10}; do
fai-chboot -vc jessie.tmpl client$c
fai-chboot -IFv -u nfs://faiserver/srv/fai/config -k hostname=client$c client$c
done


Expand Down

0 comments on commit 1af8017

Please sign in to comment.