mirror of
https://git.yoctoproject.org/meta-security
synced 2026-01-11 15:00:34 +00:00
cryptmount: fix systemd service install
Default is to install the service in /usr/lib Signed-off-by: Armin Kuster <akuster808@gmail.com> -- [V2] Fix typo in subject
This commit is contained in:
@@ -22,6 +22,16 @@ PACKAGECONFIG[gcrypt] = "--with-libgcrypt, --without-libgcrypt, libgcrypt"
|
||||
PACKAGECONFIG[luks] = "--enable-luks, --disable-luks, cryptsetup"
|
||||
PACKAGECONFIG[nls] = "--enable-nls, --disable-nls, "
|
||||
|
||||
SYSTEMD_PACKAGES = "${PN}"
|
||||
SYSTEMD_SERVICE:${PN} = "cryptmount.service"
|
||||
|
||||
do_install:append () {
|
||||
if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then
|
||||
install -D -m 0644 ${S}/sysinit/cryptmount.service ${D}${systemd_system_unitdir}/cryptmount.service
|
||||
rm -fr ${D}/usr/lib
|
||||
fi
|
||||
}
|
||||
|
||||
FILES:${PN} += "${systemd_system_unitdir}"
|
||||
|
||||
RDEPENDS:${PN} = "libdevmapper"
|
||||
|
||||
Reference in New Issue
Block a user