infest prepare: remove duplicated code
This commit is contained in:
parent
f4a23ea078
commit
4c0e2b269f
@ -116,11 +116,6 @@ prepare_hetzner_rescue() {
|
||||
mount --rbind /mnt/"$target_path" "$target_path"
|
||||
fi
|
||||
|
||||
mkdir -p bin
|
||||
rm -f bin/nixos-install
|
||||
cp "$(type -p nixos-install)" bin/nixos-install
|
||||
sed -i "s@NIX_PATH=\"[^\"]*\"@NIX_PATH=$target_path@" bin/nixos-install
|
||||
|
||||
_prepare_nix_users
|
||||
_prepare_nix
|
||||
_prepare_nixos_install
|
||||
|
Loading…
Reference in New Issue
Block a user