mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-05-09 17:59:26 +00:00
lvm2: add --with-systemdsystemunitdir in configuration
Otherwise sed command for blk-availability.service may fail. It will look for the service file in a wrong location Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
committed by
Martin Jansa
parent
38ed53fcde
commit
9461b4ca6d
@@ -27,6 +27,7 @@ EXTRA_OECONF = "--with-user= \
|
||||
--enable-lvmetad \
|
||||
--with-udev-prefix= \
|
||||
--with-usrlibdir=${libdir} \
|
||||
--with-systemdsystemunitdir=${systemd_system_unitdir} \
|
||||
"
|
||||
|
||||
PACKAGECONFIG += "${@base_contains('DISTRO_FEATURES', 'selinux', 'selinux', '', d)}"
|
||||
@@ -41,7 +42,7 @@ do_install_append() {
|
||||
sed -i -e 's:@libdir@:${libdir}:g' ${D}${sysconfdir}/lvm/lvm.conf
|
||||
if ${@base_contains('DISTRO_FEATURES','systemd','true','false',d)}; then
|
||||
oe_runmake 'DESTDIR=${D}' install install_systemd_units
|
||||
sed -i -e 's:/usr/bin/true:${base_bindir}/true:g' ${D}${systemd_unitdir}/system/blk-availability.service
|
||||
sed -i -e 's:/usr/bin/true:${base_bindir}/true:g' ${D}${systemd_system_unitdir}/blk-availability.service
|
||||
else
|
||||
oe_runmake 'DESTDIR=${D}' install install_initscripts
|
||||
mv ${D}${sysconfdir}/rc.d/init.d ${D}${sysconfdir}/init.d
|
||||
|
||||
Reference in New Issue
Block a user