Skip to content

Commit

Permalink
Remove boot bypartlabel
Browse files Browse the repository at this point in the history
  • Loading branch information
arianvp committed Nov 27, 2023
1 parent a8ee95f commit 94a04c0
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions modules/amazon-image.nix
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ in
options init=${config.system.build.toplevel}/init ${toString config.boot.kernelParams}
'';

"/EFI/nixos/kernel.efi".source = "${config.system.build.kernel}/${config.system.boot.loader.kernelFile}";
# "${config.boot.kernelPackages.kernel}/${config.system.boot.loader.kernelFile}";
"/EFI/nixos/kernel.efi".source =
"${config.boot.kernelPackages.kernel}/${config.system.boot.loader.kernelFile}";

"/EFI/nixos/initrd.efi".source = "${config.system.build.toplevel}/initrd";
# "${config.system.build.initialRamdisk}/${config.system.boot.loader.initrdFile}";
"/EFI/nixos/initrd.efi".source =
"${config.system.build.initialRamdisk}/${config.system.boot.loader.initrdFile}";
};
repartConfig = {
Type = "esp";
Expand All @@ -70,6 +70,7 @@ in
Label = "nixos";
Format = "ext4";
Minimize = "guess";
GrowFileSystem = true;
};
};
};
Expand All @@ -80,10 +81,6 @@ in
};

fileSystems = {
"/boot" = {
device = "/dev/disk/by-partlabel/ESP";
fsType = "vfat";
};
"/" = {
device = "/dev/disk/by-partlabel/nixos";
fsType = "ext4";
Expand Down

0 comments on commit 94a04c0

Please sign in to comment.