Lennart Poettering [Tue, 23 Jun 2020 15:06:42 +0000 (17:06 +0200)]
man: s/PROGRAMM/PROGRAM/
Zbigniew Jędrzejewski-Szmek [Tue, 23 Jun 2020 09:35:39 +0000 (11:35 +0200)]
Revert "cgroup: Allow empty assignments of Memory{Low,Min}="
This reverts commit
53aa85af24cda4470b6750f88e181b775385e228.
The reason is that that patch changes the dbus api to be different than
the types declared by introspection api.
Replaces #16122.
Dave Reisner [Thu, 11 Jun 2020 14:34:13 +0000 (10:34 -0400)]
Revert "job: Don't mark as redundant if deps are relevant"
This reverts commit
097537f07a2fab3cb73aef7bc59f2a66aa93f533.
At least Fedora and Debian have already reverted this at the distro
level because it causes more problems than it solves. Arch is debating
reverting it as well [0] but would strongly prefer that this happens
upstream first. Fixes #15188.
[0] https://bugs.archlinux.org/task/66458
Luca Boccassi [Wed, 3 Jun 2020 08:50:45 +0000 (09:50 +0100)]
core: add RootHash and RootVerity service parameters
Allow to explicitly pass root hash (explicitly or as a file) and verity
device/file as unit options. Take precedence over implicit checks.
Lennart Poettering [Tue, 16 Jun 2020 14:50:46 +0000 (16:50 +0200)]
nspawn: mkdir selinux mount point once, but not twice
Since #15533 we didn't create the mount point for selinuxfs anymore.
Before it we created it twice because we mount selinuxfs twice: once the
superblock, and once we remount its bind mound read-only. The second
mkdir would mean we'd chown() the host version of selinuxfs (since
there's only one selinuxfs superblock kernel-wide).
The right time to create mount point point is once: before we mount the
selinuxfs. But not a second time for the remount.
Fixes: #16032
Zbigniew Jędrzejewski-Szmek [Tue, 23 Jun 2020 08:16:18 +0000 (10:16 +0200)]
Merge pull request #16196 from mrc0mmand/travis-simplification
travis: use a matrix for similar jobs
Zbigniew Jędrzejewski-Szmek [Tue, 23 Jun 2020 08:12:47 +0000 (10:12 +0200)]
Merge pull request #16216 from nabijaczleweli/make-a-fuss
man/sd-makefs: mention that mkswap can also be run and fix deadlink to btrfs-man5(5)
Lennart Poettering [Mon, 22 Jun 2020 13:37:12 +0000 (15:37 +0200)]
selinux-util: tweak log_enforcing_errno() to return the errno passed in or 0 when in non-enforcing mode
Also, some other, minor modernizations.
Elisei Roca [Tue, 23 Jun 2020 05:42:15 +0000 (07:42 +0200)]
test-functions: read /usr/etc/nsswitch.conf if /etc/nsswitch.conf does not exist (#16195)
See this for more info why and since when this change is needed: https://build.opensuse.org/request/show/807179.
наб [Thu, 18 Jun 2020 23:55:09 +0000 (01:55 +0200)]
man/sd-makefs: link to btrfs.wiki. for btrfs-man5, since the man-pages link is dead
This also adds a <citerefentry project="url"> type,
since the other btrfs manpages use man-pages/die-net and are alive,
and btrfs.w.k.o won't be used anywhere else
Zbigniew Jędrzejewski-Szmek [Mon, 22 Jun 2020 20:46:13 +0000 (22:46 +0200)]
Merge pull request #16237 from keszybz/revert-message-type-check
Revert "bus-message: immediately reject messages with invalid type"
Lennart Poettering [Mon, 22 Jun 2020 15:38:42 +0000 (17:38 +0200)]
Merge pull request #16179 from keszybz/auto-suspend-hwdb
Convert autosuspend rules to hwdb
Zbigniew Jędrzejewski-Szmek [Mon, 22 Jun 2020 15:18:35 +0000 (17:18 +0200)]
bus-message: add macro for calculation of offset from the page
Zbigniew Jędrzejewski-Szmek [Mon, 22 Jun 2020 15:09:49 +0000 (17:09 +0200)]
bus-message: avoid dereferencing a NULL pointer
We'd try to map a zero-byte buffer from a NULL pointer, which is undefined behaviour.
src/systemd/src/libsystemd/sd-bus/bus-message.c:3161:60: runtime error: applying zero offset to null pointer
#0 0x7f6ff064e691 in find_part /work/build/../../src/systemd/src/libsystemd/sd-bus/bus-message.c:3161:60
#1 0x7f6ff0640788 in message_peek_body /work/build/../../src/systemd/src/libsystemd/sd-bus/bus-message.c:3283:16
#2 0x7f6ff064e8db in enter_struct_or_dict_entry /work/build/../../src/systemd/src/libsystemd/sd-bus/bus-message.c:3967:21
#3 0x7f6ff06444ac in bus_message_enter_struct /work/build/../../src/systemd/src/libsystemd/sd-bus/bus-message.c:4009:13
#4 0x7f6ff0641dde in sd_bus_message_enter_container /work/build/../../src/systemd/src/libsystemd/sd-bus/bus-message.c:4136:21
#5 0x7f6ff0619874 in sd_bus_message_dump /work/build/../../src/systemd/src/libsystemd/sd-bus/bus-dump.c:178:29
#6 0x4293d9 in LLVMFuzzerTestOneInput /work/build/../../src/systemd/src/fuzz/fuzz-bus-message.c:39:9
#7 0x441986 in fuzzer::Fuzzer::ExecuteCallback(unsigned char const*, unsigned long) /src/libfuzzer/FuzzerLoop.cpp:558:15
#8 0x44121e in fuzzer::Fuzzer::RunOne(unsigned char const*, unsigned long, bool, fuzzer::InputInfo*, bool*) /src/libfuzzer/FuzzerLoop.cpp:470:3
#9 0x443164 in fuzzer::Fuzzer::ReadAndExecuteSeedCorpora(std::__1::vector<fuzzer::SizedFile, fuzzer::fuzzer_allocator<fuzzer::SizedFile> >&) /src/libfuzzer/FuzzerLoop.cpp:770:7
#10 0x4434bc in fuzzer::Fuzzer::Loop(std::__1::vector<fuzzer::SizedFile, fuzzer::fuzzer_allocator<fuzzer::SizedFile> >&) /src/libfuzzer/FuzzerLoop.cpp:799:3
#11 0x42d2bc in fuzzer::FuzzerDriver(int*, char***, int (*)(unsigned char const*, unsigned long)) /src/libfuzzer/FuzzerDriver.cpp:846:6
#12 0x42978a in main /src/libfuzzer/FuzzerMain.cpp:19:10
#13 0x7f6fef13c82f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
#14 0x407808 in _start (out/fuzz-bus-message+0x407808)
Zbigniew Jędrzejewski-Szmek [Sun, 21 Jun 2020 14:15:23 +0000 (16:15 +0200)]
Revert "bus-message: immediately reject messages with invalid type"
This reverts commit
a2dd991d0fde59dc0574bd4d0c1438f01dc0b8ff.
Creation of such messages is evidently useful, and at least sdbus-c++ test
suite depends on that.
Fixes #16193.
Zbigniew Jędrzejewski-Szmek [Mon, 22 Jun 2020 12:41:50 +0000 (14:41 +0200)]
make-autosuspend-rules: remove one instance of "whitelist"
Let's be clear what we mean exactly. Also see https://lwn.net/Articles/823224/
for general justification.
Zbigniew Jędrzejewski-Szmek [Mon, 22 Jun 2020 12:38:01 +0000 (14:38 +0200)]
rules: remove 61-autosuspend-manual.rules
It doesn't hurt, but there's no point in keeping it now. Any changes
can be added to 60-autosuspend.hwdb.
Zbigniew Jędrzejewski-Szmek [Thu, 18 Jun 2020 16:38:58 +0000 (18:38 +0200)]
hwdb: enable autosuspend for Wacom Pen and EMV Smartcard Reader
Replaces #16113.
Zbigniew Jędrzejewski-Szmek [Sun, 14 Jun 2020 10:43:42 +0000 (12:43 +0200)]
test: also verify the generated autosuspend hwdb file
Hint: meson test -C build parse-hwdb -v
Zbigniew Jędrzejewski-Szmek [Sat, 13 Jun 2020 15:52:41 +0000 (17:52 +0200)]
tools: rewrite make-autosuspend-rules.py and add udev rules
Concatenating strings is not a very efficient approach. And in this case fully
unnecessary. We also need some rules to make use of those hwdb entries.
PCI needs to be 8 characters, not 4. And we need to use uppercase hexadecimal
for both. With udev rules this made no difference, but hwdb match is case
sensitive.
Fixes #16119.
Zbigniew Jędrzejewski-Szmek [Mon, 22 Jun 2020 12:29:50 +0000 (14:29 +0200)]
Merge pull request #16235 from yuwata/network-fix-warning-16224
network: fix compile error
Daan De Meyer [Wed, 10 Jun 2020 18:19:41 +0000 (20:19 +0200)]
log: Prefer logging to CLI unless JOURNAL_STREAM is set
Lennart Poettering [Mon, 22 Jun 2020 12:00:31 +0000 (14:00 +0200)]
Merge pull request #16059 from keszybz/resolve-single-label-names
Optionally resolve single label names
Lennart Poettering [Mon, 22 Jun 2020 11:55:06 +0000 (13:55 +0200)]
Merge pull request #15926 from fbuihuu/rework-show-status
Rework show status
ignapk [Fri, 19 Jun 2020 06:29:59 +0000 (08:29 +0200)]
man: add note regarding editing user groups
Currently the manual doesn't clearly say whether `homectl update username -G group` will append the group to the user, or overwrite the list and remove user from the groups that aren't specified.
Fix this by updating the manual, basing the change on the usermod manual.
Yu Watanabe [Mon, 22 Jun 2020 04:10:39 +0000 (13:10 +0900)]
network: add missing break
Follow-up for
2a71d57f4e63e4492a7c2d6d747e498d0c5521cd.
Lennart Poettering [Mon, 22 Jun 2020 10:48:49 +0000 (12:48 +0200)]
Merge pull request #16239 from keszybz/cleanups
Two minor tweaks
Evgeny Vereshchagin [Fri, 19 Jun 2020 22:44:09 +0000 (00:44 +0200)]
ci: pass -Werror using CFLAGS
Judging by https://github.com/systemd/systemd/issues/16224, it seems
`--werror` doesn't work with `-Db_lto=true`
Yu Watanabe [Mon, 22 Jun 2020 03:13:20 +0000 (12:13 +0900)]
network: drop unnecessary "&"
This confuses gcc-10 with -O3 -flto.
Closes #16224.
Matthew Leeds [Fri, 19 Jun 2020 03:43:40 +0000 (20:43 -0700)]
man: Fix a typo of session
наб [Thu, 18 Jun 2020 23:15:20 +0000 (01:15 +0200)]
man/sd-makefs: also mention /sbin/mkswap
Zbigniew Jędrzejewski-Szmek [Wed, 3 Jun 2020 15:01:34 +0000 (17:01 +0200)]
man: document the new option
Also correct "stub resolver" → "systemd-resolved" in one other option.
Zbigniew Jędrzejewski-Szmek [Wed, 3 Jun 2020 11:10:23 +0000 (13:10 +0200)]
resolved: optionally allow single-label A/AAAA queries
Zbigniew Jędrzejewski-Szmek [Wed, 3 Jun 2020 11:09:59 +0000 (13:09 +0200)]
resolved: drop bit-field annotations for fields in Manager
Access to bit fields is less efficient, and since the Manager is a singleton,
a byte or two of space in the structure doesn't matter at all. (And in this
particular case, because of alignment issues, we wouldn't save anything
anyway.)
Zbigniew Jędrzejewski-Szmek [Wed, 3 Jun 2020 10:53:27 +0000 (12:53 +0200)]
resolved: add dns_query_candidate_freep()
Zbigniew Jędrzejewski-Szmek [Tue, 2 Jun 2020 16:21:04 +0000 (18:21 +0200)]
man: rework description of Domains=
We said that ~domains "do not define a search path", which is mighty confusing,
because this is exactly what they do. So let's try to make this a bit easier
for the reader: start by saying that there are two things going on here, and
describe each one from user's POV.
Zbigniew Jędrzejewski-Szmek [Sun, 14 Jun 2020 16:34:27 +0000 (18:34 +0200)]
udev: do not execute hwdb builtin import twice or thrice
Running the import more than once shouldn't matter, but it's a bit confusing
and causes a slowdown too. This patch reworks the rules to avoid duplicted runs,
but tries to keep the same imports. (E.g. import for pci devices without MODALIAS
is only done for tty devices.)
Note that this is only about hwdb import with argument, which uses MODALIAS as
the lookup key. There are other imports done with different lookup keys.
Paul Cercueil [Mon, 15 Jun 2020 10:54:28 +0000 (12:54 +0200)]
sd-boot: Add small comments after device-specific key macros
The key macros added in commit
6fe95d3020 look strange at first sight.
Add a comment with just the tablet name after each line, so that it's
obvious that these lines address device-specific issues of the EFI
firmware, and not broken/old code.
Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Lennart Poettering [Thu, 18 Jun 2020 13:53:31 +0000 (15:53 +0200)]
Merge pull request #16191 from poettering/repart-spec
repart: add specifier expansion to Label= + bump default mininum size to 10M
Lennart Poettering [Thu, 18 Jun 2020 13:52:07 +0000 (15:52 +0200)]
Merge pull request #16208 from yuwata/udev-fix-16207
udev: fixes error handling of sd_device_get_parent()
Yu Watanabe [Wed, 17 Jun 2020 04:54:56 +0000 (13:54 +0900)]
network: do not fail to configure non-nl80211 wifi interfaces
Also, make wifi_get_interface() and wifi_get_station() initialize
destination buffer when they return a non-negatinve value.
Closes #16160.
Yu Watanabe [Thu, 18 Jun 2020 06:35:27 +0000 (15:35 +0900)]
network: drop casting in memcpy()ing IPv6 address
Follow-up for #16067.
Yu Watanabe [Thu, 18 Jun 2020 04:48:45 +0000 (13:48 +0900)]
udev: udev_event_apply_format() always make buf NUL terminated
The return value of udev_event_apply_format() is always ignored.
So, the destination buffer must be always NUL terminated.
Yu Watanabe [Thu, 18 Jun 2020 04:48:44 +0000 (13:48 +0900)]
udev: fix error handling of sd_device_get_parent()
sd_device_get_parent() returns -EINVAL or -ENOENT on error, not -ENODEV.
Fixes #16207.
Lennart Poettering [Tue, 16 Jun 2020 18:35:18 +0000 (20:35 +0200)]
network: clean-up DHCP lease server data configuration
This is an attempt to clean up the POP3/SMTP/LPR/… DHCP lease server
data logic in networkd. This reduces code duplication and fixes a number
of bugs.
This removes any support for collecting POP3/SMPT/LPR servers acquired
via local DHCP client releases since noone uses that, and given how old
these protocols are I doubt this will change. It keeps support for
configuring them for the dhcp server however.
The differences between the DNS/NTP/SIP/POP3/SMTP/LPR configuration
logics are minimized.
This removes the relevant symbols from sd-network.h (which is an
internal API only at this point after all).
This is unfortunately not well test, given the old code for this had
barely any tests. But the new code should not perform worse at least,
and allow us to release, since it corrects some interfaces visible in
the .network configuration format.
Fixes: #15943
Zbigniew Jędrzejewski-Szmek [Wed, 17 Jun 2020 22:09:42 +0000 (00:09 +0200)]
Merge pull request #16061 from filbranden/standalone1
meson: add a new -Dstandalone-binaries=true option
Susant Sahani [Wed, 10 Jun 2020 02:57:35 +0000 (04:57 +0200)]
network: DHCPv6 - Add support to set token on the LAN interface
This patch adds support to set a token on the LAN interface for
the acquired delegated prefixes for the DHCPv6 to generate address.
Luca Boccassi [Mon, 15 Jun 2020 18:50:56 +0000 (19:50 +0100)]
efi: use stub for cache_efi_options_variable if !ENABLE_EFI
../src/core/main.c: In function 'main':
../src/core/main.c:2637:32: error: implicit declaration of function 'cache_efi_options_variable'; did you mean 'systemd_efi_options_variable'? [-Werror=implicit-function-declaration]
(void) cache_efi_options_variable();
^~~~~~~~~~~~~~~~~~~~~~~~~~
systemd_efi_options_variable
Lennart Poettering [Tue, 16 Jun 2020 14:10:37 +0000 (16:10 +0200)]
USER_RECORD: fix typo
Fixes: #16172
Frantisek Sumsal [Tue, 16 Jun 2020 16:49:37 +0000 (18:49 +0200)]
travis: sort dependencies
Frantisek Sumsal [Tue, 16 Jun 2020 16:47:49 +0000 (18:47 +0200)]
travis: drop stuff moved to GH Actions
Frantisek Sumsal [Tue, 16 Jun 2020 16:14:43 +0000 (18:14 +0200)]
travis: use a matrix for similar jobs
Lennart Poettering [Tue, 16 Jun 2020 12:38:44 +0000 (14:38 +0200)]
repart: if now minimal size is specified, default to 10M
Prompted by this discussion:
https://lists.freedesktop.org/archives/systemd-devel/2020-June/044669.html
Lennart Poettering [Tue, 16 Jun 2020 09:43:11 +0000 (11:43 +0200)]
repart: add simple specifier expansion in Label=
Strictly speaking this is a compat breakage, but given the tool was
added only in the last release, let's try to sail under the radar, and
fix this early before anyone notices it wasn't supported always.
Lennart Poettering [Tue, 16 Jun 2020 12:38:23 +0000 (14:38 +0200)]
update TODO
Lennart Poettering [Tue, 16 Jun 2020 09:37:06 +0000 (11:37 +0200)]
README: add reference to systemd.io
Lennart Poettering [Tue, 16 Jun 2020 09:42:16 +0000 (11:42 +0200)]
update TODO
Kai-Heng Feng [Thu, 11 Jun 2020 13:32:12 +0000 (21:32 +0800)]
hwdb: Mask rfkill event from intel-hid on HP platforms
HP spec mandates the hp-wireless driver as canonical source of rfkill
event, so mask the rfkill event from intel-hid to avoid double rfkill
events fired from a single hotkey press.
Zbigniew Jędrzejewski-Szmek [Mon, 15 Jun 2020 14:28:41 +0000 (16:28 +0200)]
man: do not say that systemd-modules-load.service only uses static config
Inspired by https://github.com/systemd/zram-generator/issues/26#issuecomment-
644097273.
Paul Cercueil [Sun, 14 Jun 2020 10:51:36 +0000 (12:51 +0200)]
sd-boot: Work around malformed CR key code
When a key is pressed, the EFI firmware gives us a 64-bit word that
contains the modifier key code in the upper 32 bits, the scan code in
the middle 16 bits, and a unicode character in the low 16 bits.
Some bogus EFI firmwares will put the unicode character in the scan code
area, for instance on the EZpad mini 4s tablet.
Others will even put the unicode character in both the scan code and
unicode areas. This is the case for instance on the Teclast X98+ II
tablet.
Add workarounds for these corner cases, only for the carriage return key
right now. Some more workarounds may be needed, e.g. for volume keys,
but I cannot test it.
Partially fixes #8466.
Signed-off-by: Paul Cercueil <paul@crapouillou.net>
AndreRH [Sat, 13 Jun 2020 14:48:53 +0000 (16:48 +0200)]
hwdb: Add accel orientation quirk for Odys Fusion Win 12 2in1
Zbigniew Jędrzejewski-Szmek [Sun, 14 Jun 2020 17:55:11 +0000 (19:55 +0200)]
Merge pull request #16170 from keszybz/man-user@
Better documentation for user@ services
Zbigniew Jędrzejewski-Szmek [Sat, 13 Jun 2020 15:11:00 +0000 (17:11 +0200)]
man: mention systemd-user-runtime-dir in user@.service too
_riotingpacifist was complaining on reddit [1] that systemd-user-runtime-dir
is not documented anywhere. So let's add the binary name as page alias.
[1] https://www.reddit.com/r/linux/comments/h086fd/why_linuxs_systemd_is_still_divisive_after_all/ftllr66/
This page should be in section 8, like all .service descriptions.
Also extend the text a bit to make it clearer that systemd --user is the same
executable but running in a different mode (which might be certainly a bit
confusing to users.)
Filipe Brandenburger [Thu, 11 Jun 2020 22:33:32 +0000 (15:33 -0700)]
efi: Skip parsing SystemdOptions if there's an error getting it.
The original logic was logging an "ignored" debug message, but it was still
going ahead and calling proc_cmdline_parse_given() on the NULL line. Fix that
to skip that explicitly when the EFI variable wasn't really read.
Daan De Meyer [Fri, 12 Jun 2020 17:31:22 +0000 (19:31 +0200)]
networkd: Add missing match_wlan_iftype check to network_verify
Vladimir Panteleev [Fri, 12 Jun 2020 10:44:57 +0000 (10:44 +0000)]
man: Document the crypttab keyfile syntax specifying a device
Feature introduced in
50d2eba27b9bfc77ef6b40e5721713846815418b. Also documented
as part of the kernel parameter syntax in systemd-cryptsetup-generator(8), but
should also be documented here as part of the overall file syntax.
Zbigniew Jędrzejewski-Szmek [Sun, 14 Jun 2020 08:45:02 +0000 (10:45 +0200)]
Merge pull request #16163 from DaanDeMeyer/resolved-edns-info
resolved: Don't complain too much when downgrading from EDNS
Tomáš Pospíšek [Sun, 14 Jun 2020 08:43:06 +0000 (10:43 +0200)]
Improve message for scheduled shutdown or reboot
Depending on if the system has been scheduled for shutdown or for reboot pring the corresponding message (and not only "Shutdown"). Prtinting the "wrong" message when rebooting will mislead and panic people. I get these messages via cron from remote servers and it would be bad if those systems actually *did* shut down, as the email from cron is telling me. Those messages cause an adrenalin spike in our team, which wouldn't happen, if the message was "correct"
Fixes #16129.
Lennart Poettering [Tue, 9 Jun 2020 15:00:56 +0000 (17:00 +0200)]
hwdb: generate a hwdb file instead of rules for autosuspend
Zbigniew Jędrzejewski-Szmek [Sat, 13 Jun 2020 14:45:37 +0000 (16:45 +0200)]
man: really fix conditional in homed.conf
Followup for
f978844eb62e1c47431b388ab90aafdd29f624ec.
Zbigniew Jędrzejewski-Szmek [Sat, 13 Jun 2020 14:44:58 +0000 (16:44 +0200)]
man: drop obsolete HAVE_PYTHON conditional
It stopped making sense when automake support was dropped and python started
being required to perform a build.
Follow-up for
72cdb3e783174dcf9223a49f03e3b0e2ca95ddb8.
Zbigniew Jędrzejewski-Szmek [Sat, 13 Jun 2020 14:29:43 +0000 (16:29 +0200)]
update-man-rules: properly filter out directives index again
When directives-template.xml was created in
282230882cd0fc49b5377349f2aee22a1c9dd159,
this generator started picking it up. Let's filter it out properly again,
and also simply the filter while at it.
Daan De Meyer [Sat, 13 Jun 2020 12:48:40 +0000 (14:48 +0200)]
resolved: Log the feature level we're downgrading from as well
Filipe Brandenburger [Wed, 10 Jun 2020 22:11:32 +0000 (15:11 -0700)]
efi: Cache contents of EFI variable SystemdOptions
Cache it early in startup of the system manager, right after `/run/systemd` is
created, so that further access to it can be done without accessing the EFI
filesystem at all.
Dan Streetman [Fri, 12 Jun 2020 22:23:15 +0000 (18:23 -0400)]
test: in test_bridge_configure_without_carrier, ignore setup_state
This test is failing becuase the setup state isn't reaching 'configured'
for unknown reasons; ignore the setup state for now to prevent failures
of CI until the reason can be investigated.
Daan De Meyer [Fri, 12 Jun 2020 18:17:15 +0000 (20:17 +0200)]
resolved: Don't complain too much when downgrading from EDNS
Jan Palus [Thu, 11 Jun 2020 16:23:28 +0000 (18:23 +0200)]
login: filenames in /run/systemd/users are uids
Fixes: #16146
Evgeny Vereshchagin [Thu, 11 Jun 2020 20:26:17 +0000 (22:26 +0200)]
cifuzz: build fuzz target with UBsan and MSan as well
Evgeny Vereshchagin [Thu, 11 Jun 2020 16:34:42 +0000 (18:34 +0200)]
turn off fuzzit part 2
it's just a follow-up to https://github.com/systemd/systemd/pull/16064
Evgeny Vereshchagin [Thu, 11 Jun 2020 15:04:13 +0000 (18:04 +0300)]
Merge pull request #16144 from mrc0mmand/gh-actions-followup
GH Actions followup
Frantisek Sumsal [Thu, 11 Jun 2020 13:00:15 +0000 (15:00 +0200)]
ci: tweak the dependency installation
Frantisek Sumsal [Thu, 11 Jun 2020 12:21:02 +0000 (14:21 +0200)]
ci: tweak the compilation options
Build each build with tests (slow tests and fuzzer tests as well), and
combine the LTO build with -O3.
Frantisek Sumsal [Thu, 11 Jun 2020 11:29:01 +0000 (13:29 +0200)]
ci: move the build check script to workflows directory
Frantisek Sumsal [Thu, 11 Jun 2020 11:18:07 +0000 (13:18 +0200)]
ci: do the compiler-detection magic in the test script
so we have all PPA definitions at one place.
Lennart Poettering [Thu, 11 Jun 2020 12:12:48 +0000 (14:12 +0200)]
Merge pull request #16137 from poettering/sleep-fixlets
some log fixes in the sleep code
Evgeny Vereshchagin [Thu, 11 Jun 2020 11:16:44 +0000 (14:16 +0300)]
Merge pull request #16136 from mrc0mmand/travis-cleanup
Move the gcc/clang build check to GitHub Actions
Frantisek Sumsal [Wed, 10 Jun 2020 18:51:15 +0000 (20:51 +0200)]
ci: add homed/zstd dependencies
Also, sort the whole list when we're at it.
Frantisek Sumsal [Wed, 10 Jun 2020 11:41:28 +0000 (13:41 +0200)]
github: move the clang/gcc build check to GH Actions
Travis CI is getting overloaded, so let's move some load over to GitHub
Actions.
Lennart Poettering [Thu, 11 Jun 2020 10:03:07 +0000 (12:03 +0200)]
Merge pull request #16124 from ssahani/dhcpv6-duid
network: Display DHCPv6 DUID
Franck Bui [Thu, 4 Jun 2020 11:25:25 +0000 (13:25 +0200)]
pid1: rename manager_set_{show_status,watchdog}_overridden() into manager_override_(show_status,watchdog}
No functional change.
Franck Bui [Tue, 28 Apr 2020 14:21:12 +0000 (16:21 +0200)]
pid1: add a new SetShowStatus() bus call to override/restore show status mode
The only way to control "ShowStatus" property programmatically was to use the
signal API and wait until the property "ShowStatus" switched to the new value.
This interface is rather cumbersome to use and doesn't allow to temporarily
override the current setting and later restore the overridden value in
race-free manner.
The new method also accepts the empty string as argument which allows to
restore the initial value of ShowStatus, ie the value before it was overridden
by this method.
Fixes: #11447.
Franck Bui [Thu, 11 Jun 2020 09:56:11 +0000 (11:56 +0200)]
pid1: introduce an helper to handle the show-status marker
No functional change.
Lennart Poettering [Wed, 10 Jun 2020 14:54:10 +0000 (16:54 +0200)]
sleep: pass error we see to log function
Lennart Poettering [Wed, 10 Jun 2020 14:53:24 +0000 (16:53 +0200)]
sleep-config: modernize destructors
All other destructors in the same .c file return NULL, let's make sure
the one where this so far wasn't done does it too.
Lennart Poettering [Wed, 10 Jun 2020 14:52:08 +0000 (16:52 +0200)]
sleep-config: downgrade log level in can_s2h()
As in the previous commit: can_sleep() is more a library-style function,
hence log at debug level only.
Lennart Poettering [Wed, 10 Jun 2020 14:47:38 +0000 (16:47 +0200)]
sleep: clean up debug/error logging
half of find_hibernation_location() logged at debug level, the other
half logged at error level, and the third half didn't log at all.
Let's clean this up somewhat. Since can_sleep() is probably more
a library-style function let's downgrade everything to LOG_DEBUG and
then make sure sleep.c logs at error level, as the main program.
Lennart Poettering [Wed, 10 Jun 2020 14:40:52 +0000 (16:40 +0200)]
sleep-config: return correct error code
Lennart Poettering [Wed, 10 Jun 2020 14:40:36 +0000 (16:40 +0200)]
sleep-config: add more debug logging
Frantisek Sumsal [Wed, 10 Jun 2020 15:06:49 +0000 (17:06 +0200)]
github: rename CIFuzz workflow file to cifuzz.yml
Frantisek Sumsal [Wed, 10 Jun 2020 15:05:55 +0000 (17:05 +0200)]
travis: bump Ubuntu release to Bionic