From 78fb4bd644dcb1dac30364ad04f16e4e28bc3669 Mon Sep 17 00:00:00 2001 From: Sarah Brofeldt Date: Sun, 12 Aug 2018 19:33:59 +0200 Subject: nixos/qemu-vm: Don't explicitly mknod /dev/vda* And don't need to source the uevent files anymore either since $MAJOR or $MINOR aren't used elsewhere. [dezgeg: The reason these are no longer needed is that 0d27df280f7ed5 switched /tmp to a devtmpfs which automatically creates such device nodes] --- nixos/modules/virtualisation/qemu-vm.nix | 3 --- 1 file changed, 3 deletions(-) (limited to 'nixos/modules/virtualisation') diff --git a/nixos/modules/virtualisation/qemu-vm.nix b/nixos/modules/virtualisation/qemu-vm.nix index 0abf7b11703c..4e9c87222d0a 100644 --- a/nixos/modules/virtualisation/qemu-vm.nix +++ b/nixos/modules/virtualisation/qemu-vm.nix @@ -156,9 +156,6 @@ let --partition-guid=2:970C694F-AFD0-4B99-B750-CDB7A329AB6F \ --hybrid 2 \ --recompute-chs /dev/vda - . /sys/class/block/vda2/uevent - mknod /dev/vda2 b $MAJOR $MINOR - . /sys/class/block/vda/uevent ${pkgs.dosfstools}/bin/mkfs.fat -F16 /dev/vda2 export MTOOLS_SKIP_CHECK=1 ${pkgs.mtools}/bin/mlabel -i /dev/vda2 ::boot -- cgit 1.4.1