* Ugly hack: force udev to exit to prevent random "Device or resource
busy while trying to open /dev/xvda" errors from fsck. svn path=/nixos/trunk/; revision=33766
This commit is contained in:
parent
d82a7d328d
commit
2821289aeb
@ -322,7 +322,7 @@ done
|
|||||||
|
|
||||||
|
|
||||||
# Stop udevd.
|
# Stop udevd.
|
||||||
udevadm control --exit
|
udevadm control --exit || true
|
||||||
|
|
||||||
# Kill any remaining processes, just to be sure we're not taking any
|
# Kill any remaining processes, just to be sure we're not taking any
|
||||||
# with us into stage 2.
|
# with us into stage 2.
|
||||||
|
@ -78,6 +78,14 @@ with pkgs.lib;
|
|||||||
boot.loader.grub.timeout = 0;
|
boot.loader.grub.timeout = 0;
|
||||||
boot.loader.grub.extraPerEntryConfig = "root (hd0)";
|
boot.loader.grub.extraPerEntryConfig = "root (hd0)";
|
||||||
|
|
||||||
|
boot.initrd.postDeviceCommands =
|
||||||
|
''
|
||||||
|
# Force udev to exit to prevent random "Device or resource busy
|
||||||
|
# while trying to open /dev/xvda" errors from fsck.
|
||||||
|
udevadm control --exit || true
|
||||||
|
kill -9 -- -1
|
||||||
|
'';
|
||||||
|
|
||||||
# Mount all formatted ephemeral disks and activate all swap devices.
|
# Mount all formatted ephemeral disks and activate all swap devices.
|
||||||
# We cannot do this with the ‘fileSystems’ and ‘swapDevices’ options
|
# We cannot do this with the ‘fileSystems’ and ‘swapDevices’ options
|
||||||
# because the set of devices is dependent on the instance type
|
# because the set of devices is dependent on the instance type
|
||||||
|
Loading…
x
Reference in New Issue
Block a user