RedditPP Mascot

RedditPP

r/yocto • … • u/MrSurly

How to override /etc/motd?

I have a `base-files_%.bbappend`:

DESCRIPTION = "Customize fstab"

FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"

SRC_URI += " \ file://fstab \ file://motd \ " hostname = "mango" do_install:append(){ install -m 0644 "${WORKDIR}/fstab" "${D}${sysconfdir}/" install -d -m 0666 ${D}${sysconfdir}/mango install -m 0644 "${WORKDIR}/motd" "${D}${sysconfdir}/motd" }

This _works_. the hostname is changed. `/etc/fstab` is updated `/etc/mango` is created.

But the `/etc/motd` file is _not_ updated. It still shows the upstream motd

— 0