]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
5 years agotest: move TEST-30-ONCLOCKCHANGE setup to static files
Zbigniew Jędrzejewski-Szmek [Tue, 10 Dec 2019 12:45:48 +0000 (13:45 +0100)] 
test: move TEST-30-ONCLOCKCHANGE setup to static files

The two timezone files are now installed in the global setup. I am not too
happy about this, but it still seems better than to create a completely
separate image just for this.

5 years agotest: move TEST-29-UDEV-ID_RENAMING setup to static files
Zbigniew Jędrzejewski-Szmek [Tue, 10 Dec 2019 08:35:49 +0000 (09:35 +0100)] 
test: move TEST-29-UDEV-ID_RENAMING setup to static files

5 years agotest: move TEST-28-PERCENTJ-WANTEDBY setup to static files
Zbigniew Jędrzejewski-Szmek [Tue, 10 Dec 2019 08:32:44 +0000 (09:32 +0100)] 
test: move TEST-28-PERCENTJ-WANTEDBY setup to static files

5 years agotest: move TEST-27-STDOUTFILE setup to static files
Zbigniew Jędrzejewski-Szmek [Tue, 10 Dec 2019 08:19:13 +0000 (09:19 +0100)] 
test: move TEST-27-STDOUTFILE setup to static files

5 years agotest: move TEST-26-SETENV setup to static files
Zbigniew Jędrzejewski-Szmek [Tue, 10 Dec 2019 08:13:20 +0000 (09:13 +0100)] 
test: move TEST-26-SETENV setup to static files

Also run mask_supporting_services() here.

5 years agotest/TEST-25: remove all images at the end of the test
Zbigniew Jędrzejewski-Szmek [Sat, 21 Mar 2020 14:29:43 +0000 (15:29 +0100)] 
test/TEST-25: remove all images at the end of the test

scratch5 would be left behind, and trying to run the test again on the same
image would fail.

5 years agotest: move TEST-25-IMPORT setup to static files
Zbigniew Jędrzejewski-Szmek [Tue, 10 Dec 2019 08:10:28 +0000 (09:10 +0100)] 
test: move TEST-25-IMPORT setup to static files

Also run mask_supporting_services() here.

5 years agotest: move TEST-24-UNIT-TESTS setup to static files
Zbigniew Jędrzejewski-Szmek [Tue, 10 Dec 2019 14:31:09 +0000 (15:31 +0100)] 
test: move TEST-24-UNIT-TESTS setup to static files

I picked the list of zone files to install by grepping through the code. This
is is a bit brittle, but installing all of them takes a while, and more
importantly, writes a lot of lines to the log.

5 years agotest-fileio: fix bogus error when /proc/cmdline contains newlines
Zbigniew Jędrzejewski-Szmek [Fri, 13 Dec 2019 11:21:11 +0000 (12:21 +0100)] 
test-fileio: fix bogus error when /proc/cmdline contains newlines

The kernel does not sanitize /proc/cmdline. E.g. when running under qemu, it is
easy to pass a string with newline by mistake. We use read_one_line_file(), so
we would read only the first list of the file, and
write_string_file(WRITE_STRING_FILE_VERIFY_ON_FAILURE) would fail because the
target file is obviously different. Change to a kernel-generated file to avoid
the issue.

v2:
- use /proc/version instead of /proc/uptime for attempted writes, so the test
  test passes even if test_write_string_file_verify() takes more than 10 ms ;]

5 years agotest: move TEST-23-TYPE-EXEC setup to static files
Zbigniew Jędrzejewski-Szmek [Tue, 10 Dec 2019 07:59:09 +0000 (08:59 +0100)] 
test: move TEST-23-TYPE-EXEC setup to static files

5 years agotest: move TEST-22-TMPFILES setup to static files
Zbigniew Jędrzejewski-Szmek [Tue, 10 Dec 2019 12:32:20 +0000 (13:32 +0100)] 
test: move TEST-22-TMPFILES setup to static files

5 years agotest: move TEST-20-MAINPIDGAMES setup to static files
Zbigniew Jędrzejewski-Szmek [Tue, 10 Dec 2019 07:32:28 +0000 (08:32 +0100)] 
test: move TEST-20-MAINPIDGAMES setup to static files

