grml/23networking: add support for bootoption noudev
authorMichael Prokop <mika@grml.org>
Fri, 4 Sep 2009 22:24:06 +0000 (00:24 +0200)
committerMichael Prokop <mika@grml.org>
Fri, 4 Sep 2009 22:24:06 +0000 (00:24 +0200)
debian/changelog
grml/23networking

index 05eeda1..d8667bc 100644 (file)
@@ -4,8 +4,10 @@ live-initramfs (1.157.1-1grml.08) UNRELEASED; urgency=low
     in front of the FINDISO argument so it doesn't hit persons
     who forget a slash in the bootoption. Suggested by
     Philip Hands <phil@hands.com> - thanks!
+  * grml/23networking: add support for bootoption noudev so the
+    udev part in initramfs is skipped as well.
 
- -- Michael Prokop <mika@grml.org>  Thu, 02 Jul 2009 10:40:33 +0200
+ -- Michael Prokop <mika@grml.org>  Sat, 05 Sep 2009 00:23:00 +0200
 
 live-initramfs (1.157.1-1grml.07) unstable; urgency=low
 
index 72aaf12..e72472d 100755 (executable)
@@ -46,15 +46,20 @@ iface lo inet loopback
 
 EOF
 
-if [ -x /sbin/udevadm ]
+if grep -q noudev /proc/cmdline
 then
-       # lenny
-       udevadm trigger
-       udevadm settle
+  log_begin_msg "Skipping udev as requested via bootoption noudev."
 else
-       # etch
-       udevtrigger
-       udevsettle
+  if [ -x /sbin/udevadm ]
+  then
+       # lenny
+       udevadm trigger
+       udevadm settle
+  else
+       # etch
+       udevtrigger
+       udevsettle
+  fi
 fi
 
 if [ -z "${NETBOOT}" -a -n "${STATICIP}" -a "${STATICIP}" != "frommedia" ]