fix: create derivation for initrd creation

This commit is contained in:
Lars Sjöström 2025-02-24 15:01:03 +01:00
parent 9ff916d0a3
commit e7470498e5
No known key found for this signature in database
4 changed files with 137 additions and 129 deletions

View file

@ -26,9 +26,9 @@
echo "make UKI..."
mkdir -p patos/efi/boot
${self.packages.${system}.systemd.out}/usr/bin/ukify build \
--linux ${self.packages.${system}.kernel.kernel}/bzImage \
--initrd ./initrd.xz \
${patosPkgs.systemd.out}/usr/bin/ukify build \
--linux ${patosPkgs.kernel.kernel}/bzImage \
--initrd ${patosPkgs.initrd.out}/initrd.xz \
--cmdline "console=ttyS0" \
-o patos/efi/boot/bootx64.efi
'';
@ -38,8 +38,8 @@
systemd = pkgs.callPackage ./systemd { };
dbus-broker = pkgs.callPackage ./dbus-broker { };
rootfs = pkgs.callPackage ./rootfs { inherit patosPkgs; };
initrd = pkgs.callPackage ./rootfs/mkinitrd.nix { inherit patosPkgs; };
mkinitrd = pkgs.callPackage ./utils/mkinitrd.nix { inherit patosPkgs; };
qemu-uefi-tpm = pkgs.callPackage ./utils/qemu-uefi-tpm.nix { };
};