10_support_ethdevice.dpatch: support setting NIC name via ethdevice
authorMichael Prokop <mika@grml.org>
Fri, 4 Sep 2009 23:02:23 +0000 (01:02 +0200)
committerMichael Prokop <mika@grml.org>
Fri, 4 Sep 2009 23:02:23 +0000 (01:02 +0200)
debian/changelog
debian/patches/00list
debian/patches/10_support_ethdevice.dpatch [new file with mode: 0755]

index 4bddf07..e66ea31 100644 (file)
@@ -7,8 +7,10 @@ live-initramfs (1.157.3-1grml.00) UNRELEASED; urgency=low
     Philip Hands <phil@hands.com> - thanks!
   * grml/23networking: add support for bootoption noudev so the
     udev part in initramfs is skipped as well.
+  * New patch 10_support_ethdevice.dpatch: support setting NIC name
+    via ethdevice. Thanks to Helge Wagner! [Testing: issue724]
 
- -- Michael Prokop <mika@grml.org>  Sat, 05 Sep 2009 00:25:44 +0200
+ -- Michael Prokop <mika@grml.org>  Sat, 05 Sep 2009 01:01:38 +0200
 
 live-initramfs (1.157.1-1grml.07) unstable; urgency=low
 
index 4da5b26..0f38791 100644 (file)
@@ -7,3 +7,4 @@
 07_support_findiso.dpatch
 08_readonly_devices.dpatch
 09_fix_resolvconf_pxeboot.dpatch
+10_support_ethdevice.dpatch
diff --git a/debian/patches/10_support_ethdevice.dpatch b/debian/patches/10_support_ethdevice.dpatch
new file mode 100755 (executable)
index 0000000..139f2b6
--- /dev/null
@@ -0,0 +1,24 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 10_support_ethdevice.dpatch by <mika@grml.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Support bootoption ethdevice
+
+@DPATCH@
+
+diff --git a/scripts/live b/scripts/live
+index db1d355..797a5da 100755
+--- a/scripts/live
++++ b/scripts/live
+@@ -66,6 +66,11 @@ Arguments ()
+                               set -x
+                               ;;
++                      ethdevice=*)
++                              DEVICE="${ARGUMENT#ethdevice=}"
++                              export DEVICE
++                              ;;
++
+                       fetch=*)
+                                 FETCH="${ARGUMENT#fetch=}"
+                                 export FETCH