Lennart Poettering
a122502077
firstboot: add option to turn off welcome text display
2020-07-07 11:20:42 +02:00
Lennart Poettering
3ff9fa591e
firstboot: add --image= switch
...
This is like --root=, but takes an image file path or device node path
and dissects the image directly, mounting it internally.
2020-07-07 11:20:42 +02:00
Lennart Poettering
827ea52125
mount-util: use UMOUNT_NOFOLLOW in recursive umounter
...
When we only want to unmount mount points below some path then it is
against our interest to follow symlinks. Hence don't.
2020-07-07 11:20:42 +02:00
Lennart Poettering
e49ee28522
mount-util: add destructor helper that umounts + rmdirs a path
2020-07-07 11:20:42 +02:00
Lennart Poettering
e2ec9c4d3a
namespace-util: introduce helper for combining unshare() + MS_SLAVE remount
...
We have multiple places we do these two non-trivial operations together,
let's introduce a unified helper for doing both at once.
2020-07-07 11:20:42 +02:00
Luca Boccassi
cda667722c
core: refresh unit cache when building a transaction if UNIT_NOT_FOUND
...
When a command asks to load a unit directly and it is in state
UNIT_NOT_FOUND, and the cache is outdated, we refresh it and
attempto to load again.
Use the same logic when building up a transaction and a dependency in
UNIT_NOT_FOUND state is encountered.
Update the unit test to exercise this code path.
2020-07-07 10:09:24 +02:00
Zbigniew Jędrzejewski-Szmek
77ecc1aaa5
Merge pull request #16380 from yuwata/network-dhcp6-update-prefix-route
...
Network: update acquired dhcp6 prefix routes
2020-07-07 09:05:08 +02:00
Zbigniew Jędrzejewski-Szmek
9389a271b7
Merge pull request #16381 from yuwata/dhcp4-renewing
...
dhcp4: fixes around renewing address
2020-07-07 08:59:35 +02:00
Zbigniew Jędrzejewski-Szmek
a240147bdc
Merge pull request #16383 from yuwata/network-dhcp6-radv-update-prefix
...
network: do not restart radv engine when adding prefix
2020-07-07 08:53:31 +02:00
Yu Watanabe
58e6c62191
network: fix memleak
...
If init() is failed, the allocated memory was leaked.
2020-07-07 08:23:17 +02:00
Yu Watanabe
1d596fdec2
network: do not restart radv engine when adding prefix
...
Replaces d469cea3bd
.
2020-07-07 11:20:35 +09:00
Yu Watanabe
8fc2a5dff4
network: fix indentation
2020-07-07 11:18:28 +09:00
Yu Watanabe
290696e512
Revert "network: Don't send RA with zero router lifetime when restarting radv"
...
This reverts commit d469cea3bd
.
2020-07-07 11:06:08 +09:00
Michael Marley
d469cea3bd
network: Don't send RA with zero router lifetime when restarting radv
...
While investigating https://github.com/systemd/systemd/issues/16356 , I
discovered that networkd stops the radv service before adding or updating
prefixes and then starts it again. This causes networkd to send an RA with
a router lifetime of zero, causing the routes to flap on systems receiving
the RA for a fraction of a second before radv is started again and proper
RAs are sent. That has the potential to cause issues with latency-sensitive
traffic like gaming or VoIP. This patch adds a boolean argument to the
sd_radv_stop() function to control this behavior. The zero lifetime RA is
still sent whenever radv is actually being stopped, but when it is being
restarted for a prefix update (from networkd-dhcp6.c), the final RA is no
longer sent to avoid the route flapping.
2020-07-07 10:49:25 +09:00
Yu Watanabe
921693a0f3
dhcp4: do not try to renew address when client has no lease
2020-07-07 10:18:58 +09:00
Yu Watanabe
ceaec54a3c
dhcp4: do not renew address if client is not running yet
2020-07-07 10:18:22 +09:00
Yu Watanabe
f050c94df0
network: always update acquired prefix route
...
Otherwise, routes become lifetime 0.
Fixes #16356 .
2020-07-07 09:20:44 +09:00
Yu Watanabe
1419ff0401
network: decrease indentation level
2020-07-07 09:14:21 +09:00
Yu Watanabe
cecd68c70f
network: fix indentation
2020-07-07 08:47:38 +09:00
Yu Watanabe
c82012605b
Merge pull request #16374 from keszybz/docs-and-networkd
...
Docs and networkd
2020-07-07 08:29:56 +09:00
Susant Sahani
98ebef62c7
DHCPv4: client add support for DHCP server allow list
2020-07-06 22:28:54 +02:00
Lennart Poettering
b3077c47a8
Merge pull request #16344 from keszybz/update-utmp-erofs
...
Make update-utmp not fail if it only fails to write wtmp records
2020-07-06 17:52:17 +02:00
Zbigniew Jędrzejewski-Szmek
5544cd3199
Merge pull request #16373 from JackFangXN/master
...
userdbctl homectl use table_log_add_error()
2020-07-06 17:14:07 +02:00
Frantisek Sumsal
9a61e8fca2
unit-name: fix a potential memory leak
...
Also, add a test which verifies the issue is indeed gone.
Fixes: CID#1429014
Followup to: ab19db01ae
2020-07-06 17:13:37 +02:00
Zbigniew Jędrzejewski-Szmek
1f68f77292
networkd: we should not loop when extract_first_word() fails
...
While at it, define iterator in the loop to reduce the indentation a bit.
2020-07-06 16:32:34 +02:00
Zbigniew Jędrzejewski-Szmek
b37e4d9c87
Merge pull request #16370 from keszybz/tree-wide-spelling
...
Assorted spelling, markup, and grammar fixes
2020-07-06 15:57:47 +02:00
Vito Caputo
e26538dd04
network: tc: fix n_prio bounds check
...
Looks like a simple copy and paste error
Fixes https://github.com/systemd/systemd/issues/16367
2020-07-06 15:52:17 +02:00
fangxiuning
f987a261b4
userdbctl homectl use table_log_add_error()
...
Signed-off-by: fangxiuning <fangxiuning123@126.com>
2020-07-06 21:32:22 +08:00
Zbigniew Jędrzejewski-Szmek
f04a98e13f
Fix two typos found by codespell
2020-07-06 15:09:23 +02:00
Zbigniew Jędrzejewski-Szmek
e9dd698407
tree-wide: fixes for assorted grammar and spelling issues
...
Fixes #16363 . Also includes some changes where I generalized the pattern.
2020-07-06 11:29:05 +02:00
Yu Watanabe
c5fbdebec6
Merge pull request #16287 from yuwata/udevadm-info-attribute-walk
...
udevadm: make --attribute-walk show subdir attributes
2020-07-06 14:47:51 +09:00
Zbigniew Jędrzejewski-Szmek
ca1d199b48
update-utmp: do not fail on EROFS
...
Right now systemd-update-utmp.service would fail on read-only /var because
it was not able to write the wtmp record. But it still writes the utmp
record just fine, so runtime information is OK. I don't think we need to
make too much fuss about not being able to save wtmp info.
2020-07-05 12:44:35 +02:00
Zbigniew Jędrzejewski-Szmek
c2a9909377
Define _cleanup_ helper for setutxent()+endutxent()
2020-07-05 12:16:01 +02:00
Zbigniew Jędrzejewski-Szmek
21c7fe6d12
sd-device: be more defensive in FOREACH_DEVICE_SYSATTR
...
Follow-up for fadcc12229
.
2020-07-05 10:55:18 +02:00
Dan Callaghan
2fadbb4535
core: set private section name for automount units
...
Because this was left unset, the unit_write_setting() function was
refusing to write out the automount-specific TimeoutIdleSec= and
DirectoryMode= settings when creating transient automount units.
Set it to the proper value in line with other unit types.
2020-07-04 18:48:36 +02:00
Zbigniew Jędrzejewski-Szmek
071be2fa9f
Merge pull request #15442 from poettering/fido2
...
add fido2 authentication support to homed
2020-07-03 17:27:15 +02:00
Yu Watanabe
21df146501
udevadm: sort entries in `udevadm info -a` by attribute name
2020-07-03 22:21:44 +09:00
Yu Watanabe
fadcc12229
sd-device: make FOREACH_DEVICE_SYSATTR() list attributes in subdirectories
...
Then, `udevadm info -a` can show subdir attributes.
Closes #12191 .
2020-07-03 22:21:44 +09:00
gzjsgdsb
33d943d168
initialize arg_clock_usec
2020-07-03 14:52:20 +02:00
Zbigniew Jędrzejewski-Szmek
272ac70a21
various daemons: emit Stopping... notification before destructing the manager object
...
This is mostly cosmetic, but let's reorder the destructors so that
we do the final sd_notify() call before we run the destructor for
the manager object.
2020-07-02 17:12:23 +02:00
Zbigniew Jędrzejewski-Szmek
cc090ca7fe
initctl: use _cleanup_ and run()
2020-07-02 17:12:23 +02:00
Zbigniew Jędrzejewski-Szmek
e9d9d50cef
initctl,update-utmp: define iterator variable in loop
2020-07-02 17:12:23 +02:00
Zbigniew Jędrzejewski-Szmek
bc9d1dbfc8
update-utmp,initctl: drop ppid check
...
Such checks make debugging harder but serve no useful purpose otherwise.
We got rid of all the checks for root, let's kill those too.
2020-07-02 17:12:23 +02:00
Yu Watanabe
c03ef420fa
network: tc: rename several settings which take size in bytes
2020-07-02 16:51:11 +02:00
Zbigniew Jędrzejewski-Szmek
cc832f9772
Merge pull request #16338 from keszybz/spelling2
...
Tree-wide spelling fixes
2020-07-02 15:10:27 +02:00
Zbigniew Jędrzejewski-Szmek
63b7e7b4ba
Merge pull request #16336 from yuwata/ifindex-cleanups
...
tiny cleanups related to ifindex
2020-07-02 15:08:41 +02:00
Yu Watanabe
1447dc625a
Merge pull request #16219 from ssahani/network-sr-iov
...
network: Introduce SR-IOV
2020-07-02 20:24:13 +09:00
Zbigniew Jędrzejewski-Szmek
52e085af82
tree-wide: "unparseable" → "unparsable"
...
"unparsable" is the more common spelling. We already pick "movable" over
"moveable". Let's do the same with this pair.
2020-07-02 09:58:23 +02:00
Yu Watanabe
13adf35343
resolve: use appropriate type
2020-07-02 16:58:06 +09:00
Yu Watanabe
5e958e1d6c
util: use setsockopt_int() at one more place
2020-07-02 16:58:06 +09:00