summary refs log tree commit diff
path: root/modules/system
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2011-09-22 08:26:58 +0000
committerEelco Dolstra <eelco.dolstra@logicblox.com>2011-09-22 08:26:58 +0000
commit3fa2bbd02938d187bbe081a78da1daf417a01c1e (patch)
treebdffafe519f81d9e04b6623d9c135ff7622f0bf5 /modules/system
parent229b99321f45694f6e778681715cc98ec466810f (diff)
downloadnixpkgs-3fa2bbd02938d187bbe081a78da1daf417a01c1e.tar
nixpkgs-3fa2bbd02938d187bbe081a78da1daf417a01c1e.tar.gz
nixpkgs-3fa2bbd02938d187bbe081a78da1daf417a01c1e.tar.bz2
nixpkgs-3fa2bbd02938d187bbe081a78da1daf417a01c1e.tar.lz
nixpkgs-3fa2bbd02938d187bbe081a78da1daf417a01c1e.tar.xz
nixpkgs-3fa2bbd02938d187bbe081a78da1daf417a01c1e.tar.zst
nixpkgs-3fa2bbd02938d187bbe081a78da1daf417a01c1e.zip
* Properly shut down udevd in stage 1. Otherwise there is a slight
  possibility that a udevd process survives, preventing udevd from
  starting in stage 2:

  machine# udevd[1421]: bind failed: Address already in use
  machine# udevd[1421]: error binding udev control socket

svn path=/nixos/trunk/; revision=29434
Diffstat (limited to 'modules/system')
-rw-r--r--modules/system/boot/stage-1-init.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/system/boot/stage-1-init.sh b/modules/system/boot/stage-1-init.sh
index b2d93a8fd08..a1fcfc164b6 100644
--- a/modules/system/boot/stage-1-init.sh
+++ b/modules/system/boot/stage-1-init.sh
@@ -293,7 +293,11 @@ done
 
 
 # Stop udevd.
-kill -- -1
+udevadm control --exit
+
+# Kill any remaining processes, just to be sure we're not taking any
+# with us into stage 2.
+kill -9 -- -1
 
 
 if test -n "$debug1mounts"; then fail; fi