From 91ba3db6d50b438a729975451b559858228b3613 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Wed, 20 Jun 2012 09:30:15 +0200 Subject: [PATCH] Fix ssh public key labels --- .../hooks/10-dsa-install-extra-packages.erb | 3 +++ 1 file changed, 3 insertions(+) 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 index 165099e8..e48af7e8 100755 --- 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 @@ -10,6 +10,9 @@ fi chroot "$TARGET" apt-get -qq update chroot "$TARGET" apt-get -qq install vim ssh extlinux +hostname="$(hostname)" +set -e "s#root@$hostname#root@$instance#" -i /etc/ssh/ssh*pub + if [ "$ARCH" = "amd64" ]; then chroot "$TARGET" apt-get -qq install linux-image-amd64 fi -- 2.39.2