mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-07-15 16:19:18 +00:00
Creating missing tty device nodes for squeeze in debian template.
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
This commit is contained in:
parent
49a630b8f3
commit
4e0eb76555
@ -28,6 +28,14 @@ configure_debian()
|
|||||||
rootfs=$1
|
rootfs=$1
|
||||||
hostname=$2
|
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
|
# configure the inittab
|
||||||
cat <<EOF > $rootfs/etc/inittab
|
cat <<EOF > $rootfs/etc/inittab
|
||||||
id:3:initdefault:
|
id:3:initdefault:
|
||||||
|
Loading…
Reference in New Issue
Block a user