in fact, not just tty1 is needed, but tty1-4, otherwise one hits the 'reaspawns too fast'-trap of inittab, updated patch attached.
-- Address: Daniel Baumann, Burgunderstrasse 3, CH-4562 Biberist Email: [email protected] Internet: http://people.panthera-systems.net/~daniel-baumann/
>From 415bd8058f5267f782adc1298bfd53f436890b5b Mon Sep 17 00:00:00 2001 From: Daniel Baumann <[email protected]> Date: Sun, 17 Oct 2010 13:50:55 +0200 Subject: [PATCH] Adding patch to create missing tty device nodes in debian template (Closes: #600466). --- debian/patches/series | 1 + debian/patches/squeeze-tty | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+), 0 deletions(-) create mode 100644 debian/patches/squeeze-tty diff --git a/debian/patches/series b/debian/patches/series index 1257956..f2fb12c 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,3 +1,4 @@ debian-changes-0.7.2-1 upstream-container-architecture upstream-debian-suite +squeeze-tty diff --git a/debian/patches/squeeze-tty b/debian/patches/squeeze-tty new file mode 100644 index 0000000..b43338f --- /dev/null +++ b/debian/patches/squeeze-tty @@ -0,0 +1,20 @@ +Author: Daniel Baumann <[email protected]> +Description: Creating missing tty device nodes for squeeze (Closes: #600466). + +diff -Naurp lxc.orig/templates/lxc-debian.in lxc/templates/lxc-debian.in +--- lxc.orig/templates/lxc-debian.in 2010-10-18 11:10:21.685468843 +0200 ++++ lxc/templates/lxc-debian.in 2010-10-18 21:20:17.245467582 +0200 +@@ -25,6 +25,13 @@ configure_debian() + rootfs=$1 + hostname=$2 + ++ # Squeeze only has /dev/tty and /dev/tty0 by default, ++ # therefore creating missing device nodes for tty1-4. ++ test -e $rootfs/dev/tty1 || mknod $rootfs/dev/tty1 c 4 1 ++ test -e $rootfs/dev/tty2 || mknod $rootfs/dev/tty2 c 4 2 ++ test -e $rootfs/dev/tty3 || mknod $rootfs/dev/tty3 c 4 3 ++ test -e $rootfs/dev/tty4 || mknod $rootfs/dev/tty4 c 4 4 ++ + # configure the inittab + cat <<EOF > $rootfs/etc/inittab + id:3:initdefault: -- 1.7.1

