nixos/appliance-repart-image: use UKI in docs
This commit is contained in:
parent
8cc79aa39b
commit
66deaec720
@ -75,9 +75,10 @@ image with a new one or by updating partitions via an A/B scheme. See the
|
|||||||
[Chrome OS update process][chrome-os-update] for an example of how to achieve
|
[Chrome OS update process][chrome-os-update] for an example of how to achieve
|
||||||
this. The appliance image built in the following example does not contain a
|
this. The appliance image built in the following example does not contain a
|
||||||
`configuration.nix` and thus you will not be able to call `nixos-rebuild` from
|
`configuration.nix` and thus you will not be able to call `nixos-rebuild` from
|
||||||
this system.
|
this system. Furthermore, it uses a [Unified Kernel Image][unified-kernel-image].
|
||||||
|
|
||||||
[chrome-os-update]: https://chromium.googlesource.com/aosp/platform/system/update_engine/+/HEAD/README.md
|
[chrome-os-update]: https://chromium.googlesource.com/aosp/platform/system/update_engine/+/HEAD/README.md
|
||||||
|
[unified-kernel-image]: https://uapi-group.org/specifications/specs/unified_kernel_image/
|
||||||
|
|
||||||
```nix
|
```nix
|
||||||
let
|
let
|
||||||
@ -101,18 +102,8 @@ in
|
|||||||
"/EFI/BOOT/BOOT${lib.toUpper efiArch}.EFI".source =
|
"/EFI/BOOT/BOOT${lib.toUpper efiArch}.EFI".source =
|
||||||
"${pkgs.systemd}/lib/systemd/boot/efi/systemd-boot${efiArch}.efi";
|
"${pkgs.systemd}/lib/systemd/boot/efi/systemd-boot${efiArch}.efi";
|
||||||
|
|
||||||
"/loader/entries/nixos.conf".source = pkgs.writeText "nixos.conf" ''
|
"/EFI/Linux/${config.system.boot.loader.ukiFile}".source =
|
||||||
title NixOS
|
"${config.system.build.uki}/${config.system.boot.loader.ukiFile}";
|
||||||
linux /EFI/nixos/kernel.efi
|
|
||||||
initrd /EFI/nixos/initrd.efi
|
|
||||||
options init=${config.system.build.toplevel}/init ${toString config.boot.kernelParams}
|
|
||||||
'';
|
|
||||||
|
|
||||||
"/EFI/nixos/kernel.efi".source =
|
|
||||||
"${config.boot.kernelPackages.kernel}/${config.system.boot.loader.kernelFile}";
|
|
||||||
|
|
||||||
"/EFI/nixos/initrd.efi".source =
|
|
||||||
"${config.system.build.initialRamdisk}/${config.system.boot.loader.initrdFile}";
|
|
||||||
};
|
};
|
||||||
repartConfig = {
|
repartConfig = {
|
||||||
Type = "esp";
|
Type = "esp";
|
||||||
|
Loading…
Reference in New Issue
Block a user