fix nodhcp option to actually force DHCP off
authorEvgeni Golov <evgeni@debian.org>
Tue, 15 Dec 2015 07:21:26 +0000 (08:21 +0100)
committerRaphaël Hertzog <hertzog@debian.org>
Thu, 12 Jan 2017 14:59:57 +0000 (15:59 +0100)
patch based on the one in Grml and the input of Frank Lillo

Thanks: Frank Lillo <frank.lillo@gecoinc.com>
Closes: #785345

components/9990-cmdline-old
components/9990-netbase.sh
debian/changelog

index 1549bb4..a565ce1 100755 (executable)
@@ -33,6 +33,8 @@ Cmdline_old ()
                        nodhcp)
                                DHCP=""
                                export DHCP
+                               NODHCP="true"
+                               export NODHCP
                                ;;
 
                        ethdevice=*)
index 70f97b8..04a4ae4 100755 (executable)
@@ -80,7 +80,11 @@ EOF
                        fi
                done
        else
-               if [ -z "${NETBOOT}" ] || [ -n "${DHCP}" ]
+               if [ -n "${NODHCP}" ]
+               then
+                       # force DHCP off
+                       method="manual"
+               elif [ -z "${NETBOOT}" ] || [ -n "${DHCP}" ]
                then
                        # default, dhcp assigned
                        method="dhcp"
index 3ebe79f..acae698 100644 (file)
@@ -1,6 +1,9 @@
 live-boot (1:20170112) unstable; urgency=medium
 
+  [ Raphaël Hertzog ]
   * Team upload.
+  * Fix nodhcp option to actually force DHCP off. Closes: #785345
+    Thanks to Frank Lillo for the report and Evgeni Golov for the patch.
 
   [ Kristian Klausen ]
   * Add "nls_ascii" module in the initrd so that we can access FAT