From f1f1adf36a8b5971a9eed5e737b256e548611969 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Sun, 12 Aug 2012 20:07:26 -0400 Subject: 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 --- shutdown | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'shutdown') 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 -- cgit v1.2.3-24-g4f1b