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:
parent
640feef247
commit
ed505c325b
1 changed files with 1 additions and 1 deletions
|
@ -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"
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue