Yu Watanabe [Wed, 10 Feb 2021 17:50:22 +0000 (02:50 +0900)]
bash-completion: coredumpctl: add --json and -n options
Frantisek Sumsal [Wed, 10 Feb 2021 09:16:09 +0000 (10:16 +0100)]
test: count call instructions as well
Binaries on the latest Arch Linux use `call` instructions instead of
`callq`, which breaks the ASan detection and eventually the image
building process (due to insufficient space).
Weblate (bot) [Wed, 10 Feb 2021 15:55:41 +0000 (16:55 +0100)]
Translations update from Weblate (#18537)
Co-authored-by: Göran Uddeborg <goeran@uddeborg.se>
Frantisek Sumsal [Wed, 10 Feb 2021 14:06:40 +0000 (15:06 +0100)]
ci: build on Fedora ELN as well
ELN builds with a slightly different content set and RHEL-like options,
which should, theoretically, help a bit with RHEL stuff.
Yu Watanabe [Wed, 10 Feb 2021 15:29:22 +0000 (00:29 +0900)]
Merge pull request #18506 from keszybz/fuzz-systemctl-parse-argv
Fuzzer for systemctl argline parsing
Lennart Poettering [Wed, 10 Feb 2021 14:58:56 +0000 (15:58 +0100)]
Merge pull request #18521 from poettering/coredumpctl-table
coredumpctl improvements (mostly about table formatting)
Lennart Poettering [Wed, 10 Feb 2021 13:11:44 +0000 (14:11 +0100)]
github: expressly ask for logs in github issue template
Apparently it's not obvious that logs are a good thing to provide, hence
let's explicitly ask for them.
Lennart Poettering [Wed, 10 Feb 2021 11:09:38 +0000 (12:09 +0100)]
clock-util: modernize settimeofday() timezone calls
Let's use structured initialization, and avoid the weird `tv_null`
indirection.
No changes in behaviour, just some clean-ups.
Luca Boccassi [Wed, 10 Feb 2021 11:10:27 +0000 (11:10 +0000)]
Fix coverity warning in test-string-util.c
CID
1446368: Incorrect expression (MISSING_COMMA)
Lennart Poettering [Tue, 9 Feb 2021 16:41:10 +0000 (17:41 +0100)]
coredumpctl: include coredump size in output
This improves the output of the "list" and "info" verbs and adds
coredump size information to the output.
For doing that a common helper function is added that analyzes the
coredump file on disk.
Lennart Poettering [Tue, 9 Feb 2021 15:43:55 +0000 (16:43 +0100)]
man: document new coredumpctl features
Lennart Poettering [Tue, 9 Feb 2021 15:40:44 +0000 (16:40 +0100)]
coredumpctl: modernize table output
Let's use our table formatter for generating the coredump table. Bring
support up to our current standards, with a bit of color, JSON output
and so on.
Also adds supports for setting a max for the number of lines to
generate. (with the new -n switch)
The existing -1 switch now becomes a synonym for "-n 1 --reverse"
Fixes: #3271
Lennart Poettering [Tue, 9 Feb 2021 15:39:49 +0000 (16:39 +0100)]
format-table: when generating json, synthesize "null" for invalid ifindex
This matches what we do for other cell types that have an invalid value.
Lennart Poettering [Tue, 9 Feb 2021 15:36:07 +0000 (16:36 +0100)]
format-table: make UID/GID/PID fields first class citizens + add signal cell type
This way we can display invalid UIDs/GIDs/PIDs as n/a while still
storing them as is.
Also, let's add a new cell type for unix signal, that is stored as
integer, but displayed as signal name string.
Lennart Poettering [Wed, 10 Feb 2021 09:50:23 +0000 (10:50 +0100)]
analyze: slightly reword PrivatTmp= message
Apparently there way confusion about "does not apply". Let's say "is not
appropriate".
Fixes: #13095
Lennart Poettering [Tue, 9 Feb 2021 16:14:25 +0000 (17:14 +0100)]
Merge pull request #18518 from poettering/inhibit-limit-columns
put a width limit on the "systemd-inhibit --list" table
Lennart Poettering [Tue, 9 Feb 2021 14:03:46 +0000 (15:03 +0100)]
inhibit: cut off overly long "who" fields
systemd-inhibit when invoked with a command line will put the whole
command line in the "who" field of the inhibitor lock. This can get
extremely long for shell expressions, making the table "systemd-inhibit
--list" shows ridiculously weirdly formatted. Let's put a limit on the
column width: half of the screen, not more.
Lennart Poettering [Tue, 9 Feb 2021 14:02:21 +0000 (15:02 +0100)]
format-table: don't hit assert if column got less width than it asked for
If one field in a specific column has a maximum size limit, other fields
in the same column might affected by it and get less than they asked
for. Let's make sure we can handle this, and don't assert on this
because surprisingly we got less than what we asked for.
Zbigniew Jędrzejewski-Szmek [Tue, 9 Feb 2021 13:14:16 +0000 (14:14 +0100)]
systemctl: remove comment about --failed being deprecated
Follow-up for
bef19548a2430909019d7cff095b8600c796c3ef.
Zbigniew Jędrzejewski-Szmek [Sun, 7 Feb 2021 17:30:42 +0000 (18:30 +0100)]
fuzz-systemctl-parse-argv: a new fuzzer
Does what the name suggests. Obviously inspired by sudoers, but note that
our tools are not supposed to be installed suid, so there is no privilege
boundary to cross here.
Luca Boccassi [Tue, 9 Feb 2021 13:06:40 +0000 (13:06 +0000)]
Merge pull request #18470 from mrc0mmand/ci-clang-12
ci: run build test with clang-12 as well
Zbigniew Jędrzejewski-Szmek [Tue, 9 Feb 2021 13:06:18 +0000 (14:06 +0100)]
Merge pull request #18416 from yuwata/strverscmp
util: introduce strverscmp_improved()
Zbigniew Jędrzejewski-Szmek [Mon, 8 Feb 2021 09:20:03 +0000 (10:20 +0100)]
fuzz-journal-remote: do not assert on resource conditions
We have a number of issues where oss-fuzz reports input-independent crashes of
fuzz-journal-remote. Instead of asserting that stuff that allocated fds and
memory never fails, let's instead just return an error.
https://oss-fuzz.com/testcase-detail/
4791099424112640
https://oss-fuzz.com/testcase-detail/
4531912477638656
I don't see any docs as to whether LLVMFuzzerTestOneInput() is allowed to
return non-zero. Propagating the error code is easiest, so let's just do that.
If it turns out that this causes oss-fuzz to still report a failure, we can
suppress that later.
Yu Watanabe [Tue, 9 Feb 2021 10:07:35 +0000 (19:07 +0900)]
log: do not use uninitialized value
Follow-up for
85cf96e3f567cd51f79d671bbf3559550fdd67b7.
Frantisek Sumsal [Tue, 9 Feb 2021 11:49:31 +0000 (12:49 +0100)]
ci: temporarily pin Arch repositories to glibc 2.32-5
glibc 2.33-3 shipped on 2021-02-06 breaks running Arch containers on
systems with older kernels (like Ubuntu Focal). Until the issue is
resolved, let's pin the Arch repositories to glibc 2.32-5 to mitigate
the annoying CI fails.
See: https://bugs.archlinux.org/task/69563
Zbigniew Jędrzejewski-Szmek [Tue, 9 Feb 2021 11:42:25 +0000 (12:42 +0100)]
Merge pull request #18346 from yuwata/hostnamectl-try-to-set-transient-hostname
hostnamectl: try to set transient hostname even if setting static or pretty hostname failed
Yu Watanabe [Tue, 9 Feb 2021 05:12:25 +0000 (14:12 +0900)]
test-network: support protocol and linkdown flag for ff00::/8 route
Fixes #18507.
Kevin P. Fleming [Sat, 6 Feb 2021 15:58:43 +0000 (10:58 -0500)]
network: Delay addition of IPv6 Proxy NDP addresses
Setting of IPv6 Proxy NDP addresses must be done at the same
time as static addresses, static routes, and other link attributes
that must be configured when the link is up. Doing this ensures
that they are reconfigured on the link if the link goes down
and returns to service.
Yu Watanabe [Sat, 30 Jan 2021 16:12:27 +0000 (01:12 +0900)]
tree-wide: replace strverscmp() and str_verscmp() with strverscmp_improved()
Yu Watanabe [Wed, 3 Feb 2021 20:55:59 +0000 (05:55 +0900)]
string-util: introduce strverscmp_improved()
Unfortunately, strverscmp() from libc or str_verscmp() do not correctly
handle pre-release version, e.g. 247 vs 247~rc1.
This implement a new comparison function, which is based on the RPM's
rpmvercmp().
Yu Watanabe [Wed, 3 Feb 2021 18:21:08 +0000 (03:21 +0900)]
fundamental: move several macros and functions into src/fundamental/
sd-boot has a copy of a subset of codes from libbasic. This makes
sd-boot share the code with libbasic, and dedup the code.
Note, startswith_no_case() is dropped from sd-boot, as
- it is not used,
- the previous implementation is not correct,
- gnu-efi does not have StrniCmp() or so.
Yu Watanabe [Fri, 29 Jan 2021 07:48:03 +0000 (16:48 +0900)]
hostnamectl: use Table
Yu Watanabe [Mon, 25 Jan 2021 04:44:00 +0000 (13:44 +0900)]
hostnamectl: show hint when user try to set transient hostname but static hostname is already used
Yu Watanabe [Fri, 22 Jan 2021 07:46:18 +0000 (16:46 +0900)]
hostname: use free_and_strdup_and_warn()
Yu Watanabe [Fri, 22 Jan 2021 07:38:52 +0000 (16:38 +0900)]
hostname: re-read file later when failed to update file
Previously, even when writing e.g. /etc/hostname fails, the static
hostname in Context is not restored. So, the subsequent call of the same
method succeeds:
```
$ sudo chattr +i /etc/hostname
$ sudo hostnamectl --static set-hostname aaa
Could not set static hostname: Access denied
$ echo $?
1
$ sudo hostnamectl --static set-hostname aaa
$ echo $?
0
```
This makes when updating file is failed, the saved stat is cleared. So,
the static hostname or machine information in the context are always
consistent to the corresponding files.
Yu Watanabe [Fri, 22 Jan 2021 02:28:06 +0000 (11:28 +0900)]
hostnamectl: unset pretty hostname only when no target is specified
Yu Watanabe [Fri, 22 Jan 2021 02:20:50 +0000 (11:20 +0900)]
hostnamectl: try to set transient hostname even if updating static or pretty hostname failed
If no target (--pretty, --static, or --transient) is specified, then
let's try to set transient hostname even if setting static or pretty
hostname failed. This may be useful for read-only filesystem.
Yu Watanabe [Mon, 25 Jan 2021 04:16:20 +0000 (13:16 +0900)]
hostname: introduce two bus errors for updating file
Yu Watanabe [Fri, 29 Jan 2021 06:28:41 +0000 (15:28 +0900)]
bus-error: align error definitions
Yu Watanabe [Fri, 22 Jan 2021 02:18:42 +0000 (11:18 +0900)]
hostnamectl: improve log message on failure
Gablegritule [Mon, 8 Feb 2021 23:30:49 +0000 (00:30 +0100)]
hwdb: add axis overrides for the Dell Latitude E5510 TouchPad (#18493)
I added an entry for Dell Latitude E5510 TouchPad to set up the true size
of the TouchPad (the size is currently over-estimated)
Frantisek Sumsal [Mon, 8 Feb 2021 11:34:13 +0000 (12:34 +0100)]
Merge pull request #18478 from mrc0mmand/fix-TEST-06
TEST-06-SELINUX fixes
Frantisek Sumsal [Mon, 8 Feb 2021 10:26:26 +0000 (11:26 +0100)]
tree-wide: fix the string concatenation warning with clang-12
e.g.:
./src/shared/dissect-image.c:2218:39: error: suspicious concatenation of string literals in an array initialization; did you mean to separate the elements with a comma? [-Werror,-Wstring-concatenation]
"/usr/lib/os-release\0",
^
../src/shared/dissect-image.c:2217:39: note: place parentheses around the string literal to silence warning
[META_OS_RELEASE] = "/etc/os-release\0"
^
1 error generated.
See: https://reviews.llvm.org/D85545
Zbigniew Jędrzejewski-Szmek [Sun, 7 Feb 2021 17:29:35 +0000 (18:29 +0100)]
xdg-autostart-generator: sort header includes
Zbigniew Jędrzejewski-Szmek [Sun, 7 Feb 2021 16:35:06 +0000 (17:35 +0100)]
systemctl: move telinit execcing out of parse_argv()
With this change, parse_argv() does parsing, without any real actions.
Fully untested ;)
Zbigniew Jędrzejewski-Szmek [Mon, 8 Feb 2021 10:45:42 +0000 (11:45 +0100)]
Merge pull request #18375 from yuwata/cli-tools-also-read-kernel-command-line
tree-wide: make CLI tools also read kernel command line when run as service
Zbigniew Jędrzejewski-Szmek [Mon, 8 Feb 2021 10:10:36 +0000 (11:10 +0100)]
Merge pull request #18331 from yuwata/test-udev-event-spawn
udev: add tests for udev_event_spawn()
Antonius Frie [Mon, 8 Feb 2021 08:15:15 +0000 (09:15 +0100)]
Use correct config parser for MountAPIVFS (#18501)
As far as I can see, at some point the parser function for MountAPIVFS
was changed from the generic bool parser to a custom implementation, to
allow the context to keep track of whether MountAPIVFS had been set
explicitly. If not, exec_context_get_effective_mount_apivfs would fall
back to a default value. However, the corresponding entry in the big
parser table wasn't updated, meaning that the old bool parser was still
used, meaning that context->mount_apivfs_set remained at its default
value of false, meaning that the default value was always used and the
config option was effectively ignored.
Fix for
5e98086d1629f5c5b73645ba2568de4b09b7d958.
Zbigniew Jędrzejewski-Szmek [Sun, 7 Feb 2021 16:02:56 +0000 (17:02 +0100)]
core: drop references to Upstart
The last release of Upstart was July 2014 [1], and there have been no new
commits to the repo. We should move on too.
[1] https://lists.ubuntu.com/archives/upstart-devel/2014-July/003313.html
The only real support was in the code that looked for $PREVLEVEL.
https://codesearch.debian.net/search?q=PREVLEVEL&literal=1&perpkg=1 shows this
string in our own code (or the copy in elogind), our own man pages, and init
scripts for two packages (brltty, salt), which shouldn't be used with systemd.
(And both *check* for PREVLEVEL, and don't set it. So most likely nothing at
all sets it.)
cprn [Sun, 7 Feb 2021 11:33:43 +0000 (12:33 +0100)]
hwdb: add Acecad Flair / Pentagram Quadpen (#18443)
Luca Boccassi [Sat, 6 Feb 2021 15:36:39 +0000 (15:36 +0000)]
Merge pull request #18490 from keszybz/prettify-update-dbus-docs
Prettify update-dbus-docs
Zbigniew Jędrzejewski-Szmek [Sat, 6 Feb 2021 09:02:37 +0000 (10:02 +0100)]
update-dbus-docs: use color in summary
Zbigniew Jędrzejewski-Szmek [Sat, 6 Feb 2021 08:42:54 +0000 (09:42 +0100)]
update-dbus-docs: say "MODIFIED" not "OUTDATED"
When executed in test mode, "OUTDATED" is appropriate. But when executed
to actually update the text, after the tool executes, those pages are the
opposite, not outdated.
Lennart Poettering [Mon, 1 Feb 2021 16:03:19 +0000 (17:03 +0100)]
copy: use stat_verify_directory() where appropriate
Julia Cartwright [Fri, 5 Feb 2021 21:16:18 +0000 (15:16 -0600)]
man: fix misspellings of "NameSeviceSwitch"
Fixup NameSeviceSwitch -> NameServiceSwitch spelling error in
documentation.
Found through inspection of documentation.
Weblate (bot) [Fri, 5 Feb 2021 23:54:58 +0000 (00:54 +0100)]
Translations update from Weblate (#18485)
* Translated using Weblate (Swedish)
Currently translated at 100.0% (189 of 189 strings)
Translation: systemd/main
Translate-URL: https://translate.fedoraproject.org/projects/systemd/master/sv/
Co-authored-by: Göran Uddeborg <goeran@uddeborg.se>
Lennart Poettering [Fri, 5 Feb 2021 23:14:47 +0000 (00:14 +0100)]
github: ask for systemd version in RFE form
It happens too often that what people ask for already is implemented.
Let's help cut the noise a bit, and make people check things first
hopefully, and at least make it either for us to detect such cases.
Lennart Poettering [Fri, 5 Feb 2021 17:43:55 +0000 (18:43 +0100)]
resolved: suppress ifindex info in varlink JSON responses if zero
If we don't have ifindex info, don't set the field for it.
We already do that for parsed IP address replies, let's do it for all
cases: it's a bit nicer to suppress the ifindex prop if it doesn't apply
than to pass it invalid.
This is the other side of #18482, i.e. fixes things so that the parser
doesn't get tripped up by this.
(This too makes a problem go away we should track down properly, i.e.
figure out how the ifindex got lost in
https://github.com/systemd/systemd/pull/17823#issuecomment-
742439422 )
Lennart Poettering [Fri, 5 Feb 2021 23:16:28 +0000 (00:16 +0100)]
Merge pull request #18482 from poettering/resolved-nss-varlink-ifindex-fix
nss-resolve: handle zero ifindex reply from server
Lennart Poettering [Fri, 5 Feb 2021 17:46:18 +0000 (18:46 +0100)]
nss-resolve: shortcut fixing of ifindex if it's zero anyway
Lennart Poettering [Fri, 5 Feb 2021 17:44:22 +0000 (18:44 +0100)]
nss-resolve: accept zero ifindex when parsing resolved reply
Sometimes a reply isn't associated to any specific interface, it might
be a general truth (for example served from /etc/hosts or so). In this
case the server might pass ifindex == 0. Accept that.
https://github.com/systemd/systemd/pull/17823#issuecomment-
742439422
Lennart Poettering [Fri, 5 Feb 2021 17:08:56 +0000 (18:08 +0100)]
Merge pull request #18318 from yuwata/network-route-table-name
network: RouteTable= improvements
Ali Abdallah [Thu, 21 Jan 2021 06:37:21 +0000 (07:37 +0100)]
PATCH] Always free deserialized_subscribed on reload
Otherwise, it will keep consuming memory on systemctl daemon-reload.
Frantisek Sumsal [Fri, 5 Feb 2021 15:59:38 +0000 (16:59 +0100)]
test: add a custom SELinux file context
Since the test suite overhaul, the test units are now under
/usr/lib/systemd/tests/testdata/tetsuite-06.units with
system_u:object_r:lib_t context. This causes an AVC denial, since the
systemd unit files are expected to have the
system_u:object_r:systemd_unit_file_t context. Let's fix this by using a
custom file context definition.
Frantisek Sumsal [Fri, 5 Feb 2021 15:57:30 +0000 (16:57 +0100)]
test: clean the module build dir before compiling it
otherwise the module won't compile & load after autorelabel reboot,
since the target is already built.
Lennart Poettering [Thu, 4 Feb 2021 15:05:05 +0000 (16:05 +0100)]
Revert "resolvectl: Add show-multicast verb to show discovered LLMNR/mDNS hosts"
Lennart Poettering [Thu, 4 Feb 2021 21:08:47 +0000 (22:08 +0100)]
Merge pull request #18472 from poettering/conservative-rename-fix
fix conservative_renameat()
Yu Watanabe [Thu, 4 Feb 2021 18:12:13 +0000 (03:12 +0900)]
man: fix typo
Zbigniew Jędrzejewski-Szmek [Thu, 4 Feb 2021 08:48:19 +0000 (09:48 +0100)]
core: map io.bfq.weight to 1..1000
Aaargh. See the comment in the code.
Apparently the range is like that:
$ sudo bash -c 'echo "default 1001" >/sys/fs/cgroup/user.slice/io.bfq.weight'
bash: line 0: echo: write error: Numerical result out of range
$ uname -r
5.11.0-0.rc4.129.fc34.x86_64
Lennart Poettering [Thu, 4 Feb 2021 17:08:30 +0000 (18:08 +0100)]
test-fs-util: beef up test for conservative_renameat()
Instead of using a short fixed string, let's use a huge blob for
testing, with randomized size and contents, that definitely is above the
16K buffer size conservative_renameat() uses internally.
Lennart Poettering [Thu, 4 Feb 2021 17:06:54 +0000 (18:06 +0100)]
fs-util: make sure conservative_renameat() properly detects identity of longer files
The old code got confused with files with a size >16K. Let's fix that.
Noticed by @benjarobin
Replaces: #18442
David Edmundson [Wed, 3 Feb 2021 12:29:28 +0000 (12:29 +0000)]
xdg-autostart: Generate autostart services with templated name
The "XDG standardization for applications" specification states that
services should be in the form:
app[-<launcher>]-<ApplicationID>[@<RANDOM>].service or
app[-<launcher>]-<ApplicationID>-<RANDOM>.scope
In this case "autostart" takes the place of [RANDOM] to provide a unique
identifier if the same app is launched elsewhere. As it is a service
that means it should be set as a template not using a hyphen delimiter.
Daan De Meyer [Wed, 3 Feb 2021 00:24:32 +0000 (00:24 +0000)]
boot: Replace efivar_set() persistent argument with flags argument
To add secure-boot enrolling support, we need to be able to specify
the EFI_VARIABLE_APPEND_WRITE flag so let's make the efivar_set()
methods more generic so we can set that flag.
Frantisek Sumsal [Thu, 4 Feb 2021 14:54:14 +0000 (15:54 +0100)]
ci: run build test with clang-12 as well
Ubuntu repositories for clang 12 are finally up, so let's use it
in our CI.
Zbigniew Jędrzejewski-Szmek [Thu, 4 Feb 2021 10:05:39 +0000 (11:05 +0100)]
man: reword the description of "main conf file"
While not really "wrong", the text we had could use a little editing.
Fixes #18458.
Zbigniew Jędrzejewski-Szmek [Thu, 4 Feb 2021 11:53:10 +0000 (12:53 +0100)]
Merge pull request #18444 from anitazha/proprename
oom: parse properties with 1/10000 precision instead of 1/100
Zbigniew Jędrzejewski-Szmek [Thu, 4 Feb 2021 09:37:21 +0000 (10:37 +0100)]
Merge pull request #18355 from DaanDeMeyer/resolved-discover
resolvectl: Add show-multicast verb to show discovered LLMNR/mDNS hosts
Yu Watanabe [Thu, 4 Feb 2021 05:04:37 +0000 (14:04 +0900)]
Merge pull request #18462 from poettering/copy-time
timestamp fixes in copy.c
Lennart Poettering [Wed, 3 Feb 2021 21:24:53 +0000 (22:24 +0100)]
import: use +i (immutable) chattr flag for marking OS images read-only
This is what nspawn and machine-image.[ch] actually look for, hence us
it here too.
Lennart Poettering [Tue, 2 Feb 2021 17:24:53 +0000 (18:24 +0100)]
import: fix etag detection support
Let's make sure we still look at the etags reported by http 304 (i.e.
the cache management code). Otherwise we won't properly realize we
already downloaded this before.
This fixes a bug introduced in
6792cbbcf84b730f465decbeaf247c6b1ccf1c18
Yu Watanabe [Thu, 4 Feb 2021 04:57:37 +0000 (13:57 +0900)]
Merge pull request #18459 from poettering/discover-image
shared: rename machine-image.[ch] → discover-image.[ch]
Lennart Poettering [Mon, 25 Jan 2021 18:41:59 +0000 (19:41 +0100)]
path-util: tighten path_is_valid() checks
This tightens the path_is_valid() checking: it now tests whether each
component in the path is bound by FILENAME_MAX in its size.
Lennart Poettering [Mon, 1 Feb 2021 16:01:14 +0000 (17:01 +0100)]
copy: simplify futimens() invocation
Lennart Poettering [Mon, 1 Feb 2021 15:57:46 +0000 (16:57 +0100)]
copy: also attempt to copy atime/mtime when copying symlinks, device nodes, fifos
Lennart Poettering [Wed, 3 Feb 2021 22:12:30 +0000 (23:12 +0100)]
discover-image: don't mix two types of stack allocation in one line
Lennart Poettering [Wed, 3 Feb 2021 21:37:40 +0000 (22:37 +0100)]
shared: rename machine-image.[ch] → discover-image.[ch]
The old name originates when this was used to discover "machine" images,
as managed by machined/machinectl. But nowadays this is also used by
portable services and system extensions, hence let's use a more generic
name for this API. Taking inspiration from "dissect-image.[ch]", let's call
this "discover-image.[ch]".
This is pure renaming, no other changes.
Yu Watanabe [Wed, 3 Feb 2021 14:41:22 +0000 (23:41 +0900)]
test-network: disable NDISC on veth-peer
This should speed the tests up.
Zbigniew Jędrzejewski-Szmek [Wed, 3 Feb 2021 09:20:49 +0000 (10:20 +0100)]
Deprecate builds with split-usr, prepare for removal
There is no technical reason to support systems with split-usr, except for
backwards compatibility. Even though systemd itself makes an effort to support
this, many other tools aren't as careful. Despite those efforts, we
(collectively) get it wrong often, because doing it "wrong" on systems with
merged-usr has no consequences. Since almost all developers are on such
systems, any issues are only discovered late. Supporting this split-usr mode
makes both code and documentation more complicated. The split is purely
artificial and has no justification except to allow old installation to not
update. Mechanisms to update existing systems are available though: Fedora
did that in https://fedoraproject.org/wiki/Features/UsrMove, Debian has
the usrmerge package.
The next version of Debian will only support systems with split-usr=false,
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=978636#178:
The Technical Committee resolves that Debian 'bookworm' should
support only the merged-usr root filesystem layout, dropping support
for the non-merged-usr layout.
Let's start warning if split-usr mode is used, in preparation to removing the
split in one of the future releases.
Weblate (bot) [Wed, 3 Feb 2021 21:08:24 +0000 (22:08 +0100)]
Translated using Weblate (Swedish) (#18457)
Currently translated at 94.1% (178 of 189 strings)
Co-authored-by: Göran Uddeborg <goeran@uddeborg.se>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/master/sv/
Translation: systemd/main
Kevin P. Fleming [Wed, 3 Feb 2021 12:18:00 +0000 (07:18 -0500)]
network: correct name of parameter in function prototype
The output parameter of `sd_rtnl_message_neigh_get_ifindex` is called `index`,
not `family`.
Yu Watanabe [Wed, 3 Feb 2021 09:18:57 +0000 (18:18 +0900)]
Merge pull request #18319 from yuwata/udev-move-tx-rx-queues
network,udev: move TransmitQueues=/ReceiveQueues= from .network to .link
Lennart Poettering [Tue, 2 Feb 2021 14:27:30 +0000 (15:27 +0100)]
logind: simplify flags handling a bit
Let's split out the two codepaths a bit, and emphasize which ones it the
new-style and which the old-style codepath, and let's clearly convert
the params of the old-stye into the new style for further processing, so
that the old style path is brief and isolated.
No change in behaviour.
Follow-up for:
8885fed4e3a52cf1bf105e42043203c485ed9d92
Yu Watanabe [Wed, 3 Feb 2021 06:04:26 +0000 (15:04 +0900)]
Merge pull request #18423 from DaanDeMeyer/sd-boot-no-include
More sd-boot cleanups
Yu Watanabe [Wed, 20 Jan 2021 06:50:01 +0000 (15:50 +0900)]
network,udev: move TransmitQueues=/ReceiveQueues= from .network to .link
As the settings are mostly hardware setup, and merely see from network
layer.
See also discussions in
https://github.com/systemd/systemd/pull/18170#issuecomment-
758807497
https://github.com/orgs/systemd/teams/systemd/discussions/1
Yu Watanabe [Wed, 20 Jan 2021 06:29:56 +0000 (15:29 +0900)]
udev: rename TxQueueLength= -> TransmitQueueLength=
As we usually (unfortunately not always though) do not use abbreviations.
Tx may be standard abbreviation, but we already have e.g.
TransmitChecksumOffload=. So, let's use Transmit instead of Tx.
Follow-up for
ef4a91a7e8d8337a9d65177b09eb7580b25b8f5d.
Yu Watanabe [Wed, 20 Jan 2021 10:34:30 +0000 (19:34 +0900)]
test: add tests for RouteTable= setting
Yu Watanabe [Wed, 20 Jan 2021 06:19:41 +0000 (15:19 +0900)]
network: use defined route table name in debug logs
And rename route_table_from_string_full() to
manager_get_route_table_from_string().
Yu Watanabe [Wed, 20 Jan 2021 05:33:21 +0000 (14:33 +0900)]
network: make RouteTable= setting can take multiple name:number pairs in a line
Follow-up for
c038ce4606f93d9e58147f87703125270fb744e2.
Anita Zhang [Tue, 2 Feb 2021 22:16:03 +0000 (14:16 -0800)]
oom: rework *MemoryPressureLimit= properties to have 1/10000 precision
Requested in
https://github.com/systemd/systemd/pull/15206#discussion_r505506657,
preserve the full granularity for memory pressure limits (permyriad)
instead of capping out at percent.
Frantisek Sumsal [Tue, 2 Feb 2021 16:02:12 +0000 (17:02 +0100)]
ci: build with -Werror on Fedora
Prompted by: https://github.com/systemd/systemd/pull/18400#issuecomment-
771602705