feat(systemd-repart): build image

This commit is contained in:
Lars Sjöström 2025-02-24 16:13:43 +01:00
parent e7470498e5
commit af78f1c930
No known key found for this signature in database
5 changed files with 82 additions and 18 deletions

View file

@ -21,18 +21,7 @@
{
packages = {
default = self.packages.${system}.image;
image = pkgs.writeShellScriptBin "image" ''
set -ex
echo "make UKI..."
mkdir -p patos/efi/boot
${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
'';
image = pkgs.callPackage ./image { inherit patosPkgs; };
kernel = pkgs.callPackage ./kernel { };
glibc = pkgs.callPackage ./glibc { };
systemd = pkgs.callPackage ./systemd { };
@ -60,7 +49,6 @@
nixfmt-rfc-style
squashfs-tools-ng
self.packages.${system}.qemu-uefi-tpm
self.packages.${system}.mkinitrd
];
};