summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2012-08-13 02:07:26 +0200
committerDave Reisner <dreisner@archlinux.org>2012-08-13 04:24:52 +0200
commitf1f1adf36a8b5971a9eed5e737b256e548611969 (patch)
tree05134000536a8c3692ea3bd10603131eae2b573c
parentf3638aaa09370849f93567029066e0ff3a5426cc (diff)
downloadmkinitcpio-f1f1adf36a8b5971a9eed5e737b256e548611969.tar.gz
mkinitcpio-f1f1adf36a8b5971a9eed5e737b256e548611969.tar.xz
shutdown: add hack workaround for broken dm/kernel
This is already fixed elsewhere, and eventually this hack needs to be removed. However, for now, it seems that some kernels (3.4 and 3.0) will hang on shutdown with the combination of systemd and lvm/crypt. Removing evidence of udev being alive in /run seems to fix this. Fixes FS#30995. Signed-off-by: Dave Reisner <dreisner@archlinux.org>
-rw-r--r--shutdown4
1 files changed, 4 insertions, 0 deletions
diff --git a/shutdown b/shutdown
index fd88105..a9ac8c6 100644
--- a/shutdown
+++ b/shutdown
@@ -55,6 +55,10 @@ disassemble() {
done
}
+# XXX: Discourage libdevmapper from thinking that udev
+# might be in a useful state. FS#30995.
+rm -rf /run/udev
+
printf '%s\n' 'Detaching loop devices.'
for loop in loop*/loop; do