Fix kernel crash caused by absent root device

This commit is contained in:
Ihor Antonov
2018-05-12 02:55:33 +03:00
committed by Tuomas Tynkkynen
parent e4777ae2d8
commit 08ebd830a5
4 changed files with 28 additions and 33 deletions
@@ -48,13 +48,6 @@ let cfg = config.ec2; in
boot.loader.grub.extraPerEntryConfig = mkIf (!cfg.hvm) "root (hd0)";
boot.loader.timeout = 0;
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
'';
boot.initrd.network.enable = true;
# Mount all formatted ephemeral disks and activate all swap devices.