feat(systemd-repart): build image
This commit is contained in:
parent
e7470498e5
commit
af78f1c930
5 changed files with 82 additions and 18 deletions
14
flake.nix
14
flake.nix
|
@ -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
|
||||
];
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue