Variable DOMAIN in get-boot-info ignored in case of IP as kernel parameter

Thomas Lange lange at informatik.uni-koeln.de
Tue Mar 24 11:43:16 CET 2015


>>>>> On Mon, 23 Mar 2015 12:22:44 +0100, "steven.wend at t-online.de" <steven.wend at t-online.de> said:

    > And at the end of the script $bootlog is getting checked for "DOMAIN=" which would never be true and causes an localdomain.
    > I'm not sure about this - bug or not? Or is there another reason at all not seen by me?

    > This can be fixed by adding DOMAIN=$DOMAIN to setnet().

Hi Steven,

thanks for the bug report. I've patched it theway you've recommended:


diff --git a/lib/get-boot-info b/lib/get-boot-info
index 01b5da7..e0fbde6 100755
--- a/lib/get-boot-info
+++ b/lib/get-boot-info
@@ -83,6 +83,11 @@ setnet() {
        GATEWAYS=$GATEWAYS
        BROADCAST=$BROADCAST
 EOF
+
+    if [ -n "$DOMAIN" ]; then
+        # DOMAIN was specified on the kernel command line
+        echo "DOMAIN=$DOMAIN" >> $bootlog
+    fi
 }
 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 get_fixed_info() {


-- 
regards Thomas


More information about the linux-fai mailing list