[yocto] Can't replace login.defs with shadow-sysroot bbappend
Oliver Graute
oliver.graute at gmail.com
Fri Jul 29 04:53:54 PDT 2016
On 28/07/16, Zhenhua Luo wrote:
> Hi Oliver,
>
> The following line in shadow-sysroot.bb disables the final binary packages generation. You can try to add bbappend for shadow to do the customization.
>
> # don't create any packages
> # otherwise: dbus-dev depends on shadow-sysroot-dev which depends on shadow-sysroot
> # and this has another copy of /etc/login.defs already provided by shadow
> PACKAGES = ""
thx for this usefull note. It works for me with shadow_%.bbappend.
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
SRC_URI += "file://login.defs"
do_install_append() {
install -m 644 ${WORKDIR}/login.defs ${D}${sysconfdir}/login.defs
}
FILES_${PN} += "${sysconfdir}/login.defs"
Best regards,
Oliver
More information about the yocto
mailing list