summary refs log tree commit diff
path: root/nixos/modules/virtualisation/amazon-image.nix
diff options
context:
space:
mode:
authorIhor Antonov <ngortheone@gmail.com>2018-05-09 10:15:16 -0400
committerTuomas Tynkkynen <tuomas.tynkkynen@iki.fi>2018-05-12 02:55:33 +0300
commit08ebd830a559692f9b34a1619cca44b1888468a0 (patch)
tree8630368f698780704a48f434a158c81827202220 /nixos/modules/virtualisation/amazon-image.nix
parente4777ae2d84c5f38740b744fe85e305f1a2f0209 (diff)
downloadnixpkgs-08ebd830a559692f9b34a1619cca44b1888468a0.tar
nixpkgs-08ebd830a559692f9b34a1619cca44b1888468a0.tar.gz
nixpkgs-08ebd830a559692f9b34a1619cca44b1888468a0.tar.bz2
nixpkgs-08ebd830a559692f9b34a1619cca44b1888468a0.tar.lz
nixpkgs-08ebd830a559692f9b34a1619cca44b1888468a0.tar.xz
nixpkgs-08ebd830a559692f9b34a1619cca44b1888468a0.tar.zst
nixpkgs-08ebd830a559692f9b34a1619cca44b1888468a0.zip
Fix kernel crash caused by absent root device
Diffstat (limited to 'nixos/modules/virtualisation/amazon-image.nix')
-rw-r--r--nixos/modules/virtualisation/amazon-image.nix7
1 files changed, 0 insertions, 7 deletions
diff --git a/nixos/modules/virtualisation/amazon-image.nix b/nixos/modules/virtualisation/amazon-image.nix
index f74c42a777f..e9e935e9020 100644
--- a/nixos/modules/virtualisation/amazon-image.nix
+++ b/nixos/modules/virtualisation/amazon-image.nix
@@ -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.