mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-24 23:21:17 +02:00
overlay coreos/config: Add Flatcar modifications for sys-auth/polkit
This commit is contained in:
parent
e5fd3268d5
commit
4d92ffafa8
16
sdk_container/src/third_party/coreos-overlay/coreos/config/env/sys-auth/polkit
vendored
Normal file
16
sdk_container/src/third_party/coreos-overlay/coreos/config/env/sys-auth/polkit
vendored
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
cros_post_src_install_polkit_flatcar_modifications() {
|
||||||
|
|
||||||
|
# create symlink for backward compatibility
|
||||||
|
dosym -r /usr/share/flatcar/etc/polkit-1/rules.d/50-default.rules /usr/share/polkit-1/rules.d/50-default.rules
|
||||||
|
insinto /usr/share/flatcar/etc/polkit-1/rules.d
|
||||||
|
newins - 50-default.rules
|
||||||
|
|
||||||
|
# add tmpfiles config for state directory
|
||||||
|
(
|
||||||
|
insopts -m 0644
|
||||||
|
insinto /usr/lib/tmpfiles.d
|
||||||
|
newins - polkit.conf <<'EOF'
|
||||||
|
d /var/lib/polkit-1 0700 polkitd polkitd - -
|
||||||
|
EOF
|
||||||
|
)
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user