Suppress agetty spam when ttyS0 doesn't exist

This commit is contained in:
Disassembler 2018-11-13 22:02:38 +01:00
parent afb121c72e
commit 8d6b2bdee6
Signed by: Disassembler
GPG Key ID: 524BD33A0EE29499
2 changed files with 9 additions and 4 deletions

View File

@ -31,7 +31,7 @@ After the script finishes and shuts down the virtual machine, remove CD/DVD driv
### First time setup ### First time setup
Follow the VM creation steps as above, but comment the line disabling the root login in *alpine.sh* file before its execution. After the script finishes and HDD size is adjusted, add serial port in the virtual machine settings and set it to use Unix socket or named pipe (eg. `\\.\pipe\alpine`). Ten start the VM and connect to the serial port using *screen*, *PuTTY* or any other terminal client. Follow the VM creation steps as above, but comment the line disabling the root login in *alpine.sh* file before its execution. After the script finishes and HDD size is adjusted, add serial port in the virtual machine settings and set it to use Unix socket or named pipe (eg. `\\.\pipe\alpine`). Then start the VM and connect to the serial port using *screen*, *PuTTY* or any other terminal client.
``` ```
# Install git and OpenSSH client # Install git and OpenSSH client
@ -41,7 +41,7 @@ apk --no-cache add git openssh-client
ssh-keygen -t ecdsa ssh-keygen -t ecdsa
``` ```
Assign the key to your GitLab account Assign the newly generated key to your GitLab account
``` ```
# Clone the repository # Clone the repository
@ -51,7 +51,12 @@ git clone --recurse-submodules ssh://git@gitlab.dasm.cz:2222/Spotter-Cluster/Spo
Spotter-Cluster/zz-build/install-toolchain.sh Spotter-Cluster/zz-build/install-toolchain.sh
``` ```
After the script finishes, it is possible to connect via SSH as the toolchain sets up also *openssh-server*. After the script finishes, it is possible to connect via SSH (provided you have personal key in `authorized_keys`) as the toolchain sets up also *openssh-server*. The serial connection will work only until disconnected. If it should work indefinitely, run
```
sed -i 's/ttyS0::once/ttyS0::respawn/' /etc/inittab
kill -1 1
```
### Building the packages ### Building the packages
There are 3 distinct packaging systems. There are 3 distinct packaging systems.

View File

@ -7,7 +7,7 @@
# Set up getty # Set up getty
tty1::respawn:/sbin/getty -n -l /sbin/vmtty 38400 tty1 tty1::respawn:/sbin/getty -n -l /sbin/vmtty 38400 tty1
ttyS0::respawn:/sbin/getty -L 115200 ttyS0 xterm ttyS0::once:/sbin/getty -L 115200 ttyS0 xterm
# Stuff to do for the 3-finger salute # Stuff to do for the 3-finger salute
::ctrlaltdel:/sbin/reboot ::ctrlaltdel:/sbin/reboot