Zbigniew Jędrzejewski-Szmek [Thu, 23 Apr 2020 07:10:14 +0000 (09:10 +0200)]
Merge pull request #15530 from ssahani/lpr-dhcpv4-option-9
network: add support to DHCPv4 server/client option 9 LPR
Daan De Meyer [Wed, 22 Apr 2020 17:25:18 +0000 (19:25 +0200)]
sd-bus: Add sd_bus_message_get_error/errno docs
Daan De Meyer [Wed, 22 Apr 2020 15:49:27 +0000 (17:49 +0200)]
sd-bus: Add sd_bus_get/set_allow_interactive_authorization docs
Zbigniew Jędrzejewski-Szmek [Thu, 23 Apr 2020 06:51:58 +0000 (08:51 +0200)]
Merge pull request #15546 from poettering/pid1-serialize-comand-fix
core: make sure to restore the control command id, too
Zbigniew Jędrzejewski-Szmek [Thu, 23 Apr 2020 06:01:46 +0000 (08:01 +0200)]
Merge pull request #15516 from poettering/nspawn-resolv-conf
beef up --resolv-conf= options of systemd-nspawn
Lennart Poettering [Wed, 22 Apr 2020 17:06:59 +0000 (19:06 +0200)]
nspawn: some minor modernizations
Niklas Hambüchen [Thu, 23 Apr 2020 00:26:32 +0000 (02:26 +0200)]
man: Fix typo "multiplied with" -> "multiplied by"
Daan De Meyer [Wed, 22 Apr 2020 15:24:36 +0000 (17:24 +0200)]
sd-bus: Add sd_bus_message_at_end docs
Zbigniew Jędrzejewski-Szmek [Wed, 22 Apr 2020 21:38:37 +0000 (23:38 +0200)]
Merge pull request #15517 from DaanDeMeyer/sd-bus-monitor-docs
sd-bus: Add sd_bus_set/is_monitor docs
Zbigniew Jędrzejewski-Szmek [Wed, 22 Apr 2020 21:30:09 +0000 (23:30 +0200)]
Merge pull request #15507 from poettering/bus-log-api
add generic bus interface for setting log level that can be implemented by any daemon
Lennart Poettering [Wed, 22 Apr 2020 19:52:22 +0000 (21:52 +0200)]
core: make sure we don't get confused when setting TERM for a tty fd
Fixes: #15344
Lennart Poettering [Wed, 22 Apr 2020 14:42:38 +0000 (16:42 +0200)]
man: document that VirtualEthernetExtra= has nothing to do with Bridge=
Fixes: #15402
Lennart Poettering [Wed, 22 Apr 2020 18:34:02 +0000 (20:34 +0200)]
core: make sure to restore the control command id, too
Fixes: #15356
Lennart Poettering [Wed, 22 Apr 2020 18:33:57 +0000 (20:33 +0200)]
core: some minor clean-ups/modernizations
Lennart Poettering [Tue, 21 Apr 2020 16:56:30 +0000 (18:56 +0200)]
man: document the new --resolv-conf= options
Lennart Poettering [Tue, 21 Apr 2020 16:33:23 +0000 (18:33 +0200)]
nspawn: beef up --resolve-conf= modes
Let's add flavours for copying stub/uplink resolv.conf versions.
Let's add a more brutal "replace" mode, where we'll replace any existing
destination file.
Let's also change what "auto" means: instead of copying the static file,
let's use the stub file, so that DNS search info is copied over.
Fixes: #15340
Lennart Poettering [Tue, 21 Apr 2020 16:32:49 +0000 (18:32 +0200)]
resolve: move resolv.conf path definitions to shared header
That way we can use it from nspawn.
Susant Sahani [Wed, 22 Apr 2020 12:50:27 +0000 (14:50 +0200)]
networkctl: Add support to display LPR servers
Susant Sahani [Wed, 22 Apr 2020 12:49:52 +0000 (14:49 +0200)]
sd-network: Add support to retrive LPR servers
Susant Sahani [Wed, 22 Apr 2020 12:49:27 +0000 (14:49 +0200)]
network: Add support send and receive LPR servers
Susant Sahani [Wed, 22 Apr 2020 12:48:11 +0000 (14:48 +0200)]
sd-network: DHCPv4 Add support to send and receive LPR servers.
Zbigniew Jędrzejewski-Szmek [Wed, 22 Apr 2020 12:24:07 +0000 (14:24 +0200)]
Merge pull request #15526 from bluca/start_stop_wait_debug
Add debug log when a job in the activation queue is not runnable
Luca Boccassi [Tue, 21 Apr 2020 16:28:01 +0000 (17:28 +0100)]
core: add debug log when a job in the activation queue is not runnable
When a job is skipped due its dependencies not being ready, log
a debug message saying what is holding it back.
This was very useful with transient units timing out to figure
out where the problem was.
Zbigniew Jędrzejewski-Szmek [Wed, 22 Apr 2020 07:43:54 +0000 (09:43 +0200)]
Merge pull request #15519 from DaanDeMeyer/sd-bus-message-read-strv-docs
Frantisek Sumsal [Tue, 21 Apr 2020 11:18:36 +0000 (13:18 +0200)]
test: correctly clean up test artifacts
Remove the artifact files indicating test result (testok, failed, and
skipped) just before running the test so we always get the latest and
most relevant result instead of incorrectly consuming previous results.
Discovered in https://github.com/systemd/systemd/pull/15378#issuecomment-
616801873
Balaji Punnuru [Thu, 9 Apr 2020 16:21:49 +0000 (12:21 -0400)]
util: return the correct correct wd from inotify helpers
We need to propagate the acquired watch descriptors because our callers
are counting on them.
[Lennart: this is split out of #15381 and simplified]
Lennart Poettering [Tue, 21 Apr 2020 15:21:38 +0000 (17:21 +0200)]
core: minor error code handling fixes
Daan De Meyer [Wed, 22 Apr 2020 06:00:25 +0000 (08:00 +0200)]
sd-bus: Clarify sd_bus_list_names results ownership
Daan De Meyer [Tue, 21 Apr 2020 18:23:30 +0000 (20:23 +0200)]
sd-bus: Add sd_bus_message_read_strv docs
Zbigniew Jędrzejewski-Szmek [Wed, 22 Apr 2020 06:41:38 +0000 (08:41 +0200)]
Merge pull request #15520 from mrc0mmand/various-codebase-improvements
tree-wide: various codebase improvements
Zbigniew Jędrzejewski-Szmek [Wed, 22 Apr 2020 06:39:46 +0000 (08:39 +0200)]
Merge pull request #15443 from ddstreet/use_gateway_backwards_compatible
Make UseGateway= default backwards compatible, and fix UseGateway/RoutesToDNS
Dan Streetman [Wed, 15 Apr 2020 22:30:33 +0000 (18:30 -0400)]
test: verify RoutesToDNS= is independent of UseGateway=
Frantisek Sumsal [Tue, 21 Apr 2020 18:46:53 +0000 (20:46 +0200)]
tree-wide: fix spelling errors
Based on a report from Fossies.org using Codespell.
Followup to #15436
Frantisek Sumsal [Tue, 21 Apr 2020 18:23:33 +0000 (20:23 +0200)]
tree-wide: formatting tweaks reported by Coccinelle
Dan Streetman [Wed, 15 Apr 2020 22:05:14 +0000 (18:05 -0400)]
network: honor SetDNSRoutes= even if UseGateway=False
Dan Streetman [Wed, 15 Apr 2020 20:26:20 +0000 (16:26 -0400)]
test: modify/add tests for UseRoutes= and UseGateway= configuration
The last commit changed the UseGateway= default to the value of UseRoutes=
so the tests need to check for all combinations of the two parameters.
Dan Streetman [Wed, 15 Apr 2020 18:40:21 +0000 (14:40 -0400)]
network: change UseGateway= default to UseRoutes= setting
Anyone previously using the UseRoutes=false parameter expected their
dhcp4-provided gateway route to be ignored, as well. However, with
the introduction of the UseGateway= parameter, this is no longer true.
In order to keep backwards compatibility, this sets the UseGateway=
default value to whatever UseRoutes= has been set to.
Daan De Meyer [Tue, 21 Apr 2020 18:06:40 +0000 (20:06 +0200)]
sd-bus: Add sd_bus_list_names docs
Frantisek Sumsal [Sun, 19 Apr 2020 14:20:03 +0000 (16:20 +0200)]
test: drop Disk (Size|Free|Floor|Ceiling) fields prior comparing
The disk attributes can take some time to update on certain filesystems,
so let's strip them from inputs of both `homectl` and `userdbctl` before
comparing them to avoid unexpected fails.
Also, switch from `cmp` to `diff` to make a potential test fail a bit more
debuggable.
Fixes: #14755
Lennart Poettering [Tue, 21 Apr 2020 19:23:01 +0000 (21:23 +0200)]
update TODO
Daan De Meyer [Tue, 21 Apr 2020 17:33:25 +0000 (19:33 +0200)]
sd-bus: Add sd_bus_set/is_monitor docs
Daan De Meyer [Tue, 21 Apr 2020 17:08:25 +0000 (19:08 +0200)]
sd-bus: Rewrap sd_bus_set_server docs at 109 columns
Luca Boccassi [Tue, 21 Apr 2020 16:23:21 +0000 (17:23 +0100)]
core: add log_get_max_level check optimization in log_unit_full
Just as log_full already does, check if the log level would result in
logging immediately in the macro in order to avoid doing
unnecessary work that adds up in hot spots.
Lennart Poettering [Tue, 21 Apr 2020 08:43:32 +0000 (10:43 +0200)]
core: implement generic log control API in PID1 too
It has slightly different setters in place, so it needs some special
love, which is easy enough though.
Lennart Poettering [Tue, 21 Apr 2020 08:36:20 +0000 (10:36 +0200)]
core: use generic implementations of log level/target bus propertier getters
The setters are slightly different, hence keep them as they are for now.
Lennart Poettering [Tue, 21 Apr 2020 08:34:05 +0000 (10:34 +0200)]
tree-wide: implement new log control API dbus interface in all our daemons
Lennart Poettering [Tue, 21 Apr 2020 08:27:23 +0000 (10:27 +0200)]
resolved: replace private log level control API with generic one
The property was just added, let's replace it again. Given that it was
never released this should not be an API breakage.
Lennart Poettering [Tue, 21 Apr 2020 08:25:50 +0000 (10:25 +0200)]
log-control-api: add generic D-Bus interface for querying/setting log level/target
Let's define a new, generic bus interface that any daemon can implement
for querying/setting the log level.
We can turn this into something more powerful later on, but for now,
only expose three properties: the log level, log target and the syslog
identifier (with the former two being writable).
This is supposed to be generic, so that it can be implemented by 3rd
party daemons too, eventually.
Lennart Poettering [Tue, 21 Apr 2020 11:04:39 +0000 (13:04 +0200)]
core: automatically add udev dependency for units using RootImage=
We use udev to wait for /dev/loopX devices to be fully proped hence we
need an implicit ordering dependency on it, for RootImage= to work
reliably in early boot, too.
Fixes: #14972
Zbigniew Jędrzejewski-Szmek [Tue, 21 Apr 2020 11:58:01 +0000 (13:58 +0200)]
Merge pull request #15508 from keszybz/add-dbus-entities-to-index
Add dbus entities to index
Lennart Poettering [Tue, 21 Apr 2020 11:37:55 +0000 (13:37 +0200)]
Merge pull request #15505 from keszybz/man-sd-hwdb-sd-journal
Document remaining sd-journal and sd-hwdb functions
Lennart Poettering [Tue, 21 Apr 2020 09:18:56 +0000 (11:18 +0200)]
man: document how to get the boot menu with zero time-out
Fixes: #15125
Zbigniew Jędrzejewski-Szmek [Tue, 21 Apr 2020 07:07:08 +0000 (09:07 +0200)]
man: add SD_HWDB_FOREACH_PROPERTY with an example
Zbigniew Jędrzejewski-Szmek [Mon, 20 Apr 2020 20:18:33 +0000 (22:18 +0200)]
man: add description of all the sd-hwdb funtions
Zbigniew Jędrzejewski-Szmek [Tue, 21 Apr 2020 08:29:09 +0000 (10:29 +0200)]
man: add markers to put all dbus entities in the directives index
Follow-up for
f92c8d1c67bcdeba097e3203d8aafe3a31230ada.
directives.index:
- This index contains 3398 entries in 19 sections, referring to 333 individual
+ This index contains 4316 entries in 19 sections, referring to 333 individual
Zbigniew Jędrzejewski-Szmek [Tue, 21 Apr 2020 08:55:25 +0000 (10:55 +0200)]
man: run systemd1(5) through the updater
For some reason I must've forgotten this page in
4fb222c4b2.
Zbigniew Jędrzejewski-Szmek [Tue, 21 Apr 2020 08:09:46 +0000 (10:09 +0200)]
Merge pull request #15476 from boucman/directive_dbus
Generate systemd.directive entries from dbus documentation
Lennart Poettering [Tue, 21 Apr 2020 07:34:21 +0000 (09:34 +0200)]
Merge pull request #15495 from keszybz/resolve-debugging-and-stub-handling
Resolve debugging and stub handling
Lennart Poettering [Tue, 21 Apr 2020 07:24:48 +0000 (09:24 +0200)]
Merge pull request #15314 from keszybz/network-server-access-functions
Define network server access functions
Zbigniew Jędrzejewski-Szmek [Tue, 21 Apr 2020 07:23:16 +0000 (09:23 +0200)]
Merge pull request #15502 from DaanDeMeyer/sd-bus-exit-on-disconnect-docs
sd-bus: Add sd_bus_get/set_exit_on_disconnect docs
Zbigniew Jędrzejewski-Szmek [Tue, 21 Apr 2020 07:16:29 +0000 (09:16 +0200)]
Merge pull request #15503 from DaanDeMeyer/sd-bus-get-docs
sd-bus: Add sd_bus_get_scope/tid/unique_name docs
Zbigniew Jędrzejewski-Szmek [Mon, 20 Apr 2020 18:51:12 +0000 (20:51 +0200)]
man: add sd_j_open_namespace as refname
This was forgotten in
241c8f67f65a1051068a1728daaca5bc49183c69.
Zbigniew Jędrzejewski-Szmek [Mon, 20 Apr 2020 18:47:34 +0000 (20:47 +0200)]
check-api-docs: sd_journal_open_container is deprecated
Zbigniew Jędrzejewski-Szmek [Mon, 20 Apr 2020 18:45:14 +0000 (20:45 +0200)]
man: document sd_journal_*_with_location
Daan De Meyer [Mon, 20 Apr 2020 17:57:25 +0000 (19:57 +0200)]
sd-bus: Rewrap sd_bus_set_close_on_exit + small fixes
Daan De Meyer [Mon, 20 Apr 2020 19:33:24 +0000 (21:33 +0200)]
sd-bus: Add sd_bus_get_scope/tid/unique_name docs
Daan De Meyer [Mon, 20 Apr 2020 19:39:07 +0000 (21:39 +0200)]
sd-bus: Rewrap sd_bus_set_description docs
Daan De Meyer [Mon, 20 Apr 2020 19:32:35 +0000 (21:32 +0200)]
sd-bus: sd_bus_get_fd docs typo fix
Jérémy Rosen [Sat, 18 Apr 2020 18:19:50 +0000 (20:19 +0200)]
update-dbus-docs: automatically add variablelist for introspected items
Add a <variablelist/> tag after every programlisting we auto-generate that
will be read by make-directive-index to cross-reference all dbus elements.
Daan De Meyer [Mon, 20 Apr 2020 18:59:27 +0000 (20:59 +0200)]
sd-bus: Rewrap sd_bus_get_fd docs
Daan De Meyer [Mon, 20 Apr 2020 17:57:09 +0000 (19:57 +0200)]
sd-bus: Small sd_bus_set_server doc fix
Daan De Meyer [Mon, 20 Apr 2020 17:55:22 +0000 (19:55 +0200)]
sd-bus: Add sd_bus_get/set_exit_on_disconnect docs
Daan De Meyer [Mon, 20 Apr 2020 16:38:38 +0000 (18:38 +0200)]
sd-bus: Add sd_bus_is_server + sd_bus_set/is_bus_client docs
Jérémy Rosen [Sat, 18 Apr 2020 17:48:13 +0000 (19:48 +0200)]
make-directive-index: allow variablelist to specify an element to index
This commit looks for a new "extra-ref" attribute in <variablelist>
If this attribute is specified, its content will be index as pointing to
the current man-page in systemd.directives
Jérémy Rosen [Tue, 14 Apr 2020 18:15:19 +0000 (20:15 +0200)]
make-directive-index: allow pages to specify the path to search
So far, make-directive-index would look for
./valistentry/term/varname for elements to add to the directive man page.
This commit allows to specify xpath= in the varlist directive to tell
the generator what to look for.
Daan De Meyer [Mon, 20 Apr 2020 15:30:15 +0000 (17:30 +0200)]
sd-bus: sd_bus_get_current_* docs fixes
Zbigniew Jędrzejewski-Szmek [Mon, 20 Apr 2020 13:22:18 +0000 (15:22 +0200)]
resolve: when the stub listener is disabled, symlink stub-resolv.conf to resolv.conf
When the stub listener is disabled, stub-resolv.conf is useless. Instead of
warning about this, let's just make stub-resolv.conf point to the private
resolv.conf file. (The original bug report asked for "mirroring", but I think
a symlink is nicer than a copy because it is easier to see that a redirection
was made.)
Fixes #14700.
Zbigniew Jędrzejewski-Szmek [Mon, 20 Apr 2020 12:27:44 +0000 (14:27 +0200)]
resolve: when writing of private resolv.confs fails, do not remove old copies
All callers ignore the return value.
This is almost entirely theoretical, since writing to /run is unlikely to
fail..., but the user is almost certainly better off keeping the old copy
around and having working dns resolution with an out-of-date dns server list
than having having a dangling /etc/resolv.conf symlink.
Zbigniew Jędrzejewski-Szmek [Mon, 20 Apr 2020 12:14:09 +0000 (14:14 +0200)]
resolved: include actual path in error message
An error with a full path is immediately clear. OTOH, a user might not be
familiar with concenpt like "private resolv.conf".
I opted to use %s-formatting for the path, because the code is much easier to
read this way. Any difference in t speed of execution is not important.
Zbigniew Jędrzejewski-Szmek [Mon, 20 Apr 2020 11:52:35 +0000 (13:52 +0200)]
resolved: return org.freedesktop.resolve1.DnsError.NXDOMAIN on LLMNR resolution failure
Fixes #14922.
Zbigniew Jędrzejewski-Szmek [Mon, 20 Apr 2020 10:41:49 +0000 (12:41 +0200)]
TODO: add a hypothetical
Zbigniew Jędrzejewski-Szmek [Mon, 20 Apr 2020 09:03:11 +0000 (11:03 +0200)]
man: add forgotten <para> tags around a paragaph in resolve1(5)
Zbigniew Jędrzejewski-Szmek [Mon, 20 Apr 2020 09:02:39 +0000 (11:02 +0200)]
resolve: allow setting the log level dynamically as in pid1
This is useful to raise the log level for a single transaction or a few,
without affecting other state of the resolved as a restart would.
The log level can only be set, I didn't bother with having the ability
to restore the original as in pid1.
Zbigniew Jędrzejewski-Szmek [Mon, 20 Apr 2020 13:32:14 +0000 (15:32 +0200)]
Merge pull request #15439 from keszybz/man-resolve
Fix formatting in in resolved.conf(5) and nss-resolve(8)
Zbigniew Jędrzejewski-Szmek [Mon, 20 Apr 2020 13:24:54 +0000 (15:24 +0200)]
Merge pull request #15491 from keszybz/resolvconf-compat
Two tweaks to the description of resolvconf compatibility
Zbigniew Jędrzejewski-Szmek [Mon, 20 Apr 2020 10:16:56 +0000 (12:16 +0200)]
resolved: fix minor confusion in comment
Suffixing != prefixing.
Zbigniew Jędrzejewski-Szmek [Mon, 20 Apr 2020 07:20:01 +0000 (09:20 +0200)]
man: use manpages.ubuntu.com for resolvconf(8) link
Add manpages.debian.org as a man citeref "project", so we can refer to man
pages hosted there. resolvconf(8) doesn't seem to appear on any of the ones we
currently have defined.
We are doing a trick, where our man page is installed as resolvconf(1), and
we refer the reader to resolvconf(8). This can be pretty confusing, so the
least we can do is to provide a non-broken symlink ;)
v2:
- link to manpages.d.o instead of manpages.ubuntu.com, because debian is the
upstream here, and because with debian we can use /unstable/ as the version,
and ubuntu doesn't seem to have any such shortcut, so the version would need
to be periodically updated.
Zbigniew Jędrzejewski-Szmek [Wed, 15 Apr 2020 17:52:47 +0000 (19:52 +0200)]
man: fix formatting in resolved.conf(5)
Zbigniew Jędrzejewski-Szmek [Wed, 15 Apr 2020 17:31:42 +0000 (19:31 +0200)]
man: reindent nss-resolve(8)
Zbigniew Jędrzejewski-Szmek [Mon, 20 Apr 2020 06:44:26 +0000 (08:44 +0200)]
Merge pull request #15480 from DaanDeMeyer/sd-bus-add-node-enumerator-docs
sd-bus: Add sd_bus_add_node_enumerator docs
Zbigniew Jędrzejewski-Szmek [Mon, 20 Apr 2020 06:42:59 +0000 (08:42 +0200)]
Merge pull request #15478 from DaanDeMeyer/dbus-api-docs-fixes
D-Bus api docs fixes
Daan De Meyer [Sun, 19 Apr 2020 20:06:38 +0000 (22:06 +0200)]
sd-bus: Add sd_bus_get_current_* docs
Daan De Meyer [Sun, 19 Apr 2020 18:32:54 +0000 (20:32 +0200)]
sd-bus: Add sd_bus_emit_* docs
Daan De Meyer [Mon, 20 Apr 2020 06:23:30 +0000 (08:23 +0200)]
sd-bus: Small sd_bus_add_object_manager docs fix
Daan De Meyer [Sun, 19 Apr 2020 13:08:42 +0000 (15:08 +0200)]
sd-bus: Add sd_bus_add_node_enumerator docs
Daan De Meyer [Sun, 19 Apr 2020 13:04:29 +0000 (15:04 +0200)]
sd-bus: sd_bus_add_object docs fixes
Zbigniew Jędrzejewski-Szmek [Sun, 19 Apr 2020 20:01:21 +0000 (22:01 +0200)]
man: add a note that resolvconf updates /etc/resolv.conf in specific circumstances
When someone knows how the whole ecosystem works, this is understandable.
But for someone coming from a system where resolvconf updates /etc/resolv.conf
directly, this can be rather surprising.
For https://bugzilla.redhat.com/show_bug.cgi?id=
1815605.
Daan De Meyer [Sun, 19 Apr 2020 19:33:14 +0000 (21:33 +0200)]
sd-bus: Add sd_bus_set_server, sd_bus_get_bus_id docs
Daan De Meyer [Sun, 19 Apr 2020 11:05:44 +0000 (13:05 +0200)]
D-Bus docs: systemd1 fixes
Daan De Meyer [Sun, 19 Apr 2020 15:08:06 +0000 (17:08 +0200)]
sd-bus: Add sd_bus_add_object_manager docs