From cd0621ba55b11b088234c495c660a2414a3fff16 Mon Sep 17 00:00:00 2001 From: Yureka Date: Tue, 6 Aug 2024 13:26:51 +0200 Subject: [PATCH] builders/netboot: add separate firmware_part output --- services/baremetal-builder/netboot.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/services/baremetal-builder/netboot.nix b/services/baremetal-builder/netboot.nix index 1eeddf5..4f6782d 100644 --- a/services/baremetal-builder/netboot.nix +++ b/services/baremetal-builder/netboot.nix @@ -75,6 +75,7 @@ in system.build.usbImage = pkgs.callPackage ({ stdenv, runCommand, dosfstools, e2fsprogs, mtools, libfaketime, util-linux, nukeReferences }: runCommand "boot-img-${node.config.networking.hostName}" { nativeBuildInputs = [ dosfstools e2fsprogs libfaketime mtools util-linux ]; + outputs = [ "out" "firmware_part" ]; } '' export img=$out truncate -s 40M $img @@ -123,6 +124,8 @@ in # Verify the FAT partition before copying it. fsck.vfat -vn firmware_part.img dd conv=notrunc if=firmware_part.img of=$img seek=$START count=$SECTORS + + cp firmware_part.img $firmware_part '' ) {}; }