summaryrefslogtreecommitdiffstats
path: root/man/networkctl.xml (unfollow)
Commit message (Collapse)AuthorFilesLines
2019-10-29nspawn: wrap some long linesZbigniew Jędrzejewski-Szmek1-9/+13
2019-10-29boot-loader-spec: add devicetree-overlay keyMichael Tretter1-0/+6
Device tree overlays are a convenient way to patch device trees, e.g., add new devices to a device tree or enable/disable devices. This is useful for non-discoverable but configurable hardware. Device tree overlays are commonly used for displays on the Raspberry Pi or for describing the content of FPGA bitstreams. Add the devicetree-overlay key to boot loader specification entries to allow boot loaders to apply overlays. See #13537
2019-10-29network-generator: Add missing help for --rootDavid Pedersen1-0/+1
2019-10-28core: drop 'wants' parameter from unit_add_node_dependency()Franck Bui5-18/+8
Since Wants dependency is no more automagically added to swap and mount units, this parameter is no more used hence this patch drops it.
2019-10-28swap: do not make swap units wanted by its device unit anymoreFranck Bui1-6/+5
It was done for mount units already (see commit 142b8142d7bb84f07). For the same reasons and for consistency we should also stop activating automagically swaps when their device is hot-plugged.
2019-10-28modules-load: do not fail service if modules are not presentZbigniew Jędrzejewski-Szmek1-2/+4
It is pretty common for the service to fail in the initramfs (for example because certain modules have not been copied over or haven't been built yet in case of dkms modules). This seems to be more trouble than it is worth. Let's change the service to simply log any missing modules at error level, but not fail the whole service. https://bugzilla.redhat.com/show_bug.cgi?id=1254340
2019-10-28pid1: order .automount units after local-fs-pre.targetZbigniew Jędrzejewski-Szmek1-0/+4
From the bug: > According to the documentation of systemd.automount if the automoint point is > automagically created if it doesn't exist yet. This ofcourse means the > filesystem underneath has to be writable, which for / means not only does > -.mount need to be started but also systemd-remount-fs.service has to be run, > which isn't guaranteed by the default automount dependencies. > > For .mount units there is an automatic default After= dependency on > local-fs-pre.target, would probably make sense to do the same for automount > units to avoid it failing on the corner-case where it has to create directory. Fixes #13306.
2019-10-28pam_systemd: Forward systemd.runtime_max_sec setting to session scopePhilip Withnall2-3/+36
Allow earlier PAM modules to set `systemd.runtime_max_sec`. If they do, parse it and set it as the `RuntimeMaxUSec=` property of the session scope, to limit the maximum lifetime of the session. This could be useful for time-limiting login sessions, for example. Signed-off-by: Philip Withnall <withnall@endlessm.com> Fixes: #12035
2019-10-28scope: Support RuntimeMaxSec= directive in scope unitsPhilip Withnall9-2/+65
Just as `RuntimeMaxSec=` is supported for service units, add support for it to scope units. This will gracefully kill a scope after the timeout expires from the moment the scope enters the running state. This could be used for time-limited login sessions, for example. Signed-off-by: Philip Withnall <withnall@endlessm.com> Fixes: #12035
2019-10-26po: update Polish translationPiotr Drąg1-2/+20
2019-10-26meson: expand ternary in functions to if statementsAnita Zhang1-3/+4
Per https://github.com/mesonbuild/meson/issues/5003, ternary doesn't always work as function args with older versions of meson. Expand out ternary statements to stay compatible with older versions (< 0.49).
2019-10-25meson: allow WatchdogSec= in services to be configuredZbigniew Jędrzejewski-Szmek17-16/+23
As discussed on systemd-devel [1], in Fedora we get lots of abrt reports about the watchdog firing [2], but 100% of them seem to be caused by resource starvation in the machine, and never actual deadlocks in the services being monitored. Killing the services not only does not improve anything, but it makes the resource starvation worse, because the service needs cycles to restart, and coredump processing is also fairly expensive. This adds a configuration option to allow the value to be changed. If the setting is not set, there is no change. My plan is to set it to some ridiculusly high value, maybe 1h, to catch cases where a service is actually hanging. [1] https://lists.freedesktop.org/archives/systemd-devel/2019-October/043618.html [2] https://bugzilla.redhat.com/show_bug.cgi?id=1300212
2019-10-25shared/sleep-config: two more error handling fixes, use structured ↵Zbigniew Jędrzejewski-Szmek1-13/+14
initialization CID#1406472.
2019-10-25shared/sleep-config: fix error handling for openZbigniew Jędrzejewski-Szmek1-3/+2
CID#1406472.
2019-10-25resolved: emit change for CurrentDNSServerZbigniew Jędrzejewski-Szmek2-1/+4
2019-10-25resolved: emit change for LLMNRHostnameZbigniew Jędrzejewski-Szmek2-2/+6
2019-10-25resolved: send out notifications about DNS propertyZbigniew Jędrzejewski-Szmek4-1/+22
Notifications are only sent for the top object, and not for individual links. This should be enough for the most obvious cases where somebody just cares about the effective set of servers. Fixes #13721.
2019-10-25resolved: make two functions staticZbigniew Jędrzejewski-Szmek2-5/+2
2019-10-25resolved: one less {}Zbigniew Jędrzejewski-Szmek1-2/+1
2019-10-25resolved: avoid allocationZbigniew Jędrzejewski-Szmek4-8/+7
While at it, constify the argument.
2019-10-25fileio: introduce read_full_virtual_file() for reading virtual files in ↵Franck Bui3-5/+113
sysfs, procfs Virtual filesystems such as sysfs or procfs use kernfs, and kernfs can work with two sorts of virtual files. One sort uses "seq_file", and the results of the first read are buffered for the second read. The other sort uses "raw" reads which always go direct to the device. In the later case, the content of the virtual file must be retrieved with a single read otherwise subsequent read might get the new value instead of finding EOF immediately. That's the reason why the usage of fread(3) is prohibited in this case as it always performs a second call to read(2) looking for EOF which is subject to the race described previously. Fixes: #13585.
2019-10-25network: add default configurations for wireless interfacesYu Watanabe3-0/+20
2019-10-25network: support matching based on wifi interfece typeYu Watanabe17-30/+6648
2019-10-25various tools: be more explicit when a glob is passed when not supportedZbigniew Jędrzejewski-Szmek7-32/+50
See https://bugzilla.redhat.com/show_bug.cgi?id=1763488: when we say that 'foo@*.service' is not a valid unit name, this is not clear enough. Let's include the name of the operation that does not support globbing in the error message: $ build/systemctl enable 'foo@*.service' Glob pattern passed to enable, but globs are not supported for this. Invalid unit name "foo@*.service" escaped as "foo@\x2a.service". ...
2019-10-25resolved: set stream type during DnsStream creationDan Streetman1-0/+1
The DnsStreamType was added to track different types of DNS TCP streams, instead of refcounting all of them together. However, the stream type was not actually set into the stream->type field, so while the reference count was correctly incremented per-stream-type, the reference count was always decremented in the cleanup function for stream type 0, leading to underflow for the type 0 stream (unsigned) refcount, and preventing new type 0 streams from being created. Since type 0 is DNS_STREAM_LOOKUP, which is used to communicate with upstream nameservers, once the refcount underflows the stub resolver no longer is able to successfully fall back to TCP upstream lookups for any truncated UDP packets. This was found because lookups of A records with a large number of addresses, too much to fit into a single 512 byte DNS UDP reply, were causing getaddrinfo() to fall back to TCP and trigger this bug, which then caused the TCP fallback for later large record lookups to fail with 'connection timed out; no servers could be reached'. The stream type was introduced in commit: 652ba568c6624bf40d735645f029d83d21bdeaa6
2019-10-25machine-id-setup: avoid unexpected abortingChen Qi1-1/+1
Code should not be reached 'Unhandled option' at src/machine-id-setup/machine-id-setup-main.c:97, function parse_argv(). Aborting. Aborted This behaviour is not good and will confuse user. Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
2019-10-24systemd-sleep: improve /proc/swaps open fail messageZach Smith1-1/+1
2019-10-24systemd-sleep: always prefer resume device or fileZach Smith3-119/+236
This change checks each swap partition or file reported in /proc/swaps to see if it matches the values configured with resume= and resume_offset= kernel parameters. If a match is found, the matching swap entry is used as the hibernation location regardless of swap priority.
2019-10-24basic/fs-util: change CHASE_OPEN flag into a separate output parameterZbigniew Jędrzejewski-Szmek33-180/+197
chase_symlinks() would return negative on error, and either a non-negative status or a non-negative fd when CHASE_OPEN was given. This made the interface quite complicated, because dependning on the flags used, we would get two different "types" of return object. Coverity was always confused by this, and flagged every use of chase_symlinks() without CHASE_OPEN as a resource leak (because it would this that an fd is returned). This patch uses a saparate output parameter, so there is no confusion. (I think it is OK to have functions which return either an error or an fd. It's only returning *either* an fd or a non-fd that is confusing.)
2019-10-24test-socket-util: avoid writing past the defined bufferZbigniew Jędrzejewski-Szmek1-3/+2
.sun_path has 108 bytes, and we'd write a string of 108 bytes + NUL. I added this test, but I don't know what it was supposed to test. Let's just remove. Fixes #13713. CID#1405854.
2019-10-24sd-dhcp-client: do not call assert in public functionsZbigniew Jędrzejewski-Szmek1-5/+5
2019-10-24sd-dhcp-client: remove unnecessary cleanup functionZbigniew Jędrzejewski-Szmek1-5/+2
https://github.com/systemd/systemd/pull/13663#discussion_r335327099
2019-10-24sd-netlink: constify object pointers passed to gettersZbigniew Jędrzejewski-Szmek7-83/+83
sd-netlink is not public yet, so we can change the interface. I did not touch interfaces of functions like sd_netlink_wait() and sd_rtnl_message_new_link() which do not modify the object that is passed in, because in the future we might want to change the code to e.g. take a reference to the parent object or otherwise require a non-const reference.
2019-10-24sd-device: allow sd_device_get_devtype to be called with NULL arg and do not ↵Zbigniew Jędrzejewski-Szmek1-4/+4
assert We shouldn't call assert() on user-specified arguments in public functions. While at it, let's return 1 if the type exists, and 0 otherwise.
2019-10-24Move PLYMOUTH_SOCKET define to def.h and nuke plymouth-util.hZbigniew Jędrzejewski-Szmek5-10/+7
Let's not have a file with a single define.
2019-10-24Remove unused plymouth_running() functionZbigniew Jędrzejewski-Szmek3-14/+0
2019-10-24test: drop duplicated 's'Yu Watanabe1-1/+1
This fixes the following log message ``` Container TEST-07-ISSUE-1981 terminated by signal KILL. E: test timed out after 30s s ```
2019-10-24network: add tests for "networkctl reconfigure"Yu Watanabe1-0/+27
2019-10-24networkctl: introduce reconfigure methodYu Watanabe2-20/+74
2019-10-24networkctl: use format_ifname_full()Yu Watanabe1-12/+6
2019-10-24networkctl: fix error messageYu Watanabe1-1/+2
2019-10-24format-util: introduce format_ifname_full()Yu Watanabe2-3/+24
2019-10-24network: introduce Reconfigure() bus methodYu Watanabe6-5/+46
2019-10-24network: include netinet/in.h to fix build errorYu Watanabe1-0/+1
2019-10-24test-network: add tests for "networkctl reload"Yu Watanabe1-0/+26
2019-10-24networkctl: add reload commandYu Watanabe2-0/+36
2019-10-24network: also reload .netdev filesYu Watanabe4-7/+13
2019-10-24network: add Reload() dbus methodYu Watanabe6-20/+108
2019-10-24udev/cdrom_id: Do not open CD-rom in exclusive mode.Michal Suchanek1-23/+1
When you have a CD automunt solution that talks directly to the kernel independently of udev it races with cdrom_id for exclusive access to the device failing unpredictably. The whole is_mounted function in cdrom_id is broken: there is no saying what happens between calling is_mounted and opening the device. Hence assume that the device can be mounted asynchronously at any time, do not use exclusive access, and do away with is_mouted. Signed-off-by: Michal Suchanek <msuchanek@suse.de>
2019-10-24networkctl: print ssid and bssidZbigniew Jędrzejewski-Szmek1-0/+61