Lennart Poettering
d55e43344b
Merge pull request #11971 from keszybz/kernel-install-directory
...
Make kernel-install create entry directory
2019-03-14 10:51:55 +01:00
Lennart Poettering
54c258566e
Merge pull request #11968 from yuwata/network-l2tp
...
network: introduce L2TP tunnel
2019-03-14 10:36:21 +01:00
Benjamin Berg
db7270962f
hwdb: Fix airplane mode triggering when resuming HP Spectre x360 13
...
On these devices the key randomly fires during/after suspend/resume
triggering spurious airplane mode changes. The scancode simply needs to
be ignored.
2019-03-14 09:32:07 +01:00
Lennart Poettering
c648d4d4c8
man: mention that DynamicUser= should not be mixed with ReadWriteDirectory= or AF_UNIX dir fd passing
2019-03-14 09:31:09 +01:00
Zbigniew Jędrzejewski-Szmek
e2600fd582
bootctl: use path_join() to join paths
...
We would say "/boot/efi//loader/entries"...
2019-03-14 08:28:18 +01:00
Lennart Poettering
5763971014
man: be even more explicit that RestartPreventExitStatus= does not affect ExecStartPre=
...
The man page was already pretty clear about this, but apparently not
clear enough, let's hence extend this further.
Fixes : #11868
2019-03-14 08:11:12 +01:00
Yu Watanabe
cff83db917
test-network: add tests for L2TP
2019-03-14 11:12:32 +09:00
Yu Watanabe
3a27af62b5
network: wait for L2TP tunnel to be created before creating sessions
...
And if failed to create L2TP tunnel, then do not try to create sessions.
2019-03-14 10:57:41 +09:00
Yu Watanabe
0aa2fe6f9b
netlink: support NLMSG_ERROR message in genl
...
This resolves the following log message after L2TP tunnel or session is
created:
```
sd-netlink: ignored message with unknown type: 2
```
2019-03-14 10:57:41 +09:00
Yu Watanabe
d053d08a37
network: automatically pick an address on link when L2TP.Local= is not specified
...
This makes L2TP.Local= support an empty string, 'auto', 'static', and
'dynamic'. When one of the values are specified, a local address is
automatically picked from the local interface of the tunnel.
2019-03-14 10:57:41 +09:00
Susant Sahani
3a56e697c8
networkd: Introduce l2tp tunnel
...
This works allows networkd to configure l2tp tunnel.
See http://man7.org/linux/man-pages/man8/ip-l2tp.8.html
2019-03-14 10:57:41 +09:00
Yu Watanabe
7033af49df
network: introduce new netdev create type NETDEV_CREATE_AFTER_CONFIGURED
...
It will be used to support L2TP tunnel in later commits.
2019-03-14 10:57:41 +09:00
Yu Watanabe
859e9c0487
network: introduce netdev_get_create_type() helper function
2019-03-14 10:57:41 +09:00
Yu Watanabe
2b6db913e2
network: do not call link_joined() when not all netdevs are configured
...
If some of stacked netdevs are already configured, then link_joined()
is called before netdevs are fully configured.
2019-03-14 10:57:41 +09:00
Balint Reczey
6c8a2c6793
virt: detect WSL environment as a container (id: wsl)
2019-03-13 18:42:27 +01:00
Lennart Poettering
ef9fafbd91
tests: add tests for embedded newlines in /proc/cmdline
...
Prompted by: #7097
2019-03-13 17:07:02 +01:00
Lennart Poettering
cc5957dca0
bootspec: don't log in boot_entries_load_config_auto() about no ESP
...
Let's do it in the caller instead. That way, logind can stay silent
about it.
Fixes : #11950
2019-03-13 17:06:24 +01:00
Frantisek Sumsal
0ae4456c93
test: avoid double-fsck'ing of the rootfs on Arch
...
Since systemd 206 the combination of systemd and mkinitcpio
causes, under certain conditions, the rootfs to be double fsck'd.
Symptoms:
```
:: performing fsck on '/dev/sda1'
systemd: clean, 3523/125488 files, 141738/501760 blocks
********************** WARNING **********************
* *
* The root device is not configured to be mounted *
* read-write! It may be fsck'd again later. *
* *
*****************************************************
<snip>
[ OK ] Started File System Check on Root Device
```
This occurs when neither 'ro' or 'rw', or only 'ro' is present
on the kernel command line. The solution is to mount the roofs
as read-write on the kernel command line, so systemd knows to not fsck
it again.
2019-03-13 17:05:31 +01:00
Lennart Poettering
88f739cb11
man: clarify that sd_journal_seek_head() seeks *before* the first entry
2019-03-13 17:03:36 +01:00
Zbigniew Jędrzejewski-Szmek
a3b1790c1a
Merge pull request #11986 from poettering/util-split
...
some splitting up of util.[ch]
2019-03-13 17:02:14 +01:00
Tobias Jungel
7f15b71460
networkd: Add bridge port capabilities
...
This PR adds the configuration switches for multicast flooding, neighbor
suppression and learning of a bridge port.
2019-03-13 16:27:22 +01:00
Adam Jackson
183e8c0bea
login: mark nomodeset fb devices as master-of-seat
...
When 'nomodeset' is specified, there's no DRM driver to take over from
efifb. This means no device will be marked as a seat master, so gdm will
never find a sufficiently active seat to start on.
I'm not aware of an especially good way to detect this through a proper
kernel API, so check for the word 'nomodeset' on the command line and
allow fbdev devices to be seat masters if found.
For https://bugzilla.redhat.com/show_bug.cgi?id=1683197 .
2019-03-13 12:17:34 +01:00
Lennart Poettering
760877e90c
util: split out sorting related calls to new sort-util.[ch]
2019-03-13 12:16:43 +01:00
Lennart Poettering
0a9707187b
util: split out memcmp()/memset() related calls into memory-util.[ch]
...
Just some source rearranging.
2019-03-13 12:16:43 +01:00
Lennart Poettering
eefc66aa8f
util: split out some stuff into a new file limits-util.[ch]
2019-03-13 12:16:43 +01:00
Lennart Poettering
0cb8e3d118
util: split out namespace related stuff into a new namespace-util.[ch] pair
...
Just some minor reorganiztion.
2019-03-13 12:16:38 +01:00
Frantisek Sumsal
3f50fff536
test: don't overwrite TESTDIR if already set
2019-03-13 10:30:25 +01:00
Lennart Poettering
96c45cc697
Merge pull request #11861 from yuwata/network-verify-2
...
network: config parser updates and wireguard refactoring
2019-03-13 10:15:27 +01:00
Lennart Poettering
3cca6cfd41
Merge pull request #11893 from yuwata/wait-online-take-operstate
...
wait-online: optionally take required minimum operational state
2019-03-13 10:10:43 +01:00
Lennart Poettering
58fa7019a5
Merge pull request #11283 from yuwata/fix-11276
...
core/namespace: introduce new mount mode READWRITE_IMPLICIT
2019-03-13 09:57:18 +01:00
Yu Watanabe
2c65512ee7
cryptsetup: add same-cpu-crypt and submit-from-crypt-cpus options
...
Closes #11946 .
2019-03-13 09:48:50 +01:00
Lennart Poettering
05044ebff9
Merge pull request #11933 from keszybz/coverity
...
Minor tweaks to boot/efi code inspired by coverity
2019-03-13 09:36:57 +01:00
Yu Watanabe
07e1ffe4ae
wait-online: use log_link_debug() or friends
2019-03-13 14:29:03 +09:00
Yu Watanabe
e67ae9f5e6
network: move log_link_debug() or friends to log-link.h
2019-03-13 14:29:03 +09:00
Yu Watanabe
8d6082e4dd
man: update wait-online and RequiredForOnline= setting
2019-03-13 14:29:03 +09:00
Yu Watanabe
f023184e6d
wait-online: support $REQUIRED_OPER_STATE_FOR_ONLINE= in state file
...
This also make wait-online optionally take operstate in -i option,
and adds '--operstate' option to wait-online which also takes operstate.
Also, this contains huge refactoring for wait-online.
2019-03-13 14:29:03 +09:00
Yu Watanabe
22eab27caa
sd-network: add sd_network_link_get_required_operstate_for_online()
...
It reads $REQUIRED_OPER_STATE_FOR_ONLINE in serialized link data.
2019-03-13 14:29:03 +09:00
Yu Watanabe
4ac77d63e9
network: make RequiredForOnline= also take operational state
...
This will be used by systemd-networkd-wait-online.
2019-03-13 14:29:03 +09:00
Yu Watanabe
f9974167e4
hashmap: add hashmap_free_free_keyp and friend
2019-03-13 14:29:03 +09:00
Yu Watanabe
c9cc038343
network: introduce 'degraded-carrier' operstate to order all states
...
Previously, 'degraded' state is ambiguous for bonding or bridge master:
1. one or more slave interfaces does not have carrier,
2. no link local address is assigned to the master,
3. combination of the above two.
This makes the above case 1 and 3 are in the new 'degraded-carrier'
state, and makes 'degraded' state as all slaves are active but no
link local address on master.
2019-03-13 14:29:00 +09:00
Yu Watanabe
2cd6b9326c
network: move LinkOperationalState and relevant functions to network-util.[ch]
2019-03-13 14:28:38 +09:00
Yu Watanabe
4ddbf08cfd
test-network: wait more and fix wrong operational state
...
Closes #11977 .
2019-03-13 14:27:39 +09:00
Yu Watanabe
39bcff3bca
test-network: add test for WireGuard.PrivateKeyFile=
2019-03-13 12:02:08 +09:00
Yu Watanabe
76df77794a
wireguard: add PrivateKeyFile= option
...
Closes #11878 .
2019-03-13 12:02:03 +09:00
Yu Watanabe
9cc9021aed
wireguard: check whether PrivateKey= and PublicKey= are set
2019-03-13 11:59:18 +09:00
Yu Watanabe
fedcb4c3eb
wireguard: drop unused arguments and rename parse_wireguard_key()
2019-03-13 11:59:18 +09:00
Yu Watanabe
583eb170f0
wireguard: do not log wireguard key
...
It may be PrivateKey=.
2019-03-13 11:59:18 +09:00
Yu Watanabe
85c987a82d
wireguard: reuse sd_event_source object
2019-03-13 11:59:18 +09:00
Yu Watanabe
f1368a333e
wireguard: use NetworkConfigSection to manage [WireGuardPeer] sections
...
This also contains huge refactoring of wireguard support.
2019-03-13 11:59:18 +09:00
Yu Watanabe
bbb5aebe3e
test-network: add tests for invalid Address sections
2019-03-13 11:59:18 +09:00