Commit 44f8c8a5 authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Make sure we write out the data files to /var/emulab/boot even when

no hostname. Useful in the widearea where dynamic DHCP might not provide
a hostname.
parent ea2cca4b
......@@ -41,6 +41,18 @@ if [ x"$new_domain_name_servers" = "x1.1.1.1" ]; then
exit 1
fi
#
# Remember our server IP, real hostname, router IP, etc.
#
echo $new_dhcp_server_identifier > $BOOTDIR/bossip
echo $new_host_name > $BOOTDIR/realname
echo $new_routers > $BOOTDIR/routerip
echo $new_ip_address > $BOOTDIR/myip
echo $new_subnet_mask > $BOOTDIR/mynetmask
if [ -n "$interface" ]; then
echo $interface > $BOOTDIR/controlif
fi
#
# If this is a newnode boot, boss (inner or outer) will have returned with
# no hostname. We don't need to record anything in this case, so skip it.
......@@ -58,18 +70,6 @@ if [ $reason = BOUND -a -z "$curhname" -a -n "$new_host_name" ]; then
hostname $new_host_name
fi
#
# Remember our server IP, real hostname, router IP, etc.
#
echo $new_dhcp_server_identifier > $BOOTDIR/bossip
echo $new_host_name > $BOOTDIR/realname
echo $new_routers > $BOOTDIR/routerip
echo $new_ip_address > $BOOTDIR/myip
echo $new_subnet_mask > $BOOTDIR/mynetmask
if [ -n "$interface" ]; then
echo $interface > $BOOTDIR/controlif
fi
#
# We have observed problems where changing the speed/duplex of a link
# leaves DNS a little wonky. So we whack on it til it responds so that
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment