mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-05-05 15:23:44 +00:00
Merge pull request #2207 from justincormack/getty-x
remove -x from getty script
This commit is contained in:
33
pkg/getty/etc/securetty
Normal file
33
pkg/getty/etc/securetty
Normal file
@@ -0,0 +1,33 @@
|
||||
console
|
||||
tty1
|
||||
tty2
|
||||
tty3
|
||||
tty4
|
||||
tty5
|
||||
tty6
|
||||
tty7
|
||||
tty8
|
||||
tty9
|
||||
tty10
|
||||
tty11
|
||||
|
||||
# UART serial ports
|
||||
ttyS0
|
||||
ttyS1
|
||||
ttyS2
|
||||
ttyS3
|
||||
|
||||
# IBM iSeries/pSeries virtual console, Xen
|
||||
hvc0
|
||||
hvc1
|
||||
|
||||
#IBM pSeries console ports
|
||||
hvsi0
|
||||
hvsi1
|
||||
|
||||
# ARM "AMBA" serial ports
|
||||
ttyAM0
|
||||
ttyAM1
|
||||
|
||||
# s390 and s390x ports in LPAR mode
|
||||
ttysclp0
|
||||
@@ -1,5 +1,4 @@
|
||||
#!/bin/sh
|
||||
set -x
|
||||
|
||||
infinite_loop() {
|
||||
while true; do
|
||||
@@ -50,13 +49,6 @@ if [ -f $ROOTSHADOW ]; then
|
||||
echo >> /etc/shadow
|
||||
fi
|
||||
|
||||
ROOTSTTY=/hostroot/etc/securetty
|
||||
if [ -f $ROOTSTTY ]; then
|
||||
cp $ROOTSTTY /etc/securetty
|
||||
# just in case someone forgot a newline
|
||||
echo >> /etc/securetty
|
||||
fi
|
||||
|
||||
for opt in $(cat /proc/cmdline); do
|
||||
case "$opt" in
|
||||
console=*)
|
||||
|
||||
Reference in New Issue
Block a user