7e58968779
We use an element remove-serial-console in image elements. Renaming this element to match. Also renaming allows us to use the serial console in devtest runs. See - https://review.openstack.org/#/c/86272/ Change-Id: I8f1138f58d0046ccdeefa3decc45c36d95c6bf4b
12 lines
393 B
Bash
Executable File
12 lines
393 B
Bash
Executable File
#!/bin/bash
|
|
set -uex
|
|
set -o pipefail
|
|
SCRIPTDIR=$(dirname $0)
|
|
|
|
DIB_INIT_SYSTEM=$(dib-init-system)
|
|
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
|
|
fi
|