summaryrefslogtreecommitdiffstats
path: root/debian/extra/initramfs-tools/scripts/init-bottom/udev
diff options
context:
space:
mode:
Diffstat (limited to 'debian/extra/initramfs-tools/scripts/init-bottom/udev')
-rwxr-xr-xdebian/extra/initramfs-tools/scripts/init-bottom/udev3
1 files changed, 3 insertions, 0 deletions
diff --git a/debian/extra/initramfs-tools/scripts/init-bottom/udev b/debian/extra/initramfs-tools/scripts/init-bottom/udev
index 73887ea..cb114b7 100755
--- a/debian/extra/initramfs-tools/scripts/init-bottom/udev
+++ b/debian/extra/initramfs-tools/scripts/init-bottom/udev
@@ -12,6 +12,9 @@ case "$1" in
esac
# Stop udevd, we'll miss a few events while we run init, but we catch up
+# Wait for current workers to stop (at most for a minute to avoid deadlocks)
+# otherwise there will be lock files left under /run/ (see: #1056564)
+udevadm settle --timeout=60
udevadm control --exit
# move the /dev tmpfs to the rootfs; fall back to util-linux mount that does