5 years agotest: move TEST-19-DELEGATE setup to static files
Zbigniew Jędrzejewski-Szmek [Tue, 10 Dec 2019 07:29:43 +0000 (08:29 +0100)] 
test: move TEST-19-DELEGATE setup to static files

5 years agotest: move TEST-18-FAILUREACTION setup to static files
Zbigniew Jędrzejewski-Szmek [Tue, 10 Dec 2019 07:27:33 +0000 (08:27 +0100)] 
test: move TEST-18-FAILUREACTION setup to static files

5 years agotest: move TEST-17-WANTS setup to static files
Zbigniew Jędrzejewski-Szmek [Tue, 10 Dec 2019 07:21:02 +0000 (08:21 +0100)] 
test: move TEST-17-WANTS setup to static files

5 years agotest/TEST-16: simplify how variables are set
Zbigniew Jędrzejewski-Szmek [Thu, 12 Dec 2019 20:06:58 +0000 (21:06 +0100)] 
test/TEST-16: simplify how variables are set

The amount of lines doesn't change much, but I think it's much more
straightforward this way.

5 years agotest: move TEST-16-EXTEND-TIMEOUT setup to static files
Zbigniew Jędrzejewski-Szmek [Tue, 10 Dec 2019 07:16:40 +0000 (08:16 +0100)] 
test: move TEST-16-EXTEND-TIMEOUT setup to static files

5 years agotest/TEST-15: call daemon-reload in two more places
Zbigniew Jędrzejewski-Szmek [Sat, 21 Mar 2020 16:01:09 +0000 (17:01 +0100)] 
test/TEST-15: call daemon-reload in two more places

Sometimes the test would fail there, nondeterministically. I'm not sure why,
but relying on PID1 not caching the file is clearly very brittle. Let's instead
call daemon-reload.

5 years agotest/TEST-15: remove all created unit files
Zbigniew Jędrzejewski-Szmek [Sat, 21 Mar 2020 15:30:27 +0000 (16:30 +0100)] 
test/TEST-15: remove all created unit files

We would miss anything created under a template instance.

5 years agotest: move TEST-15-DROPIN setup to static files
Zbigniew Jędrzejewski-Szmek [Mon, 9 Dec 2019 22:29:18 +0000 (23:29 +0100)] 
test: move TEST-15-DROPIN setup to static files

Unfortunately the services needed to be renamed because of conflicts with other
services that exist in the shared dir.

5 years agotest: move most of TEST-14-MACHINE-ID setup to static files
Zbigniew Jędrzejewski-Szmek [Mon, 9 Dec 2019 21:02:06 +0000 (22:02 +0100)] 
test: move most of TEST-14-MACHINE-ID setup to static files

5 years agotest: move most of TEST-13-NSPAWN-SMOKE setup to static files
Zbigniew Jędrzejewski-Szmek [Mon, 9 Dec 2019 20:45:46 +0000 (21:45 +0100)] 
test: move most of TEST-13-NSPAWN-SMOKE setup to static files

5 years agotest: move TEST-12-ISSUE-3171 setup to static files
Zbigniew Jędrzejewski-Szmek [Mon, 9 Dec 2019 20:26:59 +0000 (21:26 +0100)] 
test: move TEST-12-ISSUE-3171 setup to static files

5 years agotest: move TEST-11-ISSUE-3166 setup to static files
Zbigniew Jędrzejewski-Szmek [Mon, 9 Dec 2019 19:53:38 +0000 (20:53 +0100)] 
test: move TEST-11-ISSUE-3166 setup to static files

5 years agotest: move TEST-10-ISSUE-2467 setup to static files
Zbigniew Jędrzejewski-Szmek [Mon, 9 Dec 2019 19:42:48 +0000 (20:42 +0100)] 
test: move TEST-10-ISSUE-2467 setup to static files

5 years agotest: use shell arrays and remove duplicates
Zbigniew Jędrzejewski-Szmek [Mon, 9 Dec 2019 19:35:51 +0000 (20:35 +0100)] 
test: use shell arrays and remove duplicates

The tool lists are obviously not empty, so let's remove the test if they are.

