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.
This commit is contained in:
Jean-François Roche 2022-12-13 13:22:37 +01:00
parent 640feef247
commit ed505c325b
No known key found for this signature in database
GPG key ID: D1D09DE169EA19A0

View file

@ -23,7 +23,7 @@ build_kexec_bundle() {
declare -r tag=$1 arch=$2 tmp=$3 declare -r tag=$1 arch=$2 tmp=$3
# the default configuration conflicts with the kexec bundle configuration # the default configuration conflicts with the kexec bundle configuration
echo "{}" > "$tmp/config.nix" 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" echo "$tmp/kexec-bundle-$arch"
} }