diff options
author | Daniel Drake <dsd@laptop.org> | 2012-05-09 14:54:50 (GMT) |
---|---|---|
committer | Daniel Drake <dsd@laptop.org> | 2012-05-15 22:34:14 (GMT) |
commit | 18dca5f13577c4c87507894ecf160d19a8d37cf7 (patch) | |
tree | 050348faa6d583e4ac488e290e16ac900533f20a | |
parent | 066d1752e64d1fca0b2e5e6fc1a3c7bf0ed83351 (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..b83d40e 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..6d435c9 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 |