From 710e7219c2c227b01296f42a716b0608534e9122 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Wed, 27 Sep 2006 01:23:23 +0000 Subject: * rc.sysinit: Also check for localhost.localdomain when resetting the hostname for stateless clients. Remove explicit mount of $STATE_MOUNT/.files. Copy the puppet CA's certificate from the r/o image into $STATE_MOUNT. (#206331, ) --- rc.d/rc.sysinit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rc.d/rc.sysinit') diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit index d257e128..f2b70a40 100755 --- a/rc.d/rc.sysinit +++ b/rc.d/rc.sysinit @@ -559,7 +559,7 @@ if [ "$READONLY" = "yes" ]; then # Use the network address to set the hostname of the client. This # must be done even if we have local storage. ipaddr= - if [ "$HOSTNAME" = "localhost" ]; then + if [ "$HOSTNAME" = "localhost" -o "$HOSTNAME" = "localhost.localdomain" ]; then ipaddr=$(ip addr show to 0/0 scope global | awk '/[[:space:]]inet / { print gensub("/.*","","g",$2) }') if [ -n "$ipaddr" ]; then eval $(ipcalc -h $ipaddr 2>/dev/null) -- cgit v1.2.1