From ed505c325b9b6cd674f209af28d09e6f7c719f6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Fran=C3=A7ois=20Roche?= Date: Tue, 13 Dec 2022 13:22:37 +0100 Subject: [PATCH] Fix duplicate assets related to kexec-bundle New release of `nixos-generate` seem to output the path of the generated kexec bundle in the nix store. Push only the path of the kexec bundle given by the outlink location. --- build-images.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-images.sh b/build-images.sh index 0886aa8..5bc47c5 100755 --- a/build-images.sh +++ b/build-images.sh @@ -23,7 +23,7 @@ build_kexec_bundle() { declare -r tag=$1 arch=$2 tmp=$3 # the default configuration conflicts with the kexec bundle configuration echo "{}" > "$tmp/config.nix" - nixos-generate -o "$tmp/kexec-bundle-$arch" -c "$tmp/config.nix" -f kexec-bundle -I "nixpkgs=https://github.com/NixOS/nixpkgs/archive/${tag}.tar.gz" + nixos-generate -o "$tmp/kexec-bundle-$arch" -c "$tmp/config.nix" -f kexec-bundle -I "nixpkgs=https://github.com/NixOS/nixpkgs/archive/${tag}.tar.gz" >/dev/null echo "$tmp/kexec-bundle-$arch" }