Bug-AGL: SPEC-726
Change-Id: Id523051a2b94c2ac8997262e796b5558771b67b9
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Reviewed-on: https://gerrit.automotivelinux.org/gerrit/10043
Tested-by: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org>
ci-image-build: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org>
Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
pkg_postinst_${PN}() {
if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
for SYS in "system" "user";do
pkg_postinst_${PN}() {
if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
for SYS in "system" "user";do
- for DEST in "default.target.wants" ".";do
+ for DEST in "sockets.target.wants" "default.target.wants" ".";do
chgrp ${afm_name} $D${systemd_units_root}/${SYS}/${DEST};
done
done
chgrp ${afm_name} $D${systemd_units_root}/${SYS}/${DEST};
done
done
pkg_postinst_${PN}_smack() {
if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
for SYS in "system" "user";do
pkg_postinst_${PN}_smack() {
if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
for SYS in "system" "user";do
- for DEST in "default.target.wants" ".";do
+ for DEST in "sockets.target.wants" "default.target.wants" ".";do
chgrp ${afm_name} $D${systemd_units_root}/${SYS}/${DEST};
chsmack -a 'System::Shared' -t $D${systemd_units_root}/${SYS}/${DEST};
done
chgrp ${afm_name} $D${systemd_units_root}/${SYS}/${DEST};
chsmack -a 'System::Shared' -t $D${systemd_units_root}/${SYS}/${DEST};
done