diff options
| author | Arslaan Pathan <[email protected]> | 2026-06-08 13:10:01 +1200 |
|---|---|---|
| committer | Arslaan Pathan <[email protected]> | 2026-06-08 13:10:01 +1200 |
| commit | 9dad8b47c18fd4b2d919d90b33b8d7d093a3dac2 (patch) | |
| tree | 5b2a221056404859436d2e5913dfbe63d812eb18 /nix/initramfs.nix | |
| parent | eb6c31a34d289215cd773468575c1432a82794a7 (diff) | |
| download | yerbalinux-9dad8b47c18fd4b2d919d90b33b8d7d093a3dac2.tar.xz yerbalinux-9dad8b47c18fd4b2d919d90b33b8d7d093a3dac2.zip | |
Add rootfs target, make initramfs output to $out for convenience rather than $out/initramfs.cpio.gz, start working on iso target
Diffstat (limited to 'nix/initramfs.nix')
| -rw-r--r-- | nix/initramfs.nix | 29 |
1 files changed, 14 insertions, 15 deletions
diff --git a/nix/initramfs.nix b/nix/initramfs.nix index db2b313..5d023c4 100644 --- a/nix/initramfs.nix +++ b/nix/initramfs.nix @@ -1,19 +1,18 @@ { stdenv, kernel, busybox, cpio }: stdenv.mkDerivation { - name = "initramfs-yerba"; - src = ./.; - buildInputs = [ cpio ]; - buildPhase = '' - mkdir -p $out - mkdir -p initramfs/bin - cp -a ${busybox}/_install/* initramfs/ - cp ${../initramfs_init} initramfs/init - chmod +x initramfs/init - cd initramfs - find . | cpio -o -H newc | gzip > $out/initramfs.cpio.gz - ''; - installPhase = '' - echo "initramfs built" - ''; + name = "initramfs-yerba"; + src = ./.; + buildInputs = [ cpio ]; + buildPhase = '' + mkdir -p initramfs/bin + cp -a ${busybox}/_install/* initramfs/ + cp ${../initramfs_init} initramfs/init + chmod +x initramfs/init + cd initramfs + find . | cpio -o -H newc | gzip > $out + ''; + installPhase = '' + echo "initramfs built" + ''; } |