5 years agotest: move TEST-09-ISSUE-2691 setup to static files
Zbigniew Jędrzejewski-Szmek [Mon, 9 Dec 2019 19:27:40 +0000 (20:27 +0100)] 
test: move TEST-09-ISSUE-2691 setup to static files

5 years agotest: move TEST-08-ISSUE-2730 setup to static files and meson scripts
Zbigniew Jędrzejewski-Szmek [Tue, 10 Dec 2019 15:05:48 +0000 (16:05 +0100)] 
test: move TEST-08-ISSUE-2730 setup to static files and meson scripts

Unfortunately meson does not install symlinks, but copies the symlink
destination instead. So symlinks need to be created by a script.
This commit adds both symlinks in test/testsuite-08.units/ and meson
scriptlet calls. Strictly speaking, the first is not necessary, since nothing
reads stuff directly from the source tree.

5 years agotest: move TEST-07-ISSUE-1981 setup to static files
Zbigniew Jędrzejewski-Szmek [Mon, 9 Dec 2019 18:51:17 +0000 (19:51 +0100)] 
test: move TEST-07-ISSUE-1981 setup to static files

5 years agotest/TEST-06: make autorelabel.service a static file too
Zbigniew Jędrzejewski-Szmek [Tue, 10 Dec 2019 19:46:48 +0000 (20:46 +0100)] 
test/TEST-06: make autorelabel.service a static file too

5 years agotest/TEST-06: skip test if no selinux
Zbigniew Jędrzejewski-Szmek [Thu, 19 Mar 2020 15:57:50 +0000 (16:57 +0100)] 
test/TEST-06: skip test if no selinux

I put SELINUX=disabled on my laptop, and the test fails with ENOENT when trying
to write to /sys/fs/selinux/enforce. It's a bit of a special case, but let's
avoid the failure.

5 years agotest: move most of TEST-06-* setup to static files
Zbigniew Jędrzejewski-Szmek [Mon, 9 Dec 2019 18:42:57 +0000 (19:42 +0100)] 
test: move most of TEST-06-* setup to static files

5 years agotest: move TEST-05-RLIMITS setup to static files
Zbigniew Jędrzejewski-Szmek [Tue, 10 Dec 2019 13:09:59 +0000 (14:09 +0100)] 
test: move TEST-05-RLIMITS setup to static files

The test currently fails in the check for LimitNOFILESoft/LimitNOFILE. I see
default values there. This doesn't seem to be related to the changes in the
test suite, but rather to the recent changes to pid1.

5 years agotest: convert TEST-04-JOURNAL to generic image
Zbigniew Jędrzejewski-Szmek [Mon, 9 Dec 2019 18:19:05 +0000 (19:19 +0100)] 
test: convert TEST-04-JOURNAL to generic image

5 years agotest: move TEST-03-JOBS setup to static files
Zbigniew Jędrzejewski-Szmek [Mon, 9 Dec 2019 18:09:32 +0000 (19:09 +0100)] 
test: move TEST-03-JOBS setup to static files

5 years agotest: move part of TEST-02-CRYPTSETUP setup to static files
Zbigniew Jędrzejewski-Szmek [Thu, 12 Dec 2019 08:59:53 +0000 (09:59 +0100)] 
test: move part of TEST-02-CRYPTSETUP setup to static files

Since we create an encrypted partition for this test, let's create a separate image here.

5 years agotest: move TEST-01-BASIC setup to static files
Zbigniew Jędrzejewski-Szmek [Mon, 9 Dec 2019 17:56:13 +0000 (18:56 +0100)] 
test: move TEST-01-BASIC setup to static files

After this commit, only tests that were converted will work, because the
interface to test_run() changed.

5 years agotest: allow overriding EFI_MOUNT like other variables
Zbigniew Jędrzejewski-Szmek [Mon, 9 Dec 2019 17:52:35 +0000 (18:52 +0100)] 
test: allow overriding EFI_MOUNT like other variables

5 years agomeson: report -Dinstall-tests in summary
Zbigniew Jędrzejewski-Szmek [Mon, 16 Dec 2019 16:01:17 +0000 (17:01 +0100)] 
meson: report -Dinstall-tests in summary

