diff options
| author | nikstur <nikstur@outlook.com> | 2024-02-23 00:56:13 +0100 |
|---|---|---|
| committer | nikstur <nikstur@outlook.com> | 2024-07-18 19:11:27 +0200 |
| commit | cb5a876e8243a6f09ad9883fe5db58f1f9a80b74 (patch) | |
| tree | 7270d77fecfbf24890aedbb72e42d5e410567585 | |
| parent | nixos/qemu-vm: fsck ESP (diff) | |
| download | nixpkgs-cb5a876e8243a6f09ad9883fe5db58f1f9a80b74.tar.gz | |
nixos/qemu-vm: consistently use efiSysMountPoint
Remove the explicit creation of efiSysMountPoint. This is not needed in
the scripted or the systemd initrd.
| -rw-r--r-- | nixos/modules/virtualisation/qemu-vm.nix | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/nixos/modules/virtualisation/qemu-vm.nix b/nixos/modules/virtualisation/qemu-vm.nix index 0c63b640c389..32a1d47b59fe 100644 --- a/nixos/modules/virtualisation/qemu-vm.nix +++ b/nixos/modules/virtualisation/qemu-vm.nix @@ -393,7 +393,7 @@ in The path (inside the VM) to the device containing the EFI System Partition (ESP). If you are *not* booting from a UEFI firmware, this value is, by - default, `null`. The ESP is mounted under `/boot`. + default, `null`. The ESP is mounted to `boot.loader.efi.efiSysMountpoint`. ''; }; @@ -1052,11 +1052,6 @@ in user = "root"; group = "root"; }; - "${config.boot.loader.efi.efiSysMountPoint}".d = { - mode = "0644"; - user = "root"; - group = "root"; - }; }; # After booting, register the closure of the paths in @@ -1239,7 +1234,7 @@ in options = [ "mode=0755" ]; neededForBoot = true; }; - "/boot" = lib.mkIf (cfg.useBootLoader && cfg.bootPartition != null) { + "${config.boot.loader.efi.efiSysMountPoint}" = lib.mkIf (cfg.useBootLoader && cfg.bootPartition != null) { device = cfg.bootPartition; fsType = "vfat"; }; |
