mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-08-19 07:18:23 +00:00
Merge pull request #2996 from ijc/init-no-spurious-tty-files
Avoid writing to tty devices which don't actually exist.
This commit is contained in:
commit
78e0305666
@ -6,7 +6,9 @@ if [ -f /etc/issue ]; then
|
||||
console=*)
|
||||
fulltty=${opt#console=}
|
||||
tty=${fulltty%,*}
|
||||
cat /etc/issue >> /dev/$tty
|
||||
if [ -c "/dev/$tty" ] ; then
|
||||
cat /etc/issue >> "/dev/$tty"
|
||||
fi
|
||||
esac
|
||||
done
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user