]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
5 years agoMerge pull request #11897 from mrc0mmand/parallelize-TEST-24-UNIT-TESTS
Zbigniew Jędrzejewski-Szmek [Tue, 12 Mar 2019 10:21:06 +0000 (11:21 +0100)] 
Merge pull request #11897 from mrc0mmand/parallelize-TEST-24-UNIT-TESTS

test: parallelize tasks in TEST-24-UNIT-TESTS

5 years agolgtm: replace the query used for looking for fgets with a more general query
Evgeny Vereshchagin [Mon, 11 Mar 2019 20:05:13 +0000 (21:05 +0100)] 
lgtm: replace the query used for looking for fgets with a more general query

to make it easier to comlain about `strtok` :-)

Inspired by https://github.com/systemd/systemd/pull/11963, which, in turn,
was prompted by https://github.com/systemd/systemd/pull/11555.

5 years agoudev: fix memleak in 'udevadm trigger --settle'
Yu Watanabe [Tue, 12 Mar 2019 03:20:13 +0000 (12:20 +0900)] 
udev: fix memleak in 'udevadm trigger --settle'

Fixes #11966.

5 years agoefivars: make sure efi_loader_entry_name_valid() is always compiled in
Lennart Poettering [Mon, 11 Mar 2019 14:58:52 +0000 (15:58 +0100)] 
efivars: make sure efi_loader_entry_name_valid() is always compiled in

The string validation should always be done correctly, and not fail just
because EFI is turned off. After all an EFI loader entry name string
remains properly formatted regardless if EFI is on or off...

Fixes: #11948
5 years agoMerge pull request #11960 from mrc0mmand/more-fuzzers
Lennart Poettering [Mon, 11 Mar 2019 17:04:22 +0000 (18:04 +0100)] 
Merge pull request #11960 from mrc0mmand/more-fuzzers

fuzz: introduce more fuzzers

5 years agonetwork: introduce TripleSampling= option in CAN section
Clemens Gruber [Mon, 11 Mar 2019 14:25:20 +0000 (15:25 +0100)] 
network: introduce TripleSampling= option in CAN section

When enabled, three samples are used to determine the value of a
received bit by majority rule.

This patch adds support for the TripleSampling= option in the [CAN]
section of .network files.

5 years agotest-network: add tests for issue #11921
Yu Watanabe [Fri, 8 Mar 2019 03:34:56 +0000 (12:34 +0900)] 
test-network: add tests for issue #11921

5 years agonspawn: fix memleak uncovered by fuzzer 11960/head
Zbigniew Jędrzejewski-Szmek [Mon, 11 Mar 2019 13:27:29 +0000 (14:27 +0100)] 
nspawn: fix memleak uncovered by fuzzer

Also use TAKE_PTR as appropriate.

5 years agofuzz: add a memleak reproducer for fuzz-nspawn-settings
Frantisek Sumsal [Mon, 11 Mar 2019 11:56:10 +0000 (12:56 +0100)] 
fuzz: add a memleak reproducer for fuzz-nspawn-settings

5 years agofuzz: add nspawn-settings fuzzer
Frantisek Sumsal [Mon, 11 Mar 2019 11:43:20 +0000 (12:43 +0100)] 
fuzz: add nspawn-settings fuzzer

5 years agofuzz: add hostname-util fuzzer
Frantisek Sumsal [Mon, 11 Mar 2019 11:43:00 +0000 (12:43 +0100)] 
fuzz: add hostname-util fuzzer

5 years agofuzz: add env-file fuzzer
Frantisek Sumsal [Mon, 11 Mar 2019 11:42:26 +0000 (12:42 +0100)] 
fuzz: add env-file fuzzer

5 years agomachinectl: do not format size if freed disk space is "-1"
Yu Watanabe [Mon, 11 Mar 2019 03:51:51 +0000 (12:51 +0900)] 
machinectl: do not format size if freed disk space is "-1"

Closes #11941.

5 years agojournal-remote: do not request Content-Length if Transfer-Encoding is chunked
Yu Watanabe [Mon, 11 Mar 2019 03:27:18 +0000 (12:27 +0900)] 
journal-remote: do not request Content-Length if Transfer-Encoding is chunked

