]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
4 years agodocs: Add some notes about managing graphical user sessions
Benjamin Berg [Mon, 10 Feb 2020 14:53:55 +0000 (15:53 +0100)] 
docs: Add some notes about managing graphical user sessions

This is work in progress and not finished yet. However, I hope to have
captured some of the key points that came up in previous discussions
with appropriate notes about things that still need to be defined.

I may revisit it later. Also, feel free to completely rewrite if the
format is not quite right.

4 years agohwdb: add Star Lite Mk II and Star LabTop Mk III (#14621)
Sean-StarLabs [Fri, 27 Mar 2020 19:07:58 +0000 (19:07 +0000)] 
hwdb: add Star Lite Mk II and Star LabTop Mk III (#14621)

4 years agoAdd Lenovo IdeaPad Miix 300 ACCEL_MOUNT_MATRIX
Tom [Sat, 21 Mar 2020 12:08:06 +0000 (13:08 +0100)] 
Add Lenovo IdeaPad Miix 300 ACCEL_MOUNT_MATRIX

4 years agouser-util: Allow names starting with a digit
Balint Reczey [Wed, 18 Mar 2020 17:29:02 +0000 (18:29 +0100)] 
user-util: Allow names starting with a digit

In 1a29610f5fa1bcb2eeb37d2c6b79d8d1a6dbb865 the change inadvertedly
disabled names with digit as the first character. This follow-up change
allows a digit as the first character in compat mode.

Fixes: #15141
4 years agocore/unit: print info when unit_add_name failed
Wen Yang [Wed, 25 Mar 2020 09:08:50 +0000 (17:08 +0800)] 
core/unit: print info when unit_add_name failed

When there are hundreds of mounts on the server, it will take a long
time to analyze the failure of a certain mount unit. So it is useful
to print the reason why unit_add_name() failed.

4 years agoRemove stale doc about PrivateNetwork and type
Zhu Li [Wed, 25 Mar 2020 16:11:52 +0000 (11:11 -0500)] 
Remove stale doc about PrivateNetwork and type

4 years agosystemd-network-generator.service: network-pre.target is a passive target unit
Franck Bui [Fri, 27 Mar 2020 08:22:39 +0000 (09:22 +0100)] 
systemd-network-generator.service: network-pre.target is a passive target unit

4 years agoAdd `shell` to machinectl ZSH completion
Pieter Lexis [Fri, 27 Mar 2020 10:26:14 +0000 (11:26 +0100)] 
Add `shell` to machinectl ZSH completion

4 years agoMerge pull request #15186 from DaanDeMeyer/clangd-fix-wstring-plus-int
Anita Zhang [Thu, 26 Mar 2020 23:45:01 +0000 (16:45 -0700)] 
Merge pull request #15186 from DaanDeMeyer/clangd-fix-wstring-plus-int

Silence Wstring-plus-int warning when using clangd with GCC.

4 years agoMerge pull request #15236 from ssahani/br-follow-up
Anita Zhang [Thu, 26 Mar 2020 23:27:33 +0000 (16:27 -0700)] 
Merge pull request #15236 from ssahani/br-follow-up

shared- bride util allign bridge_state_table

4 years agoshared- bride util allign bridge_state_table 15236/head
Susant Sahani [Thu, 26 Mar 2020 18:43:58 +0000 (19:43 +0100)] 
shared- bride util allign bridge_state_table

4 years agopo: update Ukrainian translation (#15228)
Yuri Chornoivan [Thu, 26 Mar 2020 17:45:41 +0000 (19:45 +0200)] 
po: update Ukrainian translation (#15228)

4 years agoMerge pull request #15224 from ssahani/geneve
Zbigniew Jędrzejewski-Szmek [Thu, 26 Mar 2020 17:30:37 +0000 (18:30 +0100)] 
Merge pull request #15224 from ssahani/geneve

networkctl: Display more geneve properties

4 years agopath-lookup: Use default value for XDG_CONFIG_DIRS if environment is not set
David Edmundson [Wed, 25 Mar 2020 22:49:35 +0000 (22:49 +0000)] 
path-lookup: Use default value for XDG_CONFIG_DIRS if environment is not set

If XDG_CONFIG_DIRS is unset, the specification says we should assume
/etc/xdg.

4 years agoMerge pull request #15214 from ssahani/networkctl-br1
Zbigniew Jędrzejewski-Szmek [Thu, 26 Mar 2020 16:51:29 +0000 (17:51 +0100)] 
Merge pull request #15214 from ssahani/networkctl-br1

network: Introduce bridge util

4 years agoMerge pull request #15170 from keszybz/sd-bus-resolve-magic
Zbigniew Jędrzejewski-Szmek [Thu, 26 Mar 2020 16:08:09 +0000 (17:08 +0100)] 
Merge pull request #15170 from keszybz/sd-bus-resolve-magic

sd-bus: resolve SD_BUS_DEFAULT_* in more places

4 years agoMerge pull request #15209 from anitazha/moar-cgroup-utils
Zbigniew Jędrzejewski-Szmek [Thu, 26 Mar 2020 15:54:08 +0000 (16:54 +0100)] 
Merge pull request #15209 from anitazha/moar-cgroup-utils

cgroup-utils: convenience helpers

4 years agoMerge pull request #15191 from GiedriusS/feature/list-unit-files-return-1
Anita Zhang [Wed, 25 Mar 2020 23:50:30 +0000 (16:50 -0700)] 
Merge pull request #15191 from GiedriusS/feature/list-unit-files-return-1

systemctl: exit with 1 if no unit files found

4 years agosystemctl: exit with 1 if no unit files found 15191/head
Giedrius Statkevičius [Sun, 22 Mar 2020 13:49:55 +0000 (15:49 +0200)] 
systemctl: exit with 1 if no unit files found

Add a simple check on the number of unit files that were found: return
`-ENOENT` when none is found from the function and thus `systemctl`
consequently exits with `1` (`EXIT_FAILURE`) if none were found.

Verification:
```bash
root@image:~# systemctl list-unit-files dbus-nonexistant.service; echo
$?
UNIT FILE STATE VENDOR PRESET

0 unit files listed.
1
root@image:~# systemctl list-unit-files dbus.service; echo $?
UNIT FILE    STATE  VENDOR PRESET
dbus.service static enabled

1 unit files listed.
0
```

Fixes #15082.

4 years agonetworkctl: Display more geneve preperties 15224/head
Susant Sahani [Wed, 25 Mar 2020 13:52:52 +0000 (14:52 +0100)] 
networkctl: Display more geneve preperties

4 years agonetwork: Introduce geneve util
Susant Sahani [Wed, 25 Mar 2020 13:52:31 +0000 (14:52 +0100)] 
network: Introduce geneve util

4 years agocgroup-util: cg_get_xattr_malloc helper 15209/head
Anita Zhang [Wed, 18 Mar 2020 00:47:19 +0000 (17:47 -0700)] 
cgroup-util: cg_get_xattr_malloc helper

`cg_get_xattr_malloc` to read a cgroup xattr value and allocate space
to hold said value (simple helper combining existing functions).

4 years agocgroup-util: helper to cg_get_attribute and convert to uint64_t
Anita Zhang [Sun, 8 Mar 2020 01:14:35 +0000 (17:14 -0800)] 
cgroup-util: helper to cg_get_attribute and convert to uint64_t

A common pattern in the codebase is reading a cgroup memory value
and converting it to a uint64_t. Let's make it a helper and refactor a
few places to use it so it's more concise.

4 years agonetwork: attach sd-event in link_load() when creating link dhcp_client or ipv4ll
Dan Streetman [Mon, 23 Mar 2020 21:34:17 +0000 (17:34 -0400)] 
network: attach sd-event in link_load() when creating link dhcp_client or ipv4ll

Commit 08c588d18b1e337f856e6541f3f711be48718279 moved attachment of the
sd-event into creation of the dhcp_client or ipv4ll in dhcp4_configure()
or ipv4ll_configure(), but these can also be created in link_load(),
so that creation needs to also perform sd-event attachment.

Without this, dhcp_client or ipv4ll created in link_load() will not have
an ->event and will fail assertion, causing networkd to fail, e.g.:

Assertion 'client->event' failed at src/libsystemd-network/sd-dhcp-client.c:1283, function client_start_delayed(). Ignoring.
ens2: Could not acquire DHCPv4 lease: Invalid argument
ens2: Failed

4 years agonetworkctl: Use string table for bridge state 15214/head
Susant Sahani [Tue, 24 Mar 2020 11:23:35 +0000 (12:23 +0100)] 
networkctl: Use string table for bridge state

4 years agoshared: Introduce bridge util
Susant Sahani [Tue, 24 Mar 2020 11:23:08 +0000 (12:23 +0100)] 
shared: Introduce bridge util

4 years agonetworkctl: Add more bridge properties
Susant Sahani [Sun, 22 Mar 2020 13:27:30 +0000 (14:27 +0100)] 
networkctl: Add more bridge properties

4 years agoMerge pull request #15185 from ssahani/fix-sip-copy-paste
Zbigniew Jędrzejewski-Szmek [Tue, 24 Mar 2020 09:03:57 +0000 (10:03 +0100)] 
Merge pull request #15185 from ssahani/fix-sip-copy-paste

network: DHCP lease load SIP copy paste error

4 years agodavfs is a network file system
pelzvieh [Mon, 23 Mar 2020 10:15:11 +0000 (11:15 +0100)] 
davfs is a network file system

4 years agoFall back to kexec when no kexec binary exists
Arusekk [Sun, 22 Mar 2020 09:41:18 +0000 (10:41 +0100)] 
Fall back to kexec when no kexec binary exists

This may be not a popular setup, but in case kexec resides somewhere different
than the default location for KEXEC (`/usr/sbin/kexec`), don't just reboot and
try doing `reboot(RB_KEXEC)` instead, just like what `kexec -e` normally does.

4 years agounits: Don't mount tracefs in LXC
Balint Reczey [Sun, 22 Mar 2020 20:37:06 +0000 (21:37 +0100)] 
units: Don't mount tracefs in LXC

Mounting tracefs fails in unprivileged LXC containers and latest LXD
(3.23) bind mounts tracefs already.

Fixes https://github.com/lxc/lxd/issues/7059

4 years agoswap: check p->what for NULL
Vito Caputo [Sat, 21 Mar 2020 05:47:38 +0000 (22:47 -0700)] 
swap: check p->what for NULL

Commit 61f9cf4e4c introduced swap_get_parameters(s) but only
checked its return for NULL and not its ->what.

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

4 years agoman: fix typo in loader.conf(5)
ml [Sun, 22 Mar 2020 18:00:21 +0000 (19:00 +0100)] 
man: fix typo in loader.conf(5)

4 years agosd-bus: Add sd_bus_send docs + cleanups.
Daan De Meyer [Thu, 19 Mar 2020 17:52:52 +0000 (18:52 +0100)] 
sd-bus: Add sd_bus_send docs + cleanups.

4 years agonetworkctl: Add support to display SIP servers 15185/head
Susant Sahani [Sun, 22 Mar 2020 09:40:00 +0000 (10:40 +0100)] 
networkctl: Add support to display SIP servers

```
❯ build/networkctl status veth99                                                                                                                                                           ─╯
● 17: veth99
                     Link File: /usr/lib/systemd/network/99-default.link
                  Network File: /usr/lib/systemd/network/veth99.network
                          Type: ether
                         State: routable (configured)
                        Driver: veth
                    HW Address: 1e:04:f8:b8:2f:d4
                           MTU: 1500 (min: 68, max: 65535)
                         QDisc: noqueue
  IPv6 Address Generation Mode: eui64
          Queue Length (Tx/Rx): 1/1
              Auto negotiation: no
                         Speed: 10Gbps
                        Duplex: full
                          Port: tp
                       Address: 192.168.5.35 (DHCP4)
                                fe80::1c04:f8ff:feb8:2fd4
                       Gateway: 192.168.5.1
                           DNS: 192.168.5.1
                           NTP: 192.168.5.1
                           SIP: 192.168.5.4
                                192.168.5.5
                     Time Zone: Europe/Berlin

Mar 21 23:26:32 Zeus systemd-networkd[671]: veth99: Link DOWN
Mar 21 23:26:32 Zeus systemd-networkd[671]: veth99: Lost carrier
Mar 22 10:25:35 Zeus systemd-networkd[671]: veth99: Link UP
Mar 22 10:25:35 Zeus systemd-networkd[671]: veth99: Gained carrier
Mar 22 10:25:36 Zeus systemd-networkd[671]: veth99: Gained IPv6LL
Mar 22 10:29:02 Zeus systemd-networkd[671]: veth99: Link DOWN
Mar 22 10:29:02 Zeus systemd-networkd[671]: veth99: Lost carrier
Mar 22 10:29:13 Zeus systemd-networkd[671]: veth99: Link UP
Mar 22 10:29:13 Zeus systemd-networkd[671]: veth99: Gained carrier
Mar 22 10:29:14 Zeus systemd-networkd[671]: veth99: Gained IPv6LL

```

4 years agosd-network: Provice APIs to access SIP servers given by DHCP4 server
Susant Sahani [Sun, 22 Mar 2020 09:39:23 +0000 (10:39 +0100)] 
sd-network: Provice APIs to access SIP servers given by DHCP4 server

4 years agoSilence Wstring-plus-int warning when using clangd with GCC. 15186/head
Daan De Meyer [Sat, 21 Mar 2020 21:23:19 +0000 (22:23 +0100)] 
Silence Wstring-plus-int warning when using clangd with GCC.

4 years agonetwork: DHCP lease load SIP copy paste error
Susant Sahani [Sat, 21 Mar 2020 17:32:51 +0000 (18:32 +0100)] 
network: DHCP lease load SIP copy paste error

4 years agosd-bus: whitespace adjustments 15170/head
Zbigniew Jędrzejewski-Szmek [Thu, 19 Mar 2020 20:31:04 +0000 (21:31 +0100)] 
sd-bus: whitespace adjustments

4 years agosd-bus: support SD_BUS_DEFAULT* and don't crash in functions where bus is optional
Zbigniew Jędrzejewski-Szmek [Thu, 19 Mar 2020 20:30:44 +0000 (21:30 +0100)] 
sd-bus: support SD_BUS_DEFAULT* and don't crash in functions where bus is optional

In those functions where bus defaults to the m->bus, we should also
resolve the magic parameters. And if neither called with bus=NULL
and an unattached message, return properly instead of crashing in assert
later.

4 years agosd-bus: make sure SD_BUS_DEFAULT* works everywhere
Zbigniew Jędrzejewski-Szmek [Thu, 19 Mar 2020 20:28:25 +0000 (21:28 +0100)] 
sd-bus: make sure SD_BUS_DEFAULT* works everywhere

I'm not sure why those functions were not touched in
45b1f410ba699990e4033805fe64cc369b835f10. Anyway, it seems easier
to just support the magic parameters everywhere.

4 years agosd-bus: Add sd_bus_reply_method_return docs + cleanups
Daan De Meyer [Thu, 19 Mar 2020 18:52:54 +0000 (19:52 +0100)] 
sd-bus: Add sd_bus_reply_method_return docs + cleanups

4 years agosd-bus: add sd_bus_message_seal docs + cleanups
Daan De Meyer [Wed, 18 Mar 2020 19:47:49 +0000 (20:47 +0100)] 
sd-bus: add sd_bus_message_seal docs + cleanups

4 years agoFix keys on Medion Akoya P6669
Finn [Wed, 11 Mar 2020 20:38:58 +0000 (21:38 +0100)] 
Fix keys on Medion Akoya P6669

4 years agologin: allow non-console sessions to change vt
Arnaud Ferraris [Sat, 14 Mar 2020 01:08:50 +0000 (02:08 +0100)] 
login: allow non-console sessions to change vt

When starting a wayland session through a systemd service for a non-root
user, the compositor (based on wlroots) is denied the authorization to
change vt.
Once the user logs in, either through a local console or via ssh, the
compositor can work properly.

This is related to the login polkit policy:
- `allow_inactive` has value `auth_admin_keep`, denying any non-root
  user session the authorization to change vt
- `allow_active` has value `yes`, which explains why the vt change
  becomes possible once the user logs in through another channel

By changing the `allow_inactive` value to `yes`, any user session setup
in a service file can switch vt, allowing wayland sessions for non-root
users.

4 years agologind: log a more accurate error when we failed at session creation
Franck Bui [Tue, 17 Mar 2020 17:30:58 +0000 (18:30 +0100)] 
logind: log a more accurate error when we failed at session creation

We used to log the following error:

  "Start job for unit user-1000.slice failed with 'canceled'"

which can be really misleading if the actual job failed at *stopping* a unit.

Indeed "Start" was hard coded but it was wrong since we can also fail with stop
jobs which are enqueued when a session is stopped.

4 years agoMerge pull request #15153 from keszybz/man-bus-address
Zbigniew Jędrzejewski-Szmek [Thu, 19 Mar 2020 08:11:14 +0000 (09:11 +0100)] 
Merge pull request #15153 from keszybz/man-bus-address

Add two man pages for sd-bus

4 years agonetwork: Fix split in `SendOption=` on client and server
David Wood [Fri, 28 Feb 2020 18:28:49 +0000 (18:28 +0000)] 
network: Fix split in `SendOption=` on client and server

When specifying `DHCPv4.SendOption=`, it is used by systemd-networkd to
set the value of that option within the DHCP request that is sent out.
This differs to setting `DHCPServer.SendOption=`, which will place all
the options together as suboptions into the vendor-specific information
(code 43) option.

This commit adds two new config options, `DHCPv4.SendVendorOption=` and
`DHCPServer.SendVendorOption=`. These both have the behaviour of the old
`DHCPServer.SendOption=` flag, and set the value of the suboption in the
vendor-specific information option.

The behaviour of `DHCPServer.SendOption=` is then changed to reflect
that of `DHCPv4.SendOption=`. It will set the value of the corresponding
option in the DHCP request.

4 years agonetworkctl: Add support to display IPv6 addrgenmode
Susant Sahani [Wed, 18 Mar 2020 12:42:27 +0000 (13:42 +0100)] 
networkctl: Add support to display IPv6 addrgenmode

4 years agoselinux: delay mac_selinux_enforcing call after SELinux was determined to be enabled
Christian Göttsche [Tue, 17 Mar 2020 17:11:14 +0000 (18:11 +0100)] 
selinux: delay mac_selinux_enforcing call after SELinux was determined to be enabled

Calling `mac_selinux_enforcing()`, which calls `security_getenforce()`, on a SELinux disabled system causes the following error message to be printed:
    Failed to get SELinux enforced status: No such file or directory

Fixes: 257188f80ce1a083e3a88b679b898a73fecab53b ("selinux: cache enforced status and treat retrieve failure as enforced mode")
Supersedes: #15145

4 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.

4 years agoman: say "is" not "has been" 15153/head
Zbigniew Jędrzejewski-Szmek [Wed, 18 Mar 2020 16:57:07 +0000 (17:57 +0100)] 
man: say "is" not "has been"

4 years agoman: mention sd_bus_is_anonymous() and sd_bus_is_trusted()
Zbigniew Jędrzejewski-Szmek [Wed, 18 Mar 2020 16:00:02 +0000 (17:00 +0100)] 
man: mention sd_bus_is_anonymous() and sd_bus_is_trusted()

4 years agosd-bus: mark sd_bus_try_close() as deprecated
Zbigniew Jędrzejewski-Szmek [Wed, 18 Mar 2020 15:40:50 +0000 (16:40 +0100)] 
sd-bus: mark sd_bus_try_close() as deprecated

codesearch.debian.net shows no uses (except for the definition in systemd and
elogind).

$ cat > test.c

int main() {
  sd_bus_try_close(NULL);
  return 0;
}
$ gcc -Isrc/systemd -Wall -o testbus test.c -lsystemd
test.c: In function ‘main’:
test.c:4:3: warning: ‘sd_bus_try_close’ is deprecated [-Wdeprecated-declarations]
    4 |   sd_bus_try_close(NULL);
      |   ^~~~~~~~~~~~~~~~
In file included from test.c:1:
src/systemd/sd-bus.h:180:5: note: declared here
  180 | int sd_bus_try_close(sd_bus *bus) _sd_deprecated_; /* deprecated */
      |     ^~~~~~~~~~~~~~~~

4 years agobus: drop dead code for kdbus support
Zbigniew Jędrzejewski-Szmek [Wed, 18 Mar 2020 15:36:14 +0000 (16:36 +0100)] 
bus: drop dead code for kdbus support

sd_bus_try_close() always returns -EOPNOTSUPP if bus is a valid object.
It nevers returns -EBUSY. So we'd always go into the "fallback" path.

4 years agoman: describe sd_bus_default_flush_close()
Zbigniew Jędrzejewski-Szmek [Wed, 18 Mar 2020 15:28:35 +0000 (16:28 +0100)] 
man: describe sd_bus_default_flush_close()

4 years agoman: add sd_bus_set_address(3)
Zbigniew Jędrzejewski-Szmek [Wed, 18 Mar 2020 12:22:29 +0000 (13:22 +0100)] 
man: add sd_bus_set_address(3)

4 years agosd-bus: make bus_set_address_user always go through sd_bus_set_address
Zbigniew Jędrzejewski-Szmek [Wed, 18 Mar 2020 11:16:06 +0000 (12:16 +0100)] 
sd-bus: make bus_set_address_user always go through sd_bus_set_address

This way all the checks are done, and we don't leak a pointer if
bus_set_address_user() is called twice.

4 years agoman: add sd_bus_start(3)
Zbigniew Jędrzejewski-Szmek [Wed, 18 Mar 2020 10:38:15 +0000 (11:38 +0100)] 
man: add sd_bus_start(3)

4 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

4 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

4 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.

4 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

4 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

4 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

4 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.

4 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

4 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

4 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

4 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

4 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)

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

4 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%.

4 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.

4 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

4 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.

4 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

4 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`.

4 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`.

4 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.

4 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.

4 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

4 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

4 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

4 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.

4 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

4 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

4 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

4 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

4 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.

4 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=
```

4 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

4 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.

4 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.

4 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

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

4 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.

4 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

4 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.

4 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