From be7f20b0fcb2b7961e06dcf0e2fb15e09cfd98f3 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Wed, 29 Oct 2014 00:44:02 +0100 Subject: [PATCH] Work around "udev >=208-6 without systemd" bug with loopback device, causing serious boot delay Without the loopback device properly set up when the udev init script gets executed we have a boot delay of XX seconds. This is a show stopper for us and until https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=754987 has been resolved we need a workaround for that. Thanks: Evgeni Golov, Marco d'Itri, Christian Hofstaedtler and Ulrich Dangel for debugging assistance --- debian/grml-udev-config.grml-udev.init | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/debian/grml-udev-config.grml-udev.init b/debian/grml-udev-config.grml-udev.init index 8d106e5..8818e14 100644 --- a/debian/grml-udev-config.grml-udev.init +++ b/debian/grml-udev-config.grml-udev.init @@ -81,6 +81,13 @@ case "$1" in printf 'Warning: /etc/grml/autoconfig.functions could not be read.\n'>&2 fi + # ugly workaround to get udev >=208-6 without systemd working + # without long delay during udev startup :( more details at + # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=754987 + if cat /sys/class/net/lo/operstate 2>/dev/null | grep -q 'down' ; then + ip link set dev lo up + fi + # support bootoption noudev and inform user how to skip # execution of udev (being bootoption noudev) if ! grep -q noudev /proc/cmdline ; then -- 2.1.4