nixos/qemu-vm: consistently use efiSysMountPoint
Remove the explicit creation of efiSysMountPoint. This is not needed in the scripted or the systemd initrd.
This commit is contained in:
parent
b7b90d0455
commit
cb5a876e82
@ -393,7 +393,7 @@ in
|
|||||||
The path (inside the VM) to the device containing the EFI System Partition (ESP).
|
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
|
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";
|
user = "root";
|
||||||
group = "root";
|
group = "root";
|
||||||
};
|
};
|
||||||
"${config.boot.loader.efi.efiSysMountPoint}".d = {
|
|
||||||
mode = "0644";
|
|
||||||
user = "root";
|
|
||||||
group = "root";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# After booting, register the closure of the paths in
|
# After booting, register the closure of the paths in
|
||||||
@ -1239,7 +1234,7 @@ in
|
|||||||
options = [ "mode=0755" ];
|
options = [ "mode=0755" ];
|
||||||
neededForBoot = true;
|
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;
|
device = cfg.bootPartition;
|
||||||
fsType = "vfat";
|
fsType = "vfat";
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user