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
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" ]