feat(image): install upstream kexec which now have support for UKIs
This commit is contained in:
parent
0a0e9127e0
commit
7365ef8918
13 changed files with 74 additions and 7 deletions
pkgs/image
36
pkgs/image/default.nix
Normal file
36
pkgs/image/default.nix
Normal file
|
@ -0,0 +1,36 @@
|
|||
{
|
||||
pkgs,
|
||||
stdenvNoCC,
|
||||
patosPkgs,
|
||||
version,
|
||||
...
|
||||
}:
|
||||
let
|
||||
pname = "patos-image";
|
||||
in
|
||||
stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
inherit version;
|
||||
inherit pname;
|
||||
|
||||
buildInputs = with pkgs; [
|
||||
erofs-utils
|
||||
dosfstools
|
||||
mtools
|
||||
e2fsprogs
|
||||
];
|
||||
|
||||
env = {
|
||||
# vfat options won't efi won't find the fs otherwise.
|
||||
SYSTEMD_REPART_MKFS_OPTIONS_VFAT = "-S 512 -c";
|
||||
};
|
||||
|
||||
systemd = patosPkgs.systemd.out;
|
||||
kernel = patosPkgs.kernel.kernel;
|
||||
initrd = patosPkgs.initrd.out;
|
||||
rootfs = patosPkgs.rootfs.out;
|
||||
|
||||
#FIXME: use roothash instead of device.
|
||||
kernelCmdLine = "root=/dev/sda2 console=ttyS0";
|
||||
|
||||
builder = ./mkimage.sh;
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue