mirror of
https://git.yoctoproject.org/poky
synced 2026-05-31 12:49:46 +00:00
systemd: use consistent indenting and coding style in do_install()
Make the polkit fixup etc at the end of do_install() more consistent with the rest of the function. Also indent do_install_ptest() with tabs instead of spaces to make do_install_ptest() consistent with do_install(). (From OE-Core rev: 7a188e646a7a713ec5eab73580de624dc61f2936) Signed-off-by: Andre McCurdy <armccurdy@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
974ee3d707
commit
da2e7e006d
@@ -219,7 +219,6 @@ do_install() {
|
|||||||
# 20:12 < mezcalero> koen: you have three options: a) run systemd-machine-id-setup at install time, b) have / read-only and an empty file there (for stateless) and c) boot with / writable
|
# 20:12 < mezcalero> koen: you have three options: a) run systemd-machine-id-setup at install time, b) have / read-only and an empty file there (for stateless) and c) boot with / writable
|
||||||
touch ${D}${sysconfdir}/machine-id
|
touch ${D}${sysconfdir}/machine-id
|
||||||
|
|
||||||
|
|
||||||
install -d ${D}${sysconfdir}/udev/rules.d/
|
install -d ${D}${sysconfdir}/udev/rules.d/
|
||||||
install -d ${D}${sysconfdir}/tmpfiles.d
|
install -d ${D}${sysconfdir}/tmpfiles.d
|
||||||
install -m 0644 ${WORKDIR}/*.rules ${D}${sysconfdir}/udev/rules.d/
|
install -m 0644 ${WORKDIR}/*.rules ${D}${sysconfdir}/udev/rules.d/
|
||||||
@@ -276,8 +275,8 @@ do_install() {
|
|||||||
install -Dm 0755 ${S}/src/systemctl/systemd-sysv-install.SKELETON ${D}${systemd_unitdir}/systemd-sysv-install
|
install -Dm 0755 ${S}/src/systemctl/systemd-sysv-install.SKELETON ${D}${systemd_unitdir}/systemd-sysv-install
|
||||||
|
|
||||||
# If polkit is setup fixup permissions and ownership
|
# If polkit is setup fixup permissions and ownership
|
||||||
if [ "${@bb.utils.contains('PACKAGECONFIG', 'polkit', 'polkit', '', d)}" = "polkit" ] ; then
|
if ${@bb.utils.contains('PACKAGECONFIG', 'polkit', 'true', 'false', d)}; then
|
||||||
if [ -d ${D}${datadir}/polkit-1/rules.d ] ; then
|
if [ -d ${D}${datadir}/polkit-1/rules.d ]; then
|
||||||
chmod 700 ${D}${datadir}/polkit-1/rules.d
|
chmod 700 ${D}${datadir}/polkit-1/rules.d
|
||||||
chown polkitd:root ${D}${datadir}/polkit-1/rules.d
|
chown polkitd:root ${D}${datadir}/polkit-1/rules.d
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user