mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-04 02:31:27 +00:00
lvm2: do not install systemd units/initscripts when building native SDK tools
Nothing picks them up, so the build fails. Required to be able to build native tools like systemd-analyze. Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
@@ -17,13 +17,16 @@ do_install:append() {
|
|||||||
install -d ${D}${sysconfdir}/lvm
|
install -d ${D}${sysconfdir}/lvm
|
||||||
install -m 0644 ${WORKDIR}/lvm.conf ${D}${sysconfdir}/lvm/lvm.conf
|
install -m 0644 ${WORKDIR}/lvm.conf ${D}${sysconfdir}/lvm/lvm.conf
|
||||||
sed -i -e 's:@libdir@:${libdir}:g' ${D}${sysconfdir}/lvm/lvm.conf
|
sed -i -e 's:@libdir@:${libdir}:g' ${D}${sysconfdir}/lvm/lvm.conf
|
||||||
if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then
|
# We don't want init scripts/systemd units for native SDK utilities
|
||||||
oe_runmake 'DESTDIR=${D}' install install_systemd_units
|
if [ "${PN}" != "nativesdk-lvm2" ]; then
|
||||||
sed -i -e 's:/usr/bin/true:${base_bindir}/true:g' ${D}${systemd_system_unitdir}/blk-availability.service
|
if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then
|
||||||
else
|
oe_runmake 'DESTDIR=${D}' install install_systemd_units
|
||||||
oe_runmake 'DESTDIR=${D}' install install_initscripts
|
sed -i -e 's:/usr/bin/true:${base_bindir}/true:g' ${D}${systemd_system_unitdir}/blk-availability.service
|
||||||
mv ${D}${sysconfdir}/rc.d/init.d ${D}${sysconfdir}/init.d
|
else
|
||||||
rm -rf ${D}${sysconfdir}/rc.d
|
oe_runmake 'DESTDIR=${D}' install install_initscripts
|
||||||
|
mv ${D}${sysconfdir}/rc.d/init.d ${D}${sysconfdir}/init.d
|
||||||
|
rm -rf ${D}${sysconfdir}/rc.d
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user