5 years agomeson: use install_subdir() to install files
Zbigniew Jędrzejewski-Szmek [Sun, 8 Dec 2019 10:24:39 +0000 (11:24 +0100)] 
meson: use install_subdir() to install files

This gives us slightly less control, but we don't need to update the
file list...

5 years agotest: replace symlinks with actual unit files
Zbigniew Jędrzejewski-Szmek [Fri, 20 Mar 2020 15:12:12 +0000 (16:12 +0100)] 
test: replace symlinks with actual unit files

During installation, meson complains:
> Installing /home/zbyszek/src/systemd-work/test/units/sysinit.target to /var/tmp/systemd-test.Q1FSuj/root/usr/lib/systemd/tests/testdata/units
> Warning: trying to copy a symlink that points to a file. This will copy the file,
> but this will be changed in a future version of Meson to copy the symlink as is. Please update your
> build definitions so that it will not break when the change happens.

It *is* convenient to have those files as symlinks, but it is also confusing,
because symlinks create aliases, and it seems that in those cases we actually
don't want aliases (at least in the case of loopy*.service that'd make the test
pointless).

5 years agotests: move unit files to units/ subdirectory
Zbigniew Jędrzejewski-Szmek [Fri, 6 Dec 2019 20:51:59 +0000 (21:51 +0100)] 
tests: move unit files to units/ subdirectory

We have a bazillion of those unit files, and keeping them all directly in tests/
has become rather unwieldy.

5 years agosd-bus: sd_bus_set/get_method_call_timeout docs + cleanups.
Daan De Meyer [Wed, 18 Mar 2020 18:29:57 +0000 (19:29 +0100)] 
sd-bus: sd_bus_set/get_method_call_timeout docs + cleanups.

5 years agonetworkctl: Add support to display bond
Susant Sahani [Wed, 18 Mar 2020 07:50:15 +0000 (08:50 +0100)] 
networkctl: Add support to display bond

5 years agoMerge pull request #14749 from msekletar/cpu-aff-numa-v3
Zbigniew Jędrzejewski-Szmek [Wed, 18 Mar 2020 12:35:58 +0000 (13:35 +0100)] 
Merge pull request #14749 from msekletar/cpu-aff-numa-v3

core: add support for setting CPUAffinity= to special "numa" value

5 years agosd-bus: sd_bus_call/sd_bus_call_async_docs + cleanups.
Daan De Meyer [Tue, 17 Mar 2020 20:52:30 +0000 (21:52 +0100)] 
sd-bus: sd_bus_call/sd_bus_call_async_docs + cleanups.

5 years agoMerge pull request #15143 from ssahani/networkctl-tunnel-geneve
Yu Watanabe [Wed, 18 Mar 2020 09:33:38 +0000 (18:33 +0900)] 
Merge pull request #15143 from ssahani/networkctl-tunnel-geneve

networkctl: Add support to display geneve tunnel info

5 years agonetworkctl: Add support to display vti and vti6 tunnels 15143/head
Susant Sahani [Wed, 18 Mar 2020 04:21:41 +0000 (05:21 +0100)] 
networkctl: Add support to display vti and vti6 tunnels

5 years agonetworkctl: add support to display ip6gre, ip6gretap, ip6erspan
Susant Sahani [Wed, 18 Mar 2020 03:27:09 +0000 (04:27 +0100)] 
networkctl: add support to display ip6gre, ip6gretap, ip6erspan

5 years agodocs: Add syntax for templated units to systemd.preset man page
Joerg Behrmann [Tue, 10 Mar 2020 15:34:13 +0000 (16:34 +0100)] 
docs: Add syntax for templated units to systemd.preset man page

This documents the syntax

     enable template@.service foo bar baz

that was introduced in #9901 to preset templated units.

5 years agoMerge pull request #15136 from yuwata/network-dhcp4-use-gateway
Zbigniew Jędrzejewski-Szmek [Tue, 17 Mar 2020 15:51:18 +0000 (16:51 +0100)] 
Merge pull request #15136 from yuwata/network-dhcp4-use-gateway

network: add a flag to ignore gateway provided by DHCP server

