From 53baa3d2e8ed91cac1c54d36bd7f0c88d366393b Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Sun, 12 Jan 2014 16:07:52 +0000 Subject: [PATCH] split host configure to acpi and console git-svn-id: svn://svn.rot13.org/sysadmin-cookbook@310 191e9f34-6774-4a6d-acfc-7664dacd4a2a --- recepies/ganeti/migrate-lxc/0-ganeti.sh | 6 +++++- recepies/ganeti/migrate-lxc/H-host-configure.sh | 13 ------------- 2 files changed, 5 insertions(+), 14 deletions(-) delete mode 100755 recepies/ganeti/migrate-lxc/H-host-configure.sh diff --git a/recepies/ganeti/migrate-lxc/0-ganeti.sh b/recepies/ganeti/migrate-lxc/0-ganeti.sh index 12294ad..226b6e9 100644 --- a/recepies/ganeti/migrate-lxc/0-ganeti.sh +++ b/recepies/ganeti/migrate-lxc/0-ganeti.sh @@ -10,5 +10,9 @@ test -d ganeti || mkdir ganeti ssh_master() { log=`basename $1` - ssh root@$master $* | tee ganeti/$log + if [ "$1" == "gnt-instance" ] ; then + ssh root@$master $* + else + ssh root@$master $* | tee ganeti/$log + fi } diff --git a/recepies/ganeti/migrate-lxc/H-host-configure.sh b/recepies/ganeti/migrate-lxc/H-host-configure.sh deleted file mode 100755 index 4595621..0000000 --- a/recepies/ganeti/migrate-lxc/H-host-configure.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/sh -x - -. ./0-host.sh - -#ssh_host apt-get install --reinstall -y initscripts acpid -ssh_host lsmod | grep button - -ssh_host cat /etc/inittab | tee $host/inittab -grep -v ^# $host/inittab | grep console || echo "1:2345:respawn:/sbin/getty 38400 console" | tee -a $host/inittab && \ - rsync $host/inittab root@$host:/etc/ - -ssh_host bak diff /etc/inittab -ssh_host init q -- 2.20.1