diff options
author | nikstur <nikstur@outlook.com> | 2024-02-07 22:51:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-07 22:51:31 +0100 |
commit | ad2dfe1ef433b18ba26166fb6cae720f66bbe48a (patch) | |
tree | ac80d401096f5a5dc8778395ef3d6b56746b858f | |
parent | ee2312f75e1e80e59a72db67c14d8279809522d0 (diff) | |
parent | 66deaec720a59bbf1e5c142d8a856e67cd81530c (diff) | |
download | nixlib-ad2dfe1ef433b18ba26166fb6cae720f66bbe48a.tar nixlib-ad2dfe1ef433b18ba26166fb6cae720f66bbe48a.tar.gz nixlib-ad2dfe1ef433b18ba26166fb6cae720f66bbe48a.tar.bz2 nixlib-ad2dfe1ef433b18ba26166fb6cae720f66bbe48a.tar.lz nixlib-ad2dfe1ef433b18ba26166fb6cae720f66bbe48a.tar.xz nixlib-ad2dfe1ef433b18ba26166fb6cae720f66bbe48a.tar.zst nixlib-ad2dfe1ef433b18ba26166fb6cae720f66bbe48a.zip |
Merge pull request #286717 from msanft/nixos/appliance-docs
nixos/appliance-repart-image: use UKI in docs
-rw-r--r-- | nixos/doc/manual/installation/building-images-via-systemd-repart.chapter.md | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/nixos/doc/manual/installation/building-images-via-systemd-repart.chapter.md b/nixos/doc/manual/installation/building-images-via-systemd-repart.chapter.md index 6d0675f21a03..10bee156d113 100644 --- a/nixos/doc/manual/installation/building-images-via-systemd-repart.chapter.md +++ b/nixos/doc/manual/installation/building-images-via-systemd-repart.chapter.md @@ -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 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 -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 +[unified-kernel-image]: https://uapi-group.org/specifications/specs/unified_kernel_image/ ```nix let @@ -101,18 +102,8 @@ in "/EFI/BOOT/BOOT${lib.toUpper efiArch}.EFI".source = "${pkgs.systemd}/lib/systemd/boot/efi/systemd-boot${efiArch}.efi"; - "/loader/entries/nixos.conf".source = pkgs.writeText "nixos.conf" '' - title NixOS - 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}"; + "/EFI/Linux/${config.system.boot.loader.ukiFile}".source = + "${config.system.build.uki}/${config.system.boot.loader.ukiFile}"; }; repartConfig = { Type = "esp"; |