5 years agoMerge pull request #15108 from keszybz/systemctl-set-default-notices
Zbigniew Jędrzejewski-Szmek [Tue, 17 Mar 2020 15:39:45 +0000 (16:39 +0100)] 
Merge pull request #15108 from keszybz/systemctl-set-default-notices

Make systemctl set-default hint about some common issues

5 years agonetworkctl: Add support to display gre gretap and erspan
Susant Sahani [Tue, 17 Mar 2020 13:31:54 +0000 (14:31 +0100)] 
networkctl: Add support to display gre gretap and erspan

5 years agonetworkctl: Add support to display geneve tunnel info
Susant Sahani [Tue, 17 Mar 2020 09:56:57 +0000 (10:56 +0100)] 
networkctl: Add support to display geneve tunnel info

5 years agohwdb: add support for Lenovo Legion Y9000X2020 (#15127)
duguxy [Tue, 17 Mar 2020 11:24:00 +0000 (19:24 +0800)] 
hwdb: add support for Lenovo Legion Y9000X2020 (#15127)

5 years agopo: update Polish translation
Piotr Drąg [Sun, 15 Mar 2020 12:14:20 +0000 (13:14 +0100)] 
po: update Polish translation

5 years agoFix volume control keys on Lenovo Yoga S940
Alexander Malafeev [Sun, 15 Mar 2020 19:24:56 +0000 (20:24 +0100)] 
Fix volume control keys on Lenovo Yoga S940

With the default config repeated press of fn+VolumeUp or fn+VolumeDown lead to
repeated presses even after release, which leads to volume going to 100% or 0%.

5 years agosystemctl: print a notice when set-default is not effective 15108/head
Zbigniew Jędrzejewski-Szmek [Fri, 13 Mar 2020 16:57:06 +0000 (17:57 +0100)] 
systemctl: print a notice when set-default is not effective

$ sudo ln -svf multi-user.target /run/systemd/generator.early/default.target
'/run/systemd/generator.early/default.target' -> 'multi-user.target'
$ sudo build/systemctl set-default --root=/ sysinit.target
Removed /etc/systemd/system/default.target.
Created symlink /etc/systemd/system/default.target → /usr/lib/systemd/system/sysinit.target.
Note: "multi-user.target" is the default unit (possibly a runtime override).

The output is not super informative, but it should be enough to point the user in
the right direction.

Fixes #3645.

5 years agonetworkctl: Add support to show tunnel (ipip/sit) local and remote address
Susant Sahani [Tue, 17 Mar 2020 05:08:05 +0000 (06:08 +0100)] 
networkctl: Add support to show tunnel (ipip/sit) local and remote address

5 years agosd-bus: Add sd_bus_method_call/sd_bus_method_call_async docs + cleanups.
Daan De Meyer [Mon, 16 Mar 2020 19:41:57 +0000 (20:41 +0100)] 
sd-bus: Add sd_bus_method_call/sd_bus_method_call_async docs + cleanups.

5 years agoMerge pull request #15138 from ssahani/networkctl-vlan
Anita Zhang [Mon, 16 Mar 2020 19:56:07 +0000 (12:56 -0700)] 
Merge pull request #15138 from ssahani/networkctl-vlan

networkctl: Add support to display vlan ID

5 years agoMerge pull request #15139 from DaanDeMeyer/sd-bus-remove-unused-cite
Anita Zhang [Mon, 16 Mar 2020 19:50:26 +0000 (12:50 -0700)] 
Merge pull request #15139 from DaanDeMeyer/sd-bus-remove-unused-cite

sd-bus: Remove unused man cite of `sd_bus_slot_new_signal`.

5 years agosd-bus: Remove unused man cite of `sd_bus_slot_new_signal`. 15139/head
Daan De Meyer [Mon, 16 Mar 2020 18:52:40 +0000 (19:52 +0100)] 
sd-bus: Remove unused man cite of `sd_bus_slot_new_signal`.

5 years agonetwork: do not re-attach sd-event object
Yu Watanabe [Mon, 16 Mar 2020 07:17:04 +0000 (16:17 +0900)] 
network: do not re-attach sd-event object

Fixes #15126.

5 years agonetwork: can: add support for listen-only mode
Yu Watanabe [Mon, 16 Mar 2020 04:40:30 +0000 (13:40 +0900)] 
network: can: add support for listen-only mode

Closes #15129.

5 years agonetworkctl: Add support to display master device
Susant Sahani [Sat, 14 Mar 2020 09:09:48 +0000 (10:09 +0100)] 
networkctl: Add support to display master device

5 years agonetworkctl: Add support to display vlan ID 15138/head
Susant Sahani [Mon, 16 Mar 2020 13:36:26 +0000 (14:36 +0100)] 
networkctl: Add support to display vlan ID

5 years agotest-network: add a test case for DHCPv4.UseGateway=no 15136/head
Yu Watanabe [Mon, 16 Mar 2020 10:08:36 +0000 (19:08 +0900)] 
test-network: add a test case for DHCPv4.UseGateway=no

5 years agonetwork: add a flag to ignore gateway provided by DHCP server
Yu Watanabe [Mon, 16 Mar 2020 09:55:10 +0000 (18:55 +0900)] 
network: add a flag to ignore gateway provided by DHCP server

Closes #15117.

5 years agocore: add support for setting CPUAffinity= to special "numa" value 14749/head
Michal Sekletár [Mon, 17 Feb 2020 12:50:31 +0000 (13:50 +0100)] 
core: add support for setting CPUAffinity= to special "numa" value

systemd will automatically derive CPU affinity mask from NUMA node
mask.

Fixes #13248

5 years agoshared: split out NUMA code from cpu-set-util.c to numa-util.c
Michal Sekletár [Mon, 17 Feb 2020 12:04:08 +0000 (13:04 +0100)] 
shared: split out NUMA code from cpu-set-util.c to numa-util.c

5 years agohome: fix segfault when parsing arguments in PAM module
Haochen Tong [Sun, 15 Mar 2020 22:34:35 +0000 (23:34 +0100)] 
home: fix segfault when parsing arguments in PAM module

5 years agoNEWS: fix use of tabs instead of spaces for one item
Mike Kazantsev [Sun, 15 Mar 2020 01:35:14 +0000 (06:35 +0500)] 
NEWS: fix use of tabs instead of spaces for one item

5 years agosd-bus: Add sd_bus_set_fd documentation along with some cleanups.
Daan De Meyer [Sun, 15 Mar 2020 20:10:37 +0000 (21:10 +0100)] 
sd-bus: Add sd_bus_set_fd documentation along with some cleanups.

5 years agotest: wait a bit after starting the test service
Frantisek Sumsal [Sat, 14 Mar 2020 09:36:17 +0000 (10:36 +0100)] 
test: wait a bit after starting the test service

otherwise we might end up being faster than the unit itself, causing
unexpected fails, like:

```
testsuite.sh[297]: + systemctl start issue_14566_test
testsuite.sh[297]: + systemctl status issue_14566_test
testsuite.sh[304]: ● issue_14566_test.service - Issue 14566 Repro
testsuite.sh[304]:      Loaded: loaded (/etc/systemd/system/issue_14566_test.service; static; vendor preset: enabled)
testsuite.sh[304]:      Active: active (running) since Sat 2020-03-14 02:02:23 UTC; 417ms ago
testsuite.sh[304]:    Main PID: 301 ((repro.sh))
testsuite.sh[304]:       Tasks: 1 (limit: 535)
testsuite.sh[304]:      Memory: 180.0K
testsuite.sh[304]:         CPU: 122ms
testsuite.sh[304]:      CGroup: /system.slice/issue_14566_test.service
testsuite.sh[304]:              └─301 [(repro.sh)]
testsuite.sh[307]: ++ cat /leakedtestpid
testsuite.sh[307]: cat: /leakedtestpid: No such file or directory
testsuite.sh[297]: + leaked_pid=
```

5 years agoMerge pull request #15104 from ssahani/networkctl-qdisc
Yu Watanabe [Mon, 16 Mar 2020 03:14:00 +0000 (12:14 +0900)] 
Merge pull request #15104 from ssahani/networkctl-qdisc

networkctl: Add support to display qdisc

5 years agosystemctl: emit notice about some kernel commandline options
Zbigniew Jędrzejewski-Szmek [Fri, 13 Mar 2020 14:50:37 +0000 (15:50 +0100)] 
systemctl: emit notice about some kernel commandline options

Things can be pretty confusing when there's a commandline option overrding the
configured default... Let's be nice to the user and emit a warning.

5 years agocore: consistently emit oom warning when parsing args
Zbigniew Jędrzejewski-Szmek [Fri, 13 Mar 2020 14:46:30 +0000 (15:46 +0100)] 
core: consistently emit oom warning when parsing args

In practice we are very unlikely to fail at this point, but for
consistency, we should always warn when allocation fails, and
we have free_and_strdup_warn() for this.

5 years agonetworkctl: Add support to display qdisc 15104/head
Susant Sahani [Fri, 13 Mar 2020 09:54:35 +0000 (10:54 +0100)] 
networkctl: Add support to display qdisc

./networkctl status ens38                                                                                                                                                                ─╯
● 4: ens38
             Link File: /usr/lib/systemd/network/99-default.link
          Network File: /usr/lib/systemd/network/10-ens38.network
                  Type: ether
                 State: routable (configured)
     Alternative Names: enp2s6
                  Path: pci-0000:02:06.0
                Driver: e1000
                Vendor: Intel Corporation
                 Model: 82545EM Gigabit Ethernet Controller (Copper) (PRO/1000 MT Single Port Adapter)
            HW Address: 00:0c:29:d2:42:7c (VMware, Inc.)
                   MTU: 1500 (min: 46, max: 16110)
                 QDisc: fq_codel        <============================
  Queue Length (Tx/Rx): 1/1
      Auto negotiation: yes
                 Speed: 1Gbps
                Duplex: full
                  Port: tp
               Address: 192.168.5.123
                        fe80::20c:29ff:fed2:427c

5 years agosd-netlink: Add IFLA_QDISC
Susant Sahani [Fri, 13 Mar 2020 09:54:02 +0000 (10:54 +0100)] 
sd-netlink: Add IFLA_QDISC

5 years agofix journalctl regression (#15099)
Georg Müller [Thu, 12 Mar 2020 19:02:21 +0000 (20:02 +0100)] 
fix journalctl regression (#15099)

This regression was introduced in #14913.

The current_file variable can be NULL, as, for example, with the
following commands:

* journalctl --list-boots
* journalctl -b -1 --no-pager

Since current_file is only checked for pointer equality with f, removing
the assertion is safe here.

5 years agoMerge pull request #15097 from keszybz/job-logging-and-news-update
Anita Zhang [Thu, 12 Mar 2020 20:01:00 +0000 (13:01 -0700)] 
Merge pull request #15097 from keszybz/job-logging-and-news-update

Job logging and news update

5 years agoshared/ask-password-api: do not show hint on echo
Christian Hesse [Wed, 11 Mar 2020 19:39:07 +0000 (20:39 +0100)] 
shared/ask-password-api: do not show hint on echo

Giving --echo to systemd-ask-password allows to echo the user input instead
of masking it. This is useful when querying for usernames or similar.

Showing "(press TAB for no echo)" does not make sense there, so do not.
Note that pressing TAB or ESC still disables echo.

5 years agofstab-generator: handle systemd.swap= command-line argument
nabijaczleweli [Sat, 21 Dec 2019 06:17:59 +0000 (07:17 +0100)] 
fstab-generator: handle systemd.swap= command-line argument

Don't generate swap units if set to false

The inverse of this argument is present as "noswap" on Debian sysvinit

Ref:
https://salsa.debian.org/debian/sysvinit/blob/4422988cb41c3022eee7444378cac3b2e36eac28/debian/vars.sh#L34
https://salsa.debian.org/debian/sysvinit/blob/4422988cb41c3022eee7444378cac3b2e36eac28/debian/src/initscripts/etc/init.d/mountall.sh#L78

Fixes https://github.com/systemd/systemd/issues/6686

5 years agoNEWS: add late note about job trimming issue 15097/head
Zbigniew Jędrzejewski-Szmek [Thu, 12 Mar 2020 14:21:42 +0000 (15:21 +0100)] 
NEWS: add late note about job trimming issue

Closes #15091.

5 years agocore: log an info line about the default target
Zbigniew Jędrzejewski-Szmek [Wed, 11 Mar 2020 12:40:17 +0000 (13:40 +0100)] 
core: log an info line about the default target

If the default target is not specified on the kernel command line, it
may not be obvious what we are booting into. See for example
https://github.com/systemd/systemd/issues/15062#issuecomment-597577464.

5 years agoMerge pull request #15095 from yuwata/tc-tiny-fixes
Yu Watanabe [Thu, 12 Mar 2020 12:17:10 +0000 (21:17 +0900)] 
Merge pull request #15095 from yuwata/tc-tiny-fixes

network, man: tiny trivial cleanups

5 years agolinux: update headers from v5.6
Yu Watanabe [Thu, 12 Mar 2020 06:10:36 +0000 (15:10 +0900)] 
linux: update headers from v5.6

5 years agoman: use include directive for Parent= or friends 15095/head
Yu Watanabe [Thu, 12 Mar 2020 09:33:15 +0000 (18:33 +0900)] 
man: use include directive for Parent= or friends

5 years agonetwork: rename type name to ProportionalIntegralControllerEnhanced
Yu Watanabe [Thu, 12 Mar 2020 09:18:18 +0000 (18:18 +0900)] 
network: rename type name to ProportionalIntegralControllerEnhanced

5 years agonamespace: fix MAC labels of /dev when PrivateDevices=yes
Topi Miettinen [Tue, 18 Feb 2020 11:18:39 +0000 (13:18 +0200)] 
namespace: fix MAC labels of /dev when PrivateDevices=yes

Without changing the SELinux label for private /dev of a service, it will take
a generic file system label:
system_u:object_r:tmpfs_t:s0

After this change it is the same as without `PrivateDevices=yes`:
system_u:object_r:device_t:s0

This helps writing SELinux policies, as the same rules for `/dev` will apply
despite any `PrivateDevices=yes` setting.

5 years agoMerge pull request #15084 from yuwata/network-tc-next
Yu Watanabe [Thu, 12 Mar 2020 08:17:26 +0000 (17:17 +0900)] 
Merge pull request #15084 from yuwata/network-tc-next

network: tc-next take2

5 years agotest-network: add a test case for HHF 15084/head
Yu Watanabe [Wed, 11 Mar 2020 17:40:29 +0000 (02:40 +0900)] 
test-network: add a test case for HHF

5 years agonetwork: TC - introduce HHF
Susant Sahani [Wed, 11 Mar 2020 10:55:13 +0000 (11:55 +0100)] 
network: TC - introduce HHF

Please see https://lwn.net/Articles/577208/

5 years agosd-netlink: add HHF netlink property
Susant Sahani [Wed, 11 Mar 2020 10:54:26 +0000 (11:54 +0100)] 
sd-netlink: add HHF netlink property

5 years agotest-network: add a test case for PFIFOFast
Yu Watanabe [Wed, 11 Mar 2020 17:28:59 +0000 (02:28 +0900)] 
test-network: add a test case for PFIFOFast

5 years agonetwork: TC - introduce pfifo_fast
Susant Sahani [Wed, 11 Mar 2020 10:02:20 +0000 (11:02 +0100)] 
network: TC - introduce pfifo_fast

pfifo_fast - three-band first in, first out queue

Please see https://linux.die.net/man/8/tc-pfifo_fast

5 years agotest-network: add a test case for PFIFOHeadDrop
Yu Watanabe [Wed, 11 Mar 2020 17:09:06 +0000 (02:09 +0900)] 
test-network: add a test case for PFIFOHeadDrop

5 years agonetwork: TC - introduce pfifo_head_drop
Susant Sahani [Tue, 10 Mar 2020 12:19:56 +0000 (13:19 +0100)] 
network: TC - introduce pfifo_head_drop

This adds the required changes to gain access to
the head drop classfull queuing discipline named
pfifo_head_drop.

5 years agotest-network: add a test case for BFIFO
Yu Watanabe [Wed, 11 Mar 2020 16:58:21 +0000 (01:58 +0900)] 
test-network: add a test case for BFIFO