about summary refs log tree commit diff
path: root/nixos/lib
diff options
context:
space:
mode:
authorLassulus2021-04-26 10:04:00 +0200
committerGitHub2021-04-26 10:04:00 +0200
commitcdddbf59eaef2b80680d888c5dd11056ef40e447 (patch)
tree2dffda5b1ff41106f1480b6c58fbb287099d9ad6 /nixos/lib
parentb516dbfbd91676371f03ea81a0c5dc7e343fde02 (diff)
parentf20ae954d57f7fa4f007a000291dc1644036570f (diff)
Merge pull request #120251 from mschwaig/fix-make-disk-image-for-efi-2
make-disk-image: fix broken EFI image builds
Diffstat (limited to 'nixos/lib')
-rw-r--r--nixos/lib/make-disk-image.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/nixos/lib/make-disk-image.nix b/nixos/lib/make-disk-image.nix
index 023d0791a5c7..88c87bcd568e 100644
--- a/nixos/lib/make-disk-image.nix
+++ b/nixos/lib/make-disk-image.nix
@@ -283,6 +283,9 @@ in pkgs.vmTools.runInLinuxVM (
       # Some tools assume these exist
       ln -s vda /dev/xvda
       ln -s vda /dev/sda
+      # make systemd-boot find ESP without udev
+      mkdir /dev/block
+      ln -s /dev/vda1 /dev/block/254:1
 
       mountPoint=/mnt
       mkdir $mountPoint