mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-19 21:41:05 +02:00
systemd: grant networkd access to set transient host name
This commit is contained in:
parent
c4a5c1f802
commit
9fe02d0460
@ -0,0 +1,6 @@
|
||||
polkit.addRule(function(action, subject) {
|
||||
if (action.id == "org.freedesktop.hostname1.set-hostname" &&
|
||||
subject.user == "systemd-network") {
|
||||
return polkit.Result.YES;
|
||||
}
|
||||
});
|
@ -383,6 +383,10 @@ multilib_src_install_all() {
|
||||
systemd_enable_service multi-user.target systemd-networkd.service
|
||||
systemd_enable_service multi-user.target systemd-resolved.service
|
||||
systemd_enable_service network-online.target systemd-networkd-wait-online.service
|
||||
|
||||
# Grant networkd access to set the transient host name
|
||||
insinto /usr/share/polkit-1/rules.d
|
||||
doins "${FILESDIR}"/99-org.freedesktop.hostname1.rules
|
||||
}
|
||||
|
||||
migrate_locale() {
|
Loading…
x
Reference in New Issue
Block a user