rework rootfs output dir

This commit is contained in:
Andrew Kidd 2025-01-03 12:10:40 +00:00
parent 2be94edd10
commit b785e594f3

View file

@ -123,14 +123,14 @@ in
set -e
set -x
mkdir -p $out/nix-support $out/net-image
export rootfs=$out/net-image/${config.netImage.rootDirectoryName}
export rootfs=$out/net-image/os/${config.netImage.rootDirectoryName}
export bootfs=$out/net-image/boot
echo "${pkgs.stdenv.buildPlatform.system}" > $out/nix-support/system
echo "Exporting rootfs image"
mkdir -p $rootfs
cp -r ${rootfsImage} $rootfs
cp -r ${rootfsImage}/* $rootfs
# Populate the files intended for tftp
${config.netImage.populateFirmwareCommands}