Yu Watanabe
a65e34ccb0
machinectl: do not ellipsize table when --full is specified
2020-01-10 12:24:51 +09:00
Yu Watanabe
b683b82fe7
busctl: introduce --full command line option
2020-01-10 12:19:47 +09:00
Yu Watanabe
a42d949080
networkctl: set table width 0 when --full is specified
2020-01-10 12:12:00 +09:00
Yu Watanabe
a362c069a9
systemd-mount: add --full command line option
2020-01-10 12:07:28 +09:00
Lennart Poettering
bcf00b6c0a
format-table: allow forcing arbitrary width tables
...
Useful for implementing systemctl's --full.
See #14470
2020-01-10 11:53:28 +09:00
Anita Zhang
79bb680cbf
Merge pull request #14527 from poettering/socket-state-fix
...
core: propagate service state to socket in more load states
2020-01-09 17:10:48 -08:00
Lennart Poettering
8ac7339648
Merge pull request #14525 from yuwata/mount-use-format-table
...
systemd-mount: use format-table.[ch]
2020-01-09 15:47:24 +01:00
Lennart Poettering
404308486a
core: be more restrictive on the dependency types we allow to be created transiently
...
We should allow the ones that the [Unit] section of regular unit files
may accet, but no other, in particular not the internal deps we
synthesize as reverse of explicitly configured ones, such was WantedBy=.
Fixes : #14251
2020-01-09 15:42:34 +01:00
Yu Watanabe
cf57766d79
timedatectl: use format-table.[ch]
2020-01-09 15:40:50 +01:00
Yu Watanabe
a5279634c0
systemd-mount: add --no-legend command line option
2020-01-09 20:16:03 +09:00
Yu Watanabe
6ae6ea55d8
systemd-mount: use format-table.[ch]
2020-01-09 20:16:03 +09:00
Yu Watanabe
f93d876c80
format-table: introduce TABLE_PATH
2020-01-09 20:16:03 +09:00
Lennart Poettering
4c2ef32767
core: propagate service state to socket in more load states
...
It makes sense to filter state changes for some load states that
shouldn't happen, but the common cases should be accepted, because they
might happen during runtime when "systemctl daemon-reload" is issued and
unit files changed state in between. Otherwise we lose events.
Fixes : #4708
2020-01-09 11:53:26 +01:00
Yu Watanabe
125c7814fa
Merge pull request #14523 from keszybz/refactorings
...
Refactorings inspired by recent pull requests
2020-01-09 12:50:11 +09:00
Zbigniew Jędrzejewski-Szmek
b44d87e200
sd-event: use _cleanup_ in one more place
2020-01-08 17:15:54 +01:00
Zbigniew Jędrzejewski-Szmek
1eac79486e
sd-event: use RAII for struct epoll_event
...
Inspired by #14353 .
2020-01-08 17:15:46 +01:00
Zbigniew Jędrzejewski-Szmek
0475919b56
network: use automatic stack allocation and structured init
2020-01-08 17:15:19 +01:00
Zbigniew Jędrzejewski-Szmek
6666c4faee
network: do not require ethtool_get_permanent_macaddr() to get an fd
2020-01-08 17:14:56 +01:00
Lennart Poettering
6a6078a585
test: minor typo fix
...
As pointed out on: https://github.com/systemd/systemd/pull/14465#discussion_r364152064
2020-01-08 14:50:30 +00:00
Lennart Poettering
0aa9bffe10
Merge pull request #14448 from yuwata/network-permanent-mac-address
...
network, udev: support permanent mac address
2020-01-08 15:36:27 +01:00
Lennart Poettering
a1edbc5118
Merge pull request #14511 from keszybz/sleep-check-rework
...
Sleep check rework
2020-01-08 14:26:17 +01:00
Lennart Poettering
48dfa8b0e1
Merge pull request #14512 from poettering/root-image-devices
...
Make RootImage= work reliable with DeviceAllow= in the mix
2020-01-08 12:18:38 +01:00
Zbigniew Jędrzejewski-Szmek
64be35ab02
network: rename *fd to *ethtool_fd
2020-01-08 11:55:07 +01:00
Zbigniew Jędrzejewski-Szmek
06ae8800d0
Merge pull request #14465 from poettering/setprio-rework
...
When Nice= is used, clamp to RLIMIT_NICE
2020-01-08 11:06:46 +01:00
Zbigniew Jędrzejewski-Szmek
629548c405
Merge pull request #14488 from yuwata/networkctl-show-logs
...
networkctl: status command also shows logs of networkd
2020-01-08 10:49:39 +01:00
Yu Watanabe
caa8538a22
networkctl: show permanent mac address if it is not used now
2020-01-08 17:54:59 +09:00
Yu Watanabe
4bb7cc8287
network, udev: introduce PermanentMACAddress= setting in [Match] section
...
Closes #13983 .
2020-01-08 17:54:54 +09:00
ezst036
95f2b4dd23
Support Plugable UD-PRO8 dock
...
Add support for Plugable Pro8 docking station for auto-configuring seat
2020-01-08 09:54:25 +01:00
Yu Watanabe
79b4428a7d
ethtool: introduce ethtool_get_permanent_macaddr()
...
Will be used in later commits.
2020-01-08 17:51:56 +09:00
Lennart Poettering
4f0840669e
gpt-auto: don't assume XBOOTLDR is vfat
...
Let's not assume "umask=" is a valid mount option for XBOOTLDR
partitions unconditionally.
Fixes : #14165
2020-01-08 09:51:42 +01:00
Robert Scheck
5ac8b50d58
network, meson: allow statically linked build
...
Build option "link-networkd-shared" to build a statically linked
systemd-networkd by using
-Dlink-udev-shared=false -Dlink-networkd-shared=false
on systems with full systemd stack except systemd-networkd, such
as RHEL/CentOS 8.
2020-01-08 09:50:32 +01:00
Zbigniew Jędrzejewski-Szmek
31ffbfd101
Merge pull request #14510 from poettering/net-naming-scheme-fixlets
...
some net naming scheme documentation fixes
2020-01-08 09:46:49 +01:00
Zbigniew Jędrzejewski-Szmek
8f817cb888
shared/sleep-config: do not ignore resume_offset when resume not set
...
This is most likely a user error, let's make it easier to diagnose.
2020-01-08 08:07:14 +01:00
Zbigniew Jędrzejewski-Szmek
8efc2c1608
shared/sleep-config: make swap detection stricter again
...
To make this easier to understand, let's always log (at debug level)
when we accept or reject each device:
/swapfile: detection of swap file offset on Btrfs is not supported
/swapfile: is a candidate device.
/dev/zram0: ignoring zram swap
/dev/vdb: ignoring device with lower priority
/dev/vdc: ignoring device with lower usable space
...
If we know that hibernation will fail, refuse. This includes cases where
/sys/power/resume is set and doesn't match any device, or
/sys/power/resume_offset is set and we're not on btrfs and it doesn't match.
If /sys/power/resume is not set at all, we still accept the device with the
highest priority (see 6d176522f5 and
88bc86fcf8 )
Tested cases:
1. no swap active → refuse
2. just zram swap active → refuse
3. swapfile on btrfs with /sys/power/resume{,_offset} set → OK
4. swapfile on btrfs with /sys/power/resume set, offset not set → refuse
5. swapfile on btrfs with /sys/power/resume set to nonexistent device, offset set → refuse
6. /sys/power/resume not set, offset set, candidate exists → OK (*)
7. /sys/power/resume not set, offset not set, candidate exists → OK
(*) I think this should fail, but I'm leaving that for the next commit.
2020-01-08 08:07:14 +01:00
Lennart Poettering
4353974d75
boot: fix osrel parser
...
let's check VERSION instead of VERSION_ID where appropriate.
Fixes : #14493
2020-01-07 19:32:14 +00:00
Lennart Poettering
65ad4ad89d
Merge pull request #14499 from yuwata/network-gateway-dhcp
...
network: static route via DHCP gateway
2020-01-07 19:17:51 +01:00
Lennart Poettering
867af7282b
unit: make sure to pull in modprobe@loop.service when RootImage= is used with DeviceAllow=
...
Fixes : #14214
2020-01-07 18:53:31 +01:00
Lennart Poettering
07141aa005
bpf-devices: line-break some overly long function signatures
2020-01-07 18:41:36 +01:00
Lennart Poettering
3ce252d0e0
udev: use dot_or_dot_dot() where appropriate
2020-01-07 18:02:53 +01:00
Zbigniew Jędrzejewski-Szmek
e9f0c5d08c
shared/sleep: use stat() instead of open()+fstat() in one place
...
No functional change.
2020-01-07 16:20:35 +01:00
Yu Watanabe
7a182f1034
udev: do not use exact match of file permission
...
This partially reverts 25de7aa7b9 .
Fixes #14473 .
2020-01-07 15:16:52 +01:00
Lennart Poettering
983ffdb0bf
Merge pull request #14481 from yuwata/virt-string-table
...
virt: use string table to detect VM or container
2020-01-07 15:16:31 +01:00
Yu Watanabe
6b50cb5ca9
nspawn: set original ifname as alternative if it is truncated
2020-01-07 15:15:59 +01:00
Yu Watanabe
98b0299479
network: append INTERFACE= attributes for logs corresponds to a netif
2020-01-07 22:20:43 +09:00
Yu Watanabe
10c71c3605
networkctl: status command also shows logs of networkd
...
Closes #14050 .
2020-01-07 22:20:37 +09:00
Lennart Poettering
67861acdf3
locale-util: extend comments on unicode glyph use, and drop mdash (that actually was an ndash)
...
Let's add the actual unicode names of the glyphs we use. Let's also add
in comments what the width expectations of these glyphs are on the
console.
Also, remove the "mdash" definition. First of all it wasn't used, but
what's worse the glyph encoded was actually an "ndash"...
Fixes : #14075
2020-01-07 13:21:22 +01:00
Lennart Poettering
a2a64d3ac9
Merge pull request #14420 from DaanDeMeyer/nspawn-fix-read-only-overlay-rootfs
...
nspawn: Don't mount read-only if we have a custom mount on root.
2020-01-07 12:14:24 +01:00
Yu Watanabe
1985c54ff3
network: static routes via DHCP gateway
...
This makes Gateway= also take "DHCP". If "DHCP" is set, then the gateway
address provided by DHCP or IPv6 RA is used.
Closes #8213 .
2020-01-07 19:10:54 +09:00
Yu Watanabe
25454a0c34
virt: drop trailing white spaces
2020-01-07 11:50:36 +09:00
Yu Watanabe
735ea55f5c
virt: use string table to detect VM or container
2020-01-07 11:50:36 +09:00