diff options
author | Daniel Drake <dsd@laptop.org> | 2012-05-09 14:54:50 (GMT) |
---|---|---|
committer | Daniel Drake <dsd@laptop.org> | 2012-05-09 14:54:50 (GMT) |
commit | 402998161de65f33a3a0d1db4b05630fdda20d59 (patch) | |
tree | 54ffe7cbf9d4a09317de384f50867703e6f6f324 | |
parent | 2451409d872e6813404326ff750d5ad068b8c43d (diff) |
Enable serial console in runin.target
Needed to restore serial console in the new runin which has been
ported to systemd. Pointed out and tested by James Cameron.
-rw-r--r-- | modules/xo1_5/kspost.50.xo15-tweaks.inc | 5 | ||||
-rw-r--r-- | modules/xo1_75/kspost.50.xo1_75-tweaks.inc | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/modules/xo1_5/kspost.50.xo15-tweaks.inc b/modules/xo1_5/kspost.50.xo15-tweaks.inc index cb50885..cffd9c6 100644 --- a/modules/xo1_5/kspost.50.xo15-tweaks.inc +++ b/modules/xo1_5/kspost.50.xo15-tweaks.inc @@ -1,3 +1,8 @@ # enable serial console on ttyS0 ln -sf /lib/systemd/system/serial-getty@.service \ /etc/systemd/system/getty.target.wants/serial-getty@ttyS0.service + +# enable serial console for runin too +mkdir -p /etc/systemd/system/runin.target.wants +ln -sf /lib/systemd/system/serial-getty@.service \ + /etc/systemd/system/runin.target.wants/serial-getty@ttyS0.service diff --git a/modules/xo1_75/kspost.50.xo1_75-tweaks.inc b/modules/xo1_75/kspost.50.xo1_75-tweaks.inc index ae5e726..b253fea 100644 --- a/modules/xo1_75/kspost.50.xo1_75-tweaks.inc +++ b/modules/xo1_75/kspost.50.xo1_75-tweaks.inc @@ -1,3 +1,8 @@ # enable serial console on ttyS2 ln -sf /lib/systemd/system/serial-getty@.service \ /etc/systemd/system/getty.target.wants/serial-getty@ttyS2.service + +# enable serial console for runin too +mkdir -p /etc/systemd/system/runin.target.wants +ln -sf /lib/systemd/system/serial-getty@.service \ + /etc/systemd/system/runin.target.wants/serial-getty@ttyS2.service |