-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
allow systemd-networkd to set hostname without polkit #22792
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks reasonable.
You'll need to add a USE flag description to metadata.xml.
0726ae7
to
a3c9613
Compare
Recommended GID only: 66 For gentoo/gentoo#22792 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
a3c9613
to
e261c03
Compare
Ok I seems to have covered all formalities around, including |
Pull request CI reportReport generated at: 2021-11-02 23:40 UTC There are existing issues already. Please look into the report to make sure none of them affect the packages in question: |
GID reserved in https://gitweb.gentoo.org/data/api.git/commit/?id=f677e12a26a5075d5dbd6cf7eb971afa6dba83e9 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
this will allow networkd/hostnamed to properly set hostname on systems without polkit. while it's possible to set hostname/fqdn manually already, with fallback workaround it will be possible to get hostnames from DHCP via networkd too without using polkit->spidermonkey->rust->llvm chain of deps. ideas and configs taken from yocto/oe https://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=3dc37c12c17d5bb6d4701a425a4f79f6e31784ee systemd/systemd#13501 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
e261c03
to
aa6fef2
Compare
tested as expected networkd can now set hostname. from system without workaround:
from system with workaround:
rebased just now. |
Pull request CI reportReport generated at: 2021-11-07 00:25 UTC There are existing issues already. Please look into the report to make sure none of them affect the packages in question: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
thanks for checking, merged. |
Is there any special reason for using a GID below 100 (other than none other being available)? |
No special reason. |
It doesn't work unless
|
@floppym as discussed on irc.
still WIP, not tested, just opening for visibility and initial feedback.
ofc it'll require a bit of keywording on dbus-broker, new GID assignement and flag masking and better comments, but later with that.
just drafting systemd change here.
not sure if it's ok to use
systemd_get_systemunitdir
here.