aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-core/systemd/systemd-serialgetty.bbappend
blob: 24ce19a7c522fe283c87cce7e685424e14c5f2b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
INSTALLER_SERIAL ??= "1"
FILESEXTRAPATHS_prepend_anaconda := "${@bb.utils.contains('INSTALLER_SERIAL', '1', '${THISDIR}/files:', '', d)}"
SRC_URI_append_anaconda = " \
    ${@bb.utils.contains('INSTALLER_SERIAL', '1', 'file://serial-screen-anaconda.sh', '', d)} \
"

do_install_append_anaconda() {
	if [ "${INSTALLER_SERIAL}" = "1" ]; then
		install -d ${D}${sysconfdir}/profile.d
		install -m 644 ${WORKDIR}/serial-screen-anaconda.sh ${D}${sysconfdir}/profile.d/

		sed -i -e 's,@ROOT_HOME@,${ROOT_HOME},g' ${D}${systemd_unitdir}/system/serial-getty@.service
	fi
}