1
From: Daniel Baumann <daniel.baumann@progress-technologies.net>
2
Date: Mon, 6 Dec 2010 16:12:36 +0100
3
Subject: [PATCH] squeeze-missing-tty
6
templates/lxc-debian.in | 7 +++++++
7
1 files changed, 7 insertions(+), 0 deletions(-)
9
diff --git a/templates/lxc-debian.in b/templates/lxc-debian.in
10
index 2b1b7b3..68ba3ca 100644
11
--- a/templates/lxc-debian.in
12
+++ b/templates/lxc-debian.in
13
@@ -27,6 +27,13 @@ configure_debian()
17
+ # Squeeze only has /dev/tty and /dev/tty0 by default,
18
+ # therefore creating missing device nodes for tty1-4.
19
+ test -e $rootfs/dev/tty1 || mknod $rootfs/dev/tty1 c 4 1
20
+ test -e $rootfs/dev/tty2 || mknod $rootfs/dev/tty2 c 4 2
21
+ test -e $rootfs/dev/tty3 || mknod $rootfs/dev/tty3 c 4 3
22
+ test -e $rootfs/dev/tty4 || mknod $rootfs/dev/tty4 c 4 4
24
# configure the inittab
25
cat <<EOF > $rootfs/etc/inittab