[Fai-commit] r6341 - trunk/lib

Michael Goetze mgoetze-guest at alioth.debian.org
Thu Apr 14 15:34:50 UTC 2011


Author: mgoetze-guest
Date: 2011-04-14 15:34:49 +0000 (Thu, 14 Apr 2011)
New Revision: 6341

Modified:
   trunk/lib/get-boot-info
Log:
get-boot-info: Assume localdomain if no domain name received by DHCP

Modified: trunk/lib/get-boot-info
===================================================================
--- trunk/lib/get-boot-info	2011-04-14 14:05:05 UTC (rev 6340)
+++ trunk/lib/get-boot-info	2011-04-14 15:34:49 UTC (rev 6341)
@@ -134,3 +134,8 @@
 if [ $boot -eq 0 ]; then
     get_fixed_info
 fi
+
+if ! grep -q DOMAIN= $bootlog; then
+    echo 'Warning: no domain name configured, using "localdomain"' >&2
+    echo "DOMAIN=localdomain" >> $bootlog
+fi




More information about the Fai-commit mailing list