]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - modules/ganeti2/templates/instance-debootstrap/hooks/10-dsa-install-extra-packages.erb
See if we still need instance-debootstrap
[dsa-puppet.git] / modules / ganeti2 / templates / instance-debootstrap / hooks / 10-dsa-install-extra-packages.erb
diff --git a/modules/ganeti2/templates/instance-debootstrap/hooks/10-dsa-install-extra-packages.erb b/modules/ganeti2/templates/instance-debootstrap/hooks/10-dsa-install-extra-packages.erb
deleted file mode 100755 (executable)
index 0b0b866..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/bin/bash
-
-set -e
-
-if [ -z "$TARGET" -o ! -d "$TARGET" ]; then
-  echo "Missing target directory"
-  exit 1
-fi
-
-chroot "$TARGET" apt-get -qq update
-chroot "$TARGET" apt-get -qq install vim ssh extlinux
-
-node="$(hostname)"
-instance="$(cat $TARGET/etc/hostname)"
-sed -e "s#root@$node#root@$instance#" -i "$TARGET"/etc/ssh/ssh*pub
-
-if [ "$ARCH" = "amd64" ]; then
-    chroot "$TARGET" apt-get -qq install linux-image-amd64
-fi
-
-exit 0