Browse Source

add openrc init system support to serial console element

Change-Id: Id58e53a592b5f4601b893ba6c828bad07942b07b
Signed-off-by: Matthew Thode <mthode@mthode.org>
changes/28/741028/2
Matthew Thode 4 weeks ago
parent
commit
2559933f8f
No known key found for this signature in database GPG Key ID: 64A37BEAAE19A4E8
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      diskimage_builder/elements/enable-serial-console/install.d/20-stty

+ 2
- 0
diskimage_builder/elements/enable-serial-console/install.d/20-stty View File

@@ -12,4 +12,6 @@ if [ "$DIB_INIT_SYSTEM" == "upstart" ]; then
install -m 0644 -o root -g root ${SCRIPTDIR}/ttySx.conf /etc/init/ttySx.conf
elif [ "$DIB_INIT_SYSTEM" == "systemd" ]; then
install -D -g root -o root -m 0644 ${SCRIPTDIR}/serial-console-udev.rules /etc/udev/rules.d/99-serial-console.rules
elif [ "$DIB_INIT_SYSTEM" == "openrc" ]; then
sed -r 's/^#(.*ttyS[0,1].*$)/\1/' -i /etc/inittab
fi

Loading…
Cancel
Save