This fixes a bug introduced by 7fdb237f5473cb8fc2129e57e8a0039526dcb4fd.

Closes #11571.

5 years agofuzz: add bus-label fuzzer
Frantisek Sumsal [Sun, 10 Mar 2019 19:53:57 +0000 (20:53 +0100)] 
fuzz: add bus-label fuzzer

5 years agoimport: do not try to set selinux related attributes if selinux is disabled
Yu Watanabe [Mon, 11 Mar 2019 04:21:09 +0000 (13:21 +0900)] 
import: do not try to set selinux related attributes if selinux is disabled

Closes #11940.

5 years agoAdded support for touchpad hotkey for Lenovo Y50-70 (#11937)
StKob [Mon, 11 Mar 2019 09:50:56 +0000 (10:50 +0100)] 
Added support for touchpad hotkey for Lenovo Y50-70 (#11937)

5 years agonetwork: update logs
Yu Watanabe [Mon, 11 Mar 2019 05:30:45 +0000 (14:30 +0900)] 
network: update logs

5 years agoexecute: remove one aa profile output from context dump
Lennart Poettering [Thu, 7 Mar 2019 14:18:06 +0000 (15:18 +0100)] 
execute: remove one aa profile output from context dump

The same data is output a few lines further up already, drop one.

5 years agoFix compilation without EFI being enabled
Vesa Jääskeläinen [Sat, 9 Mar 2019 20:44:21 +0000 (22:44 +0200)] 
Fix compilation without EFI being enabled

If EFI is disabled compilation can fail with:

../src/login/logind-dbus.c: In function ‘property_get_reboot_to_boot_loader_entry’:
../src/login/logind-dbus.c:2772:29: error: implicit declaration of function ‘efi_loader_entry_name_valid’; did you mean ‘efi_loader_get_features’? [-Werror=implicit-function-declaration]
                 } else if (!efi_loader_entry_name_valid(v)) {
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~
                             efi_loader_get_features
../src/login/logind-dbus.c:2772:29: warning: nested extern declaration of ‘efi_loader_entry_name_valid’ [-Wnested-externs]

This adds stub for efi_loader_entry_name_valid() to enable compilation.

5 years agohwdb: label the trackpoint on IBM UltraNav keyboard as a pointing stick (#11934)
Lubomir Rintel [Sun, 10 Mar 2019 23:00:03 +0000 (00:00 +0100)] 
hwdb: label the trackpoint on IBM UltraNav keyboard as a pointing stick (#11934)

This is the TrackPoint on an older IBM-branded ThinkPad-y USB keyboard.
It needs ID_INPUT_POINTINGSTICK=1 for TrackPoint scrolling to work, and
also for the AttrTrackpointMultiplier quirk to apply in libinput
(otherwise the TrackPoint is too slooooow).

5 years agotimedate: fix emitted value when ntp client is enabled/disabled (#11951)
Yu Watanabe [Sun, 10 Mar 2019 19:44:21 +0000 (04:44 +0900)] 
timedate: fix emitted value when ntp client is enabled/disabled (#11951)

This fixes a regression originall caused by cf3872bd2 and
triggered by b4356b5720a.

Fixes #11944

5 years agofix a typo in the man page for dhcpserver
Robin Elvedi [Fri, 8 Mar 2019 18:17:21 +0000 (19:17 +0100)] 
fix a typo in the man page for dhcpserver

5 years agotest: try to determine QEMU_SMP dynamically 11897/head
Frantisek Sumsal [Tue, 5 Mar 2019 15:08:00 +0000 (16:08 +0100)] 
test: try to determine QEMU_SMP dynamically

If the QEMU_SMP value has not been explicitly set, try to determine it
from the number of online CPUs using the nproc utility. If this approach
fails, fall back to the default value QEMU_SMP=1.

This change should significantly help when running integration tests
under QEMU on multicore systems.

5 years agoMerge pull request #11922 from poettering/hostname-protect-fix
Lennart Poettering [Fri, 8 Mar 2019 16:46:42 +0000 (17:46 +0100)] 
Merge pull request #11922 from poettering/hostname-protect-fix

be a bit more conservative with enabling ProtectHostname= for everything

5 years agounits: turn of ProtectHostname= again for services hat need to know about system... 11922/head
Lennart Poettering [Thu, 7 Mar 2019 13:38:11 +0000 (14:38 +0100)] 
units: turn of ProtectHostname= again for services hat need to know about system hostname changes

ProtectHostname= turns off hostname change propagation from host to
service. This means for services that care about the hostname and need
to be able to notice changes to it it's not suitable (though it is
useful for most other cases still).

Let's turn it off hence for journald (which logs the current hostname)
for networkd (which optionally sends the current hostname to dhcp
servers) and resolved (which announces the current hostname via
llmnr/mdns).

5 years agoman: document that ProtectHostname= disables hostname change notifications
Lennart Poettering [Thu, 7 Mar 2019 13:38:07 +0000 (14:38 +0100)] 
man: document that ProtectHostname= disables hostname change notifications

5 years agocore: simplify and check validity of paths for RequiresMountsFor=
Yu Watanabe [Thu, 7 Mar 2019 06:12:10 +0000 (15:12 +0900)] 
core: simplify and check validity of paths for RequiresMountsFor=

Prompted by #11910.

5 years agoMerge pull request #11905 from poettering/catalog-fixes
Lennart Poettering [Thu, 7 Mar 2019 20:37:56 +0000 (21:37 +0100)] 
Merge pull request #11905 from poettering/catalog-fixes

various catalog fixes

5 years agorandom-seed: don't use "label" version of mkdir_parents() 11905/head
Lennart Poettering [Thu, 7 Mar 2019 14:06:37 +0000 (15:06 +0100)] 
random-seed: don't use "label" version of mkdir_parents()

We don't load the selinux label database anyway, hence this is not going
to do anything at all. Let's simplify this hence and drop the explicit
request.

Also note that today SELinux can take the filename into account when
automatically deducing the label for a new file, hence even if this code
actually would have done something it is redundant today.

5 years agocatalog: _cleanup_close_ is your friend
Lennart Poettering [Wed, 6 Mar 2019 10:42:35 +0000 (11:42 +0100)] 
catalog: _cleanup_close_ is your friend

5 years agocatalog: (void)ify all things
Lennart Poettering [Wed, 6 Mar 2019 10:42:12 +0000 (11:42 +0100)] 
catalog: (void)ify all things

5 years agocatalog: use structured initialization more
Lennart Poettering [Wed, 6 Mar 2019 10:41:59 +0000 (11:41 +0100)] 
catalog: use structured initialization more

5 years agocatalog: let's use mkdir_parents() and use same mode as tmpfiles.d for this dir
Lennart Poettering [Wed, 6 Mar 2019 10:40:31 +0000 (11:40 +0100)] 
catalog: let's use mkdir_parents() and use same mode as tmpfiles.d for this dir

let's use mkdir_parents() (because its shorter), and 0755 as access
mode, so that things have the access mode tmpfiles.d also suggests.

Prompted by: #11903

5 years agocatalog: be a bit less aggressive with line breaking. After all 109ch is what we...
Lennart Poettering [Wed, 6 Mar 2019 10:39:11 +0000 (11:39 +0100)] 
catalog: be a bit less aggressive with line breaking. After all 109ch is what we going for

5 years agocatalog: don't make catalog_entry_lang() clobber output params on failure
Lennart Poettering [Wed, 6 Mar 2019 10:38:28 +0000 (11:38 +0100)] 
catalog: don't make catalog_entry_lang() clobber output params on failure

A minor fix to bring this in-line with our coding style

5 years agounits: fix systemd.special man page reference in system-update-cleanup.service
Michael Biebl [Thu, 7 Mar 2019 11:02:53 +0000 (12:02 +0100)] 
units: fix systemd.special man page reference in system-update-cleanup.service

5 years agoMerge pull request #11916 from yuwata/pid1-id-renaming-handling
Lennart Poettering [Thu, 7 Mar 2019 13:42:08 +0000 (14:42 +0100)] 
Merge pull request #11916 from yuwata/pid1-id-renaming-handling

core: handle ID_RENAMING= udev property

5 years agoMerge pull request #11918 from keszybz/clang-8
Lennart Poettering [Thu, 7 Mar 2019 13:41:44 +0000 (14:41 +0100)] 
Merge pull request #11918 from keszybz/clang-8

Two trivial changes to build with clang 8

5 years agonspawn: move payload to sub-cgroup first, then sync cgroup trees
Lennart Poettering [Tue, 5 Mar 2019 17:57:53 +0000 (18:57 +0100)] 
nspawn: move payload to sub-cgroup first, then sync cgroup trees

if we sync the legacy and unified trees before moving to the right
subcgroup then ultimately the cgroup paths in the hierarchies will be
out-of-sync... Hence, let's move the payload first, and sync then.

Addresses: https://github.com/systemd/systemd/pull/9762#issuecomment-441187979

5 years agopo: update Polish translation
Piotr Drąg [Wed, 6 Mar 2019 17:59:02 +0000 (18:59 +0100)] 
po: update Polish translation

5 years agotest-execute: avoid undefined variable warning when compiled w/o seccomp 11918/head
Zbigniew Jędrzejewski-Szmek [Thu, 7 Mar 2019 09:56:38 +0000 (10:56 +0100)] 
test-execute: avoid undefined variable warning when compiled w/o seccomp

5 years agobuild-sys: disable -Wstring-plus-int
Zbigniew Jędrzejewski-Szmek [Thu, 7 Mar 2019 09:56:15 +0000 (10:56 +0100)] 
build-sys: disable -Wstring-plus-int

clang-8 warns about constructs like "foobar"+3 (to get "bar"). We
like to use patterns like this, so let's just disable the warning.

5 years agoremove "." path components from required mount paths
Stephane Chazelas [Wed, 6 Mar 2019 22:16:55 +0000 (22:16 +0000)] 
remove "." path components from required mount paths

unit_require_mounts_for may be passed path arguments that contain "."
components like for user's home directories where "." is sometimes used
to specify some form of anchor point.

This change stops considering such path as an error and removes the "."
components instead.

Closes: #11910
5 years agohwdb: Add support for Alienware touchpad toggle
Kai-Heng Feng [Wed, 6 Mar 2019 16:28:10 +0000 (00:28 +0800)] 
hwdb: Add support for Alienware touchpad toggle

BugLink: https://bugs.launchpad.net/bugs/1605433
5 years agoMerge pull request #11911 from keszybz/bootspec-handle-invalid-efi
Lennart Poettering [Thu, 7 Mar 2019 09:01:31 +0000 (10:01 +0100)] 
Merge pull request #11911 from keszybz/bootspec-handle-invalid-efi

Bootspec handle invalid efi

5 years agoTODO: update 11916/head
Yu Watanabe [Thu, 7 Mar 2019 05:49:09 +0000 (14:49 +0900)] 
TODO: update

5 years agotest: add test for ID_RENAMING= udev property handling by pid1
Yu Watanabe [Thu, 7 Mar 2019 05:47:43 +0000 (14:47 +0900)] 
test: add test for ID_RENAMING= udev property handling by pid1

5 years agoman: mention possible actions supported by "udevadm trigger"
Yu Watanabe [Thu, 7 Mar 2019 05:45:38 +0000 (14:45 +0900)] 
man: mention possible actions supported by "udevadm trigger"

5 years agoudevadm trigger: make --action option support all possible actions
Yu Watanabe [Thu, 7 Mar 2019 05:43:33 +0000 (14:43 +0900)] 
udevadm trigger: make --action option support all possible actions

This also make udevadm abort operations if invalid action is specified.

5 years agosd-device: move device_action_from_string() and friends to device-private.h
Yu Watanabe [Thu, 7 Mar 2019 05:42:36 +0000 (14:42 +0900)] 
sd-device: move device_action_from_string() and friends to device-private.h

5 years agocore/device: make devices with ID_RENAMING= property be considered not ready
Yu Watanabe [Thu, 7 Mar 2019 03:54:58 +0000 (12:54 +0900)] 
core/device: make devices with ID_RENAMING= property be considered not ready

5 years agoshared/bootspec: do not fail on errors when reading EFI vars 11911/head
Zbigniew Jędrzejewski-Szmek [Wed, 6 Mar 2019 21:49:52 +0000 (22:49 +0100)] 
shared/bootspec: do not fail on errors when reading EFI vars

It seems that my EFI storage is corrupted. The kernel reports the file as present, but returns
an error when reading. Nevertheless, this shouldn't prevent me from reading the entry
list.

Fixes #11909.

5 years agoshared/bootspec: treat empty EFI vars as missing
Zbigniew Jędrzejewski-Szmek [Wed, 6 Mar 2019 21:45:37 +0000 (22:45 +0100)] 
shared/bootspec: treat empty EFI vars as missing

We shouldn't really make any fuss about this. Also, change 'var' to 'variable'
for consistency with systemctl.c.

5 years agoshared/bootspec: minor simplification
Zbigniew Jędrzejewski-Szmek [Tue, 5 Mar 2019 12:56:18 +0000 (13:56 +0100)] 
shared/bootspec: minor simplification

5 years agoMerge pull request #11898 from keszybz/meson-conv-lib
Lennart Poettering [Wed, 6 Mar 2019 09:46:18 +0000 (10:46 +0100)] 
Merge pull request #11898 from keszybz/meson-conv-lib

Use a convenience library for the sources shared between core/ and shutdown/

5 years agotest: parallelize tasks in TEST-24-UNIT-TESTS
Frantisek Sumsal [Tue, 5 Mar 2019 12:50:28 +0000 (13:50 +0100)] 
test: parallelize tasks in TEST-24-UNIT-TESTS

5 years agojson: log about the right line number
Lennart Poettering [Tue, 5 Mar 2019 17:11:35 +0000 (18:11 +0100)] 
json: log about the right line number

We mean the line number in the json data, not the line number in our
C source code.

Addresses: https://github.com/systemd/systemd/pull/9762#issuecomment-441183987

5 years agomeson: drop "_la_" from variable name 11898/head
Zbigniew Jędrzejewski-Szmek [Tue, 5 Mar 2019 15:22:33 +0000 (16:22 +0100)] 
meson: drop "_la_" from variable name

A left-over from libtool times.

5 years agomeson: use a convenience library for the sources shared between core/ and the outside
Zbigniew Jędrzejewski-Szmek [Tue, 5 Mar 2019 15:19:40 +0000 (16:19 +0100)] 
meson: use a convenience library for the sources shared between core/ and the outside

This avoids double compilation. Those files are tiny, so it doesn't save time,
but we avoid repeated warnings and errors, and it's generally cleaner to it
this way.

The number of commands in 'ninja -C build clean && ninja -C build' drops from
1462 to 1455 for me.

5 years agoMerge pull request #10495 from poettering/login-boot-hookup
Zbigniew Jędrzejewski-Szmek [Tue, 5 Mar 2019 19:38:41 +0000 (20:38 +0100)] 
Merge pull request #10495 from poettering/login-boot-hookup

add "systemctl reboot --boot-loader-menu=" and "systemctl reboot --boot-loader-entry="

5 years agopkgconfig: avoid double slash with split-usr configuration
Zbigniew Jędrzejewski-Szmek [Tue, 5 Mar 2019 15:46:52 +0000 (16:46 +0100)] 
pkgconfig: avoid double slash with split-usr configuration

By defining rootprefix= we avoid a double slash in $systemdsystemunitdir and
other variables. This fixes a regression introduced in
1c2c7c6cb3d92315624f3711114e86b0acfbce63 where the variables using rootprefix=/
would start with a double slash. This should be interpreted the same, but is
certainly ugly.

The rootprefix variable was added to systemd.pc in
1c2c7c6cb3d92315624f3711114e86b0acfbce63, so there is no question of backwards
compatiblity. If people try to "override" the prefix and specify
--define-variable=rootprefix=/, they will get a double slash, which should be
OK, and is the same as --define-variable=rootprefix=/something/, which also
results in a double slash somewhere in the strings.

5 years agoupdate TODO 10495/head
Lennart Poettering [Tue, 23 Oct 2018 12:17:22 +0000 (14:17 +0200)] 
update TODO

5 years agodocs: document the new environment variables logind groks
Lennart Poettering [Tue, 23 Oct 2018 13:53:18 +0000 (15:53 +0200)] 
docs: document the new environment variables logind groks

5 years agologind: refactor logic of returning polkit challenge result into its own function
Lennart Poettering [Tue, 23 Oct 2018 11:58:41 +0000 (13:58 +0200)] 
logind: refactor logic of returning polkit challenge result into its own function

Let's share some code.

5 years agosystemctl: add support for booting into boot menu/entry
Lennart Poettering [Mon, 22 Oct 2018 18:43:45 +0000 (20:43 +0200)] 
systemctl: add support for booting into boot menu/entry

(This also removes support for booting into the EFI firmware setup
without logind. That's because otherwise the non-EFI fallback logind
implements can't work.)

Fixes: #9896
5 years agologind: add support for booting into the boot menu or a specific boot menu entry
Lennart Poettering [Mon, 22 Oct 2018 18:06:52 +0000 (20:06 +0200)] 
logind: add support for booting into the boot menu or a specific boot menu entry

This behaves similar to the "boot into firmware" logic, and also allows
either direct EFI operation (which sd-boot supports and others might
support eventually too) or override through env var.

5 years agobootspec: validate bootpsec entry ids before we use them
Lennart Poettering [Mon, 4 Mar 2019 18:19:30 +0000 (19:19 +0100)] 
bootspec: validate bootpsec entry ids before we use them

5 years agobootspec: get rid of find_default_boot_entry() entirely
Lennart Poettering [Mon, 4 Mar 2019 17:02:30 +0000 (18:02 +0100)] 
bootspec: get rid of find_default_boot_entry() entirely

Now only two operations are left. Let's just move this into the caller,
since it should make things simpler, clearer and shorter, in particular
as there's only a single user for this.

5 years agobootspec: rework find_default_boot_entry() to use boot_entries_load_config_auto()
Lennart Poettering [Mon, 4 Mar 2019 16:57:54 +0000 (17:57 +0100)] 
bootspec: rework find_default_boot_entry() to use boot_entries_load_config_auto()

it's pretty much the same code now, hence use it.

5 years agobootspec: introduce new helper boot_entries_load_config_auto()
Lennart Poettering [Mon, 4 Mar 2019 16:52:17 +0000 (17:52 +0100)] 
bootspec: introduce new helper boot_entries_load_config_auto()

It's a simple wrapper around boot_entries_load_config(), but determines
the ESP/XBOOTLDR paths automatically at first. Also, it looks for a path
/run/boot-loader-entries/ and loads the entries from there if it
exists. This is supposed to be a hook for other boot loaders to make our
tools aware of their own entries.

5 years agobootspec: correct error code shown in log msg
Lennart Poettering [Fri, 1 Mar 2019 17:38:32 +0000 (18:38 +0100)] 
bootspec: correct error code shown in log msg

5 years agobootspec: move augmentation of loader-discovered entries into bootspec.c
Lennart Poettering [Fri, 1 Mar 2019 17:35:26 +0000 (18:35 +0100)] 
bootspec: move augmentation of loader-discovered entries into bootspec.c

Previously, bootctl would show boot loader entries discovered by the
boot loader which couldn't found locally separately in the output.

Let's move this code into bootspec.c, and beef it up a bit. This way we
can use it later on for logind, and correctly show automatically
discovered windows/macos entries too.

5 years agobootspec: simplify find_default_boot_entry()
Lennart Poettering [Fri, 1 Mar 2019 16:51:15 +0000 (17:51 +0100)] 
bootspec: simplify find_default_boot_entry()

If the only caller passes NULL for the two paths, let's remove the
parameter altogether.

5 years agosystemctl: let's FORK_WAIT where we can
Lennart Poettering [Fri, 1 Mar 2019 16:48:31 +0000 (17:48 +0100)] 
systemctl: let's FORK_WAIT where we can

5 years agosystemctl: when something is not supported use EOPNOTSUPP
Lennart Poettering [Fri, 1 Mar 2019 16:47:50 +0000 (17:47 +0100)] 
systemctl: when something is not supported use EOPNOTSUPP

5 years agosystemctl: be careful with boot loader entries lacking a 'linux' line
Lennart Poettering [Fri, 1 Mar 2019 16:46:58 +0000 (17:46 +0100)] 
systemctl: be careful with boot loader entries lacking a 'linux' line

A boot loader entry might not have a 'linux' line, but an 'efi' line or
something else. Let's handle that case nicely.

5 years agobootspec: move log msg from systemctl.c to bootspec.c
Lennart Poettering [Fri, 1 Mar 2019 15:53:11 +0000 (16:53 +0100)] 
bootspec: move log msg from systemctl.c to bootspec.c

find_default_boot_entry() is only used by systemctl.c, and currently
handles one log message in the caller instead of the callee. Let's
simplify that and move it over, too

5 years agobootctl: tweak 'list' output a bit
Lennart Poettering [Fri, 1 Mar 2019 15:05:14 +0000 (16:05 +0100)] 
bootctl: tweak 'list' output a bit

Let's suppress the final newline in the list if it's the last entry we
are outputting.

5 years agologind: optionally support non-EFI reboot-to-firmware
Lennart Poettering [Mon, 22 Oct 2018 18:02:25 +0000 (20:02 +0200)] 
logind: optionally support non-EFI reboot-to-firmware

This extends the reboot-to-firmware logic in logind, so that other than
EFI firmwares could be theoretically support. The scheme is like this:
if you want to support this, set the $SYSTEMD_REBOOT_TO_FIRMWARE=1 env
var for logind. If so, this will override the EFI logic, and cause a
file /run/systemd/reboot-to-firmware file to be created when
reboot-to-firmware is requested. This file has no contents, it's mere
existance indicates a reboot with reboot-to-firmware set.

The idea is that for alternative firmwares a drop-in for logind is added
that sets the env var, in combination with some code run during shutdown
that checks for the file and does the right thing.

5 years agoefivars: extend character set that may be used in boot loader entry ids a bit
Lennart Poettering [Fri, 16 Nov 2018 17:55:51 +0000 (18:55 +0100)] 
efivars: extend character set that may be used in boot loader entry ids a bit

See https://github.com/systemd/systemd/pull/10495#discussion_r233992570

5 years agoMerge pull request #11896 from poettering/shutdown-fixes
Zbigniew Jędrzejewski-Szmek [Tue, 5 Mar 2019 14:36:03 +0000 (15:36 +0100)] 
Merge pull request #11896 from poettering/shutdown-fixes

move src/core/shutdown.c and helpers to src/shutdown/

5 years agodocs: add a note about compilation options
Zbigniew Jędrzejewski-Szmek [Tue, 5 Mar 2019 10:03:59 +0000 (11:03 +0100)] 
docs: add a note about compilation options

Closes #6371.

5 years agocore: warn if people use the undocumented/depreacted ConditionNull=
Lennart Poettering [Mon, 4 Mar 2019 16:51:54 +0000 (17:51 +0100)] 
core: warn if people use the undocumented/depreacted ConditionNull=

Triggered by:

https://github.com/systemd/systemd/issues/11812

5 years agoudev: restore debug level when logging a failure in the external prog called by IMPOR...
Franck Bui [Tue, 5 Mar 2019 10:03:07 +0000 (11:03 +0100)] 
udev: restore debug level when logging a failure in the external prog called by IMPORT{program}

It was already the case before commit a75211421fc9366068e6d9446e8e567246c72feb,
which upgraded the log to warning.

This seems an unintended side effect as the commit message doesn't mention it
and the old behavior looks more appropriate.

5 years agoshutdown: rearrange shutdown sources in source tree 11896/head
Lennart Poettering [Tue, 5 Mar 2019 11:12:33 +0000 (12:12 +0100)] 
shutdown: rearrange shutdown sources in source tree

Let's move the shutdown binary into its own subdirectory in
src/shutdown, after all it is relatively isolated from the normal PID 1
sources, being a different binary and all.

Unfortunately it's not possible to move some of the code, since it is
shared with PID 1, that I wished we could move, but I still think it's
worth it.

5 years agoshutdown: (void)ify more stuff
Lennart Poettering [Tue, 5 Mar 2019 10:53:39 +0000 (11:53 +0100)] 
shutdown: (void)ify more stuff

5 years agoshutdown: fix up return type of sync_making_progress()
Lennart Poettering [Tue, 5 Mar 2019 10:52:54 +0000 (11:52 +0100)] 
shutdown: fix up return type of sync_making_progress()

We shouldn't return negative errnos as "bool", hence fix the type of the
function to "int".

5 years agoupdate TODO
Lennart Poettering [Tue, 5 Mar 2019 10:52:32 +0000 (11:52 +0100)] 
update TODO

5 years agoMerge pull request #11881 from yuwata/networkd-vs-interface-renaming
Lennart Poettering [Tue, 5 Mar 2019 09:05:57 +0000 (10:05 +0100)] 
Merge pull request #11881 from yuwata/networkd-vs-interface-renaming

Networkd vs interface renaming

5 years agoudev: run programs in the specified order
Yu Watanabe [Mon, 4 Mar 2019 19:01:34 +0000 (04:01 +0900)] 
udev: run programs in the specified order

This fixes bugs introduced by 29448498c724da7ade1b5efb20d7472c1b128d2c
and d838e14515c82b05a07f2bf393cce057b45b2b53.

Previously, RUN and SECLABEL keys are stored in udev_list with its unique
flag is false. If the flag is false, then udev_list is just a linked
list and new entries are always added in the last.
So, we should use OrderedHashmap instead of Hashmap.

Fixes #11368.

5 years agohwdb: add touchpad resolutions for 2015-2017 MacBook(Pro)'s. (#11874)
roadrunner2 [Tue, 5 Mar 2019 07:52:22 +0000 (23:52 -0800)] 
hwdb: add touchpad resolutions for 2015-2017 MacBook(Pro)'s. (#11874)

These are all models using an SPI keyboard and touchpad and using the
same applespi kernel driver.

5 years agotravis: use /bin/systemd instead of /usr/bin/systemd
Evgeny Vereshchagin [Tue, 5 Mar 2019 04:44:11 +0000 (05:44 +0100)] 
travis: use /bin/systemd instead of /usr/bin/systemd

Apparently systemd is in /bin now.

5 years agodhcp: refuse to configure DHCP IAID if the interface is under renaming 11881/head
Yu Watanabe [Mon, 4 Mar 2019 03:20:51 +0000 (12:20 +0900)] 
dhcp: refuse to configure DHCP IAID if the interface is under renaming

systemd-networkd itself does not start dhcp client, but the code
may be used in other projects. So, check that the interface is under
renaming or not.

5 years agonetwork: do not configure interfaces under renaming
Yu Watanabe [Mon, 4 Mar 2019 03:19:05 +0000 (12:19 +0900)] 
network: do not configure interfaces under renaming

5 years agoutil: introduce device_is_renaming()
Yu Watanabe [Mon, 4 Mar 2019 03:16:46 +0000 (12:16 +0900)] 
util: introduce device_is_renaming()

It will be used in the later commit.

5 years agonetwork: always drop configs when interface is renamed
Yu Watanabe [Mon, 4 Mar 2019 03:01:26 +0000 (12:01 +0900)] 
network: always drop configs when interface is renamed

Before the renaming, wrong .network file may be assigned to the link.
So, let's always drop link configuration.

5 years agoudev: set ID_RENAMING property when interface renaming is requested
Yu Watanabe [Mon, 4 Mar 2019 02:45:58 +0000 (11:45 +0900)] 
udev: set ID_RENAMING property when interface renaming is requested

And drop the property on the corresponding 'move' uevent.

5 years agoudev: do not read UdevEvent object before checking it is non-NULL
Yu Watanabe [Tue, 5 Mar 2019 01:31:20 +0000 (10:31 +0900)] 
udev: do not read UdevEvent object before checking it is non-NULL

5 years agoudev: drop unnecessary copy of new interface name
Yu Watanabe [Mon, 4 Mar 2019 02:26:23 +0000 (11:26 +0900)] 
udev: drop unnecessary copy of new interface name