Skip to content

Commit

Permalink
Revert Merge #107275: nixos: fix "nixos-rebuild ...
Browse files Browse the repository at this point in the history
... build-vm-with-bootloader" for EFI systems

This reverts commit 2025728, reversing
changes made to 926a1b2.
It broke nixosTests.installer.simpleUefiSystemdBoot
and right now channel is lagging behing for two weeks.
  • Loading branch information
vcunat committed Dec 23, 2020
1 parent bcf86f5 commit 57a787c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 0 additions & 4 deletions nixos/modules/virtualisation/qemu-vm.nix
Original file line number Diff line number Diff line change
Expand Up @@ -605,10 +605,6 @@ in

virtualisation.bootDevice = mkDefault (driveDeviceName 1);

virtualisation.useEFIBoot = mkDefault
(config.boot.loader.systemd-boot.enable ||
config.boot.loader.efi.canTouchEfiVariables);

virtualisation.pathsInNixDB = [ config.system.build.toplevel ];

# FIXME: Consolidate this one day.
Expand Down
1 change: 1 addition & 0 deletions nixos/tests/systemd-boot.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ with pkgs.lib;
let
common = {
virtualisation.useBootLoader = true;
virtualisation.useEFIBoot = true;
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
environment.systemPackages = [ pkgs.efibootmgr ];
Expand Down

0 comments on commit 57a787c

Please sign in to comment.