From: Daniel Baumann Date: Tue, 28 Dec 2010 20:32:51 +0000 (+0100) Subject: Creating missing tty device nodes for squeeze in debian template. X-Git-Tag: lxc-0.7.4-rc1~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4e0eb76555a8365da02dff70a03355a7562b1ead;p=thirdparty%2Flxc.git Creating missing tty device nodes for squeeze in debian template. Signed-off-by: Daniel Lezcano --- diff --git a/templates/lxc-debian.in b/templates/lxc-debian.in index 8ec0c290c..d5663a21e 100644 --- a/templates/lxc-debian.in +++ b/templates/lxc-debian.in @@ -28,6 +28,14 @@ configure_debian() rootfs=$1 hostname=$2 + # squeeze only has /dev/tty and /dev/tty0 by default, + # therefore creating missing device nodes for tty1-4. + for tty in $(seq 1 4); do + if [ ! -e $rootfs/dev/tty$tty ]; then + mknod $rootfs/dev/tty$tty c 4 $tty + fi + done + # configure the inittab cat < $rootfs/etc/inittab id:3:initdefault: