# File in the base-files subdirectory of this recipe should overwrite the
# same file in OE-Core
FILESEXTRAPATHS:prepend := "${THISDIR}/base-files:"

BASEFILESISSUEINSTALL = "do_install_coreos_basefilesissue"

do_install_coreos_basefilesissue() {
	install -m 644 ${WORKDIR}/issue*  ${D}${sysconfdir}
	
    printf "${DISTRO_NAME} " >> ${D}${sysconfdir}/issue
	printf "${DISTRO_NAME} " >> ${D}${sysconfdir}/issue.net

	printf "${DISTRO_VERSION} " >> ${D}${sysconfdir}/issue
	printf "${DISTRO_VERSION} " >> ${D}${sysconfdir}/issue.net
	
	printf "${COREOS_METADATA_BRANCH} " >> ${D}${sysconfdir}/issue
	printf "${COREOS_METADATA_BRANCH} " >> ${D}${sysconfdir}/issue.net

	printf "${COREOS_METADATA_REVISION} " >> ${D}${sysconfdir}/issue
	printf "${COREOS_METADATA_REVISION} " >> ${D}${sysconfdir}/issue.net

    printf "\\\n \\\l\n" >> ${D}${sysconfdir}/issue
    echo >> ${D}${sysconfdir}/issue
	echo "%h"    >> ${D}${sysconfdir}/issue.net
	echo >> ${D}${sysconfdir}/issue.net
}
