mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-10 16:40:03 +00:00
sblim-sfcb: do not use 'exit 1' to postpone to first boot
Since `939f7f1 meta/lib/oe/rootfs.py: do not execute defer_to_first_boot when processing postinst_intercept hooks' applied in oe-core, use defer_to_first_boot rather than `exit 1' to postpone to first boot Remove duplicated `systemctl enable', it is done in systemd.bbclass Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
@@ -68,14 +68,8 @@ do_install() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pkg_postinst_${PN} () {
|
pkg_postinst_${PN} () {
|
||||||
OPTS=""
|
|
||||||
|
|
||||||
if [ x"$D" != "x" ]; then
|
if [ x"$D" != "x" ]; then
|
||||||
OPTS="--root=$D"
|
$INTERCEPT_DIR/postinst_intercept delay_to_first_boot ${PKG} mlprefix=${MLPREFIX}
|
||||||
if type systemctl >/dev/null 2>/dev/null; then
|
|
||||||
systemctl $OPTS ${SYSTEMD_AUTO_ENABLE} ${SYSTEMD_SERVICE}
|
|
||||||
fi
|
|
||||||
exit 1
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
${datadir}/sfcb/genSslCert.sh ${sysconfdir}/sfcb
|
${datadir}/sfcb/genSslCert.sh ${sysconfdir}/sfcb
|
||||||
|
|||||||
Reference in New Issue
Block a user