[xen-tools-dev] [PATCH] Disable other getty lines as debian does.
Stéphane Jourdois
sjourdois at gmail.com
Sun Jul 11 15:38:49 CEST 2010
This makes t/hook-inittab.t pass for this hook.
---
hooks/intrepid/30-disable-gettys | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/hooks/intrepid/30-disable-gettys b/hooks/intrepid/30-disable-gettys
index 5590785..8b14381 100755
--- a/hooks/intrepid/30-disable-gettys
+++ b/hooks/intrepid/30-disable-gettys
@@ -30,7 +30,7 @@ logMessage Script $0 starting
rm ${prefix}/etc/event.d/tty[!1]
sed -i -e s/tty1/hvc0/ ${prefix}/etc/event.d/tty1
mv ${prefix}/etc/event.d/tty1 ${prefix}/etc/event.d/hvc0
-[ -f ${prefix}/etc/inittab ] && sed -i -e s/tty1/hvc0/ ${prefix}/etc/inittab
+[ -f ${prefix}/etc/inittab ] && sed -i -e 's/^\([2-6].*:respawn*\)/#\1/' -e 's/^T/#\t/' -e 's/tty1$/hvc0/' ${prefix}/etc/inittab
#
# Are we using an alternative serial device?
--
1.5.6.5
More information about the xen-tools-dev
mailing list