diff options
| author | Alexander Popov <alex.popov@linux.com> | 2016-11-28 13:59:09 +0300 |
|---|---|---|
| committer | Alexander Popov <alex.popov@linux.com> | 2016-11-28 16:10:09 +0300 |
| commit | 1e56aff95fed57909a16f46866a03bd3c3d5cf7d (patch) | |
| tree | 72eb32a53bfb90c6c8de47e96d657a4db76a23ba /tools | |
| parent | 23fd96806d2ac9946e38df5eb2a2e7d6c2cd44da (diff) | |
tools: fix getty configuration in create-image.sh
create-image.sh adds the string "V0:23:respawn:/sbin/getty 115200 hvc0" to inittab
of a virtual machine, but a fresh debian-wheezy doesn't have a hvc0 device.
So getty fails to start and respawns over and over again:
INIT: Id "V0" respawning too fast: disabled for 5 minutes
Let's fix create-image.sh to have a working VM terminal.
Signed-off-by: Alexander Popov <alex.popov@linux.com>
Diffstat (limited to 'tools')
| -rwxr-xr-x | tools/create-image.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/create-image.sh b/tools/create-image.sh index 7aa4a20de..78120e67d 100755 --- a/tools/create-image.sh +++ b/tools/create-image.sh @@ -13,7 +13,7 @@ sudo debootstrap --include=openssh-server wheezy wheezy # Set some defaults and enable promtless ssh to the machine for root. sudo sed -i '/^root/ { s/:x:/::/ }' wheezy/etc/passwd -echo 'V0:23:respawn:/sbin/getty 115200 hvc0' | sudo tee -a wheezy/etc/inittab +echo 'T0:23:respawn:/sbin/getty -L ttyS0 115200 vt100' | sudo tee -a wheezy/etc/inittab printf '\nauto eth0\niface eth0 inet dhcp\n' | sudo tee -a wheezy/etc/network/interfaces echo 'debugfs /sys/kernel/debug debugfs defaults 0 0' | sudo tee -a wheezy/etc/fstab echo 'debug.exception-trace = 0' | sudo tee -a wheezy/etc/sysctl.conf |
