here's the patch.

-- 
Address:        Daniel Baumann, Burgunderstrasse 3, CH-4562 Biberist
Email:          [email protected]
Internet:       http://people.panthera-systems.net/~daniel-baumann/
Author: Daniel Baumann <[email protected]>
Description: Creating missing tty1 device node 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-17 13:46:27.390445902 +0200
+++ lxc/templates/lxc-debian.in 2010-10-17 13:45:53.005449681 +0200
@@ -25,6 +25,10 @@ configure_debian()
     rootfs=$1
     hostname=$2
 
+    # Squeeze only has /dev/tty and /dev/tty0 by default,
+    # therefore creating missing device nodes for tty1.
+    test -e $rootfs/dev/tty1 || mknod $rootfs/dev/tty1 c 4 1
+
     # configure the inittab
     cat <<EOF > $rootfs/etc/inittab
 id:3:initdefault:

Reply via email to