summaryrefslogtreecommitdiffstats
path: root/krebs/4lib/infest/prepare.sh
diff options
context:
space:
mode:
authorjeschli <jeschli@gmail.com>2018-01-09 22:06:16 +0100
committerjeschli <jeschli@gmail.com>2018-01-09 22:06:16 +0100
commit4c0e2b269f6f2df9725cca59e151f6c39b593fdb (patch)
tree351962ab40a6fce1960aaee190e47477cb720784 /krebs/4lib/infest/prepare.sh
parentf4a23ea078c385fd3f9bfe23f935cd6886d4571d (diff)
infest prepare: remove duplicated code
Diffstat (limited to 'krebs/4lib/infest/prepare.sh')
-rw-r--r--krebs/4lib/infest/prepare.sh5
1 files changed, 0 insertions, 5 deletions
diff --git a/krebs/4lib/infest/prepare.sh b/krebs/4lib/infest/prepare.sh
index ee5f334c7..ff1ab1fb7 100644
--- a/krebs/4lib/infest/prepare.sh
+++ b/krebs/4lib/infest/prepare.sh
@@ -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