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: