Work around "Input/output error" opening /dev/ttyS0
E.g. http://hydra.nixos.org/build/5541847 This is a random occurence, maybe due to a race with something else. So just retry until it works.
This commit is contained in:
parent
71a197bc6e
commit
90148d6fd1
@ -22,7 +22,8 @@ let kernel = config.boot.kernelPackages.kernel; in
|
|||||||
export DISPLAY=:0.0
|
export DISPLAY=:0.0
|
||||||
source /etc/profile
|
source /etc/profile
|
||||||
cd /tmp
|
cd /tmp
|
||||||
exec < /dev/hvc0 > /dev/hvc0 2> /dev/ttyS0
|
exec < /dev/hvc0 > /dev/hvc0
|
||||||
|
while ! exec 2> /dev/ttyS0; do sleep 0.1; done
|
||||||
echo "connecting to host..." >&2
|
echo "connecting to host..." >&2
|
||||||
stty -F /dev/hvc0 raw -echo # prevent nl -> cr/nl conversion
|
stty -F /dev/hvc0 raw -echo # prevent nl -> cr/nl conversion
|
||||||
echo
|
echo
|
||||||
|
Loading…
Reference in New Issue
Block a user