]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
3 years agosha256: add sha256_direct()/SHA256_DIRECT() helpers 24362/head
Lennart Poettering [Wed, 17 Aug 2022 09:32:38 +0000 (11:32 +0200)] 
sha256: add sha256_direct()/SHA256_DIRECT() helpers

3 years agorandom-seed: use SHA256_DIGEST_SIZE
Lennart Poettering [Wed, 17 Aug 2022 09:31:45 +0000 (11:31 +0200)] 
random-seed: use SHA256_DIGEST_SIZE

3 years agosha256: change digest buffer type to uint8_t[]
Lennart Poettering [Wed, 17 Aug 2022 09:24:24 +0000 (11:24 +0200)] 
sha256: change digest buffer type to uint8_t[]

This way we can specify a size with "static". All users use uint8_t
already, hence this comes at no price.

3 years agoDrop the limit on number of inodes for /dev
Franck Bui [Mon, 6 Dec 2021 14:00:12 +0000 (15:00 +0100)] 
Drop the limit on number of inodes for /dev

Follow-up for 4c733d3046942984c5f73b40c3af39cc218c103f.

Finding a suitable limit that would fit any use cases out there is pretty hard
and since /dev is only writeable by root anyway, let's simply drop the limit.

3 years agoMerge pull request #24353 from alpernebbi/hwdb-cros-ec-accel-base
Yu Watanabe [Fri, 19 Aug 2022 05:39:47 +0000 (14:39 +0900)] 
Merge pull request #24353 from alpernebbi/hwdb-cros-ec-accel-base

udev: hwdb: Add orientation quirk for base-mounted accelerometers on Chromebooks

Reviewed-by: Alexandru Stan <amstan@chromium.org>
Reviewed-by: Gwendal Grignou <gwendal@chromium.org>
3 years agoMerge pull request #24348 from yuwata/network-ipv4acd-renew
Yu Watanabe [Fri, 19 Aug 2022 05:27:05 +0000 (14:27 +0900)] 
Merge pull request #24348 from yuwata/network-ipv4acd-renew

network: fix IPv4ACD issues on DHCP renewal or reconfiguring interface

3 years agoudev: hwdb: Add rules to match cros-ec-accel by 'location' sysfs file 24353/head
Alper Nebi Yasak [Thu, 18 Aug 2022 16:56:13 +0000 (19:56 +0300)] 
udev: hwdb: Add rules to match cros-ec-accel by 'location' sysfs file

The cros-ec-accel devices report their mounting location by the 'label'
sysfs file only since Linux v6.0. With earlier kernels, a nonstandard
'location' file reports this, but slightly differently (lid instead of
display) [1].

Add udev rules to import the correct hwdb entries based on this
'location' file for cros-ec-accel devices, so that the base-mounted
accel matrix has the correct value for older kernels as well.

[1] https://kernel.org/doc/Documentation/ABI/testing/sysfs-bus-iio-cros-ec

3 years agohwdb: Add Chromebook accel orientation quirks based on sysfs label
Alper Nebi Yasak [Thu, 18 Aug 2022 15:24:05 +0000 (18:24 +0300)] 
hwdb: Add Chromebook accel orientation quirks based on sysfs label

The base-mounted accelerometer on Chromebooks return values same as the
display when the lid angle is 180 degrees, instead of when the lid is
closed. To match userspace expectations we must further rotate the
existing accelerometer mounting matrix by 180 degrees around the X axis:

    [[-1,  0,  0],    [[ 1,  0,  0],    [[-1,  0,  0],
     [ 0, -1,  0],  X  [ 0, -1,  0],  =  [ 0,  1,  0],
     [ 0,  0, -1]]     [ 0,  0, -1]]     [ 0,  0,  1]]

A previous commit lets us distinguish between the two cros-ec-accel
devices on these boards by their 'label' sysfs file. Add hwdb entries
that make base-mounted accelerometers use this correct matrix, and
display-mounted ones use the existing one.

Note that the cros-ec-accel drivers use 'label' only since Linux v6.0.
The old match strings are not removed to support older kernels, even
though they are only correct for the display-mounted sensor.

3 years agoudev: hwdb: Match iio sensors based on their label
Alper Nebi Yasak [Thu, 18 Aug 2022 14:27:22 +0000 (17:27 +0300)] 
udev: hwdb: Match iio sensors based on their label

The IIO subsystem exposes a 'label' sysfs file to help userspace better
identify its devices [1]. Standardized labels include the sensor type
along with its location, including 'accel-base' and 'accel-display'.

Most Chrome OS boards have two accelerometers that are indistinguishable
except for this label (or a 'location' sysfs file before Linux v6.0),
and need different mounting matrix corrections based on their location.

Add a udev rule that matches hwdb entries using this label, so we can
correct both accelerometers on these devices with hwdb entries. The
existing rules and hwdb entries are not modified to keep potential
out-of-tree entries working, but new entries in this form will override
existing ones. Also add currently standardized labels to parse-hwdb.py.

[1] https://www.kernel.org/doc/Documentation/ABI/testing/sysfs-bus-iio

3 years agoMerge pull request #24054 from keszybz/initrd-no-reload
Frantisek Sumsal [Thu, 18 Aug 2022 13:15:14 +0000 (13:15 +0000)] 
Merge pull request #24054 from keszybz/initrd-no-reload

Don't do daemon-reload in the initrd

3 years agobash-completion: autocomplete cgroup names in systemd-cgtop
Luca Boccassi [Tue, 16 Aug 2022 22:04:40 +0000 (23:04 +0100)] 
bash-completion: autocomplete cgroup names in systemd-cgtop

3 years agoinitrd-parse-etc: override argv[0] to avoid dracut issue 24054/head
Zbigniew Jędrzejewski-Szmek [Sat, 13 Aug 2022 13:51:14 +0000 (15:51 +0200)] 
initrd-parse-etc: override argv[0] to avoid dracut issue

Quoting https://github.com/systemd/systemd/pull/24054#issuecomment-1210501631:
> this would need a patch in dracut, specifically adding the
> systemd-sysroot-fstab-check to the list of installed stuff:
> https://github.com/dracutdevs/dracut/blob/fe8fa2b0cadbb33e27c8dd8b5851548dcd65835c/modules.d/00systemd/module-setup.sh#L47.
>
> I could do this manually in the CI (and I guess I'd have to do it anyway even
> if the patch lands in upstream, since it won't be available in C8S), but it
> should get there first before merging this PR, otherwise it's going to break
> Rawhide.

3 years agotest-network: add tests for IPv4ACD and renewing DHCP address 24348/head
Yu Watanabe [Thu, 18 Aug 2022 06:16:27 +0000 (15:16 +0900)] 
test-network: add tests for IPv4ACD and renewing DHCP address

3 years agotest-network: drop unused .network file
Yu Watanabe [Thu, 18 Aug 2022 05:49:42 +0000 (14:49 +0900)] 
test-network: drop unused .network file

3 years agonetwork: unref existing sd_ipv4acd object when not necessary
Yu Watanabe [Thu, 18 Aug 2022 06:39:22 +0000 (15:39 +0900)] 
network: unref existing sd_ipv4acd object when not necessary

On reconfiguring an interface, the new setting may not enable IPv4ACD
for an existing address anymore. Hence, we need to unref it. Otherwise,
newly requested addresses may never be ready for (re-)configuring.

3 years agonetwork: update setting for IPv4ACD or IPv6DAD in existing Address objects
Yu Watanabe [Thu, 18 Aug 2022 05:32:47 +0000 (14:32 +0900)] 
network: update setting for IPv4ACD or IPv6DAD in existing Address objects

Otherwise, if the setting is changed on reconfigure, the new setting
is not applied to the existing addresses.

3 years agonetwork: fix DHCPv4 address renewal with IPv4ACD
Yu Watanabe [Thu, 18 Aug 2022 05:15:23 +0000 (14:15 +0900)] 
network: fix DHCPv4 address renewal with IPv4ACD

Previously, when a DHCP address is renewed and if the IPv4ACD for the
address is enabled, the address will never drop the probing flag, thus
the lifetime of the address will never be updated.

This drops NETWORK_CONFIG_STATE_PROBING, and the IPv4ACD status is
managed another bit, Address.acd_bound. And, the flag is updated only
when the IPv4ACD announced the address or detects conflict.

3 years agotest: expect libdevmapper failure in TEST-50-DISSECT
Luca Boccassi [Wed, 17 Aug 2022 18:43:01 +0000 (19:43 +0100)] 
test: expect libdevmapper failure in TEST-50-DISSECT

libdevmapper/device mapper driver can return semi-random failures when
opening verity devices, and we have fallback code to deal with it.
But the test was not expecting the fallback path, so it became unreliable.

Fixes https://github.com/systemd/systemd/issues/23866

3 years agosd-messages: rename newly added constants
Zbigniew Jędrzejewski-Szmek [Wed, 17 Aug 2022 11:09:49 +0000 (13:09 +0200)] 
sd-messages: rename newly added constants

This hasn't been through a release yet, so we are free to change the name.

Closes #24270.
C.f. https://github.com/systemd/systemd/commit/907506695549c689710cd267583f6fd439711dcf#r80812414

3 years agosd-messages: make the table wider
Zbigniew Jędrzejewski-Szmek [Wed, 17 Aug 2022 11:04:49 +0000 (13:04 +0200)] 
sd-messages: make the table wider

For whatever reason, nowadays we add entries that are quite long, so
we were using line continuation for most of new entries. This is hard
to read and edit. So let's just make the table wide enough to accomodate
all the names without line splits.

3 years agotpm2-util: more structure initialization simplifications
Lennart Poettering [Wed, 17 Aug 2022 07:49:41 +0000 (09:49 +0200)] 
tpm2-util: more structure initialization simplifications

3 years agorandom-util: drop unnecessary header file
Lennart Poettering [Wed, 17 Aug 2022 07:45:19 +0000 (09:45 +0200)] 
random-util: drop unnecessary header file

(And some minor reindents)

3 years agoMerge pull request #24250 from yuwata/backlight-multiple-graphics-cards
Yu Watanabe [Wed, 17 Aug 2022 12:58:59 +0000 (21:58 +0900)] 
Merge pull request #24250 from yuwata/backlight-multiple-graphics-cards

backlight: support multiple graphics cards system

3 years agofs-util: make touch() an inline function
Lennart Poettering [Wed, 17 Aug 2022 07:45:04 +0000 (09:45 +0200)] 
fs-util: make touch() an inline function

3 years agotpm2-util: credit TPM2 RNG entropy only once per boot
Lennart Poettering [Wed, 17 Aug 2022 07:51:35 +0000 (09:51 +0200)] 
tpm2-util: credit TPM2 RNG entropy only once per boot

Acquiring random data from the TPM is not precisely quick, let's speed
things up by doing this at most once per boot. For that, let's maintain
a flag file in /run/.

3 years agoudev: rename various validate() -> should_reload() for builtin commands
Yu Watanabe [Wed, 17 Aug 2022 05:44:27 +0000 (14:44 +0900)] 
udev: rename various validate() -> should_reload() for builtin commands

Previously, true by validate() means several configs are outdated and we
need to reload configs. That's not intuitive for me. Let's rename the
functions.

3 years agoMerge pull request #24333 from yuwata/sysctl
Yu Watanabe [Wed, 17 Aug 2022 12:56:15 +0000 (21:56 +0900)] 
Merge pull request #24333 from yuwata/sysctl

sysctl: improve performance for applying glob pattern

3 years agotest-network: add/update module check
Yu Watanabe [Tue, 16 Aug 2022 17:43:16 +0000 (02:43 +0900)] 
test-network: add/update module check

For https://github.com/systemd/systemd-centos-ci/pull/517.

3 years agotest: add tests for glob sysctl pattern 24333/head
Yu Watanabe [Tue, 16 Aug 2022 20:22:48 +0000 (05:22 +0900)] 
test: add tests for glob sysctl pattern

3 years agotest: use assertions in sysctl tests
Yu Watanabe [Tue, 16 Aug 2022 20:33:18 +0000 (05:33 +0900)] 
test: use assertions in sysctl tests

3 years agotest: do not use sysctl.d to store test conf
Yu Watanabe [Tue, 16 Aug 2022 20:20:27 +0000 (05:20 +0900)] 
test: do not use sysctl.d to store test conf

Otherwise, late invocations of systemd-sysctl, especially through udev
rules may fail.

3 years agosysctl: apply prefix before calling glob()
Yu Watanabe [Tue, 16 Aug 2022 19:54:06 +0000 (04:54 +0900)] 
sysctl: apply prefix before calling glob()

Otherwise, if there exist million of network interfaces,
calling glob() for network properties takes much time.

Fixes #24031.

3 years agopath-util: introduce path_glob_can_match()
Yu Watanabe [Tue, 16 Aug 2022 21:43:37 +0000 (06:43 +0900)] 
path-util: introduce path_glob_can_match()

3 years agosysctl: split out code for applying glob option
Yu Watanabe [Tue, 16 Aug 2022 19:10:30 +0000 (04:10 +0900)] 
sysctl: split out code for applying glob option

3 years agosysctl: drop /proc/sys/ in prefix
Yu Watanabe [Tue, 16 Aug 2022 18:11:00 +0000 (03:11 +0900)] 
sysctl: drop /proc/sys/ in prefix

3 years agosysctl: use ordered_hashmap_ensure_put()
Yu Watanabe [Wed, 17 Aug 2022 05:29:26 +0000 (14:29 +0900)] 
sysctl: use ordered_hashmap_ensure_put()

3 years agobacklight: fix issue on multiple graphics cards system 24250/head
Yu Watanabe [Mon, 8 Aug 2022 17:02:02 +0000 (02:02 +0900)] 
backlight: fix issue on multiple graphics cards system

If a system has multiple graphics cards, then we cannot associate
platform backlight devices to backlight devices under PCI bus.

Previously, in such case, vaidate_device() for a raw backlight device
might erroneously detect a platform device and return false. So, users
could not save/load backlight level.

This makes validate_device() give up to associate platform devices on
non-PCI bus with raw backlight devices. That may cause unwanted
backlight level save or restore by systemd-backlight@.service, but users
can workaround that by masking specific instances of the service.

Closes #24223.

3 years agobacklight: filter out unnecessary backlight devices by device enumerator
Yu Watanabe [Mon, 8 Aug 2022 14:25:34 +0000 (23:25 +0900)] 
backlight: filter out unnecessary backlight devices by device enumerator

3 years agobacklight: add/update several logs for validating backlight devices
Yu Watanabe [Mon, 8 Aug 2022 11:57:14 +0000 (20:57 +0900)] 
backlight: add/update several logs for validating backlight devices

3 years agorun: simplification
Zbigniew Jędrzejewski-Szmek [Tue, 16 Aug 2022 16:41:00 +0000 (18:41 +0200)] 
run: simplification

3 years agomanager: allow assignment of properties on target/swap/device units
Zbigniew Jędrzejewski-Szmek [Tue, 16 Aug 2022 16:07:30 +0000 (18:07 +0200)] 
manager: allow assignment of properties on target/swap/device units

E.g. Documentation or Markers could apply to any unit type. This already worked
partially, because a direct dbus call could be made:

After rebuild with the patch, but before the manager has been restarted:
$ build/systemctl --user set-property dev-zram0.swap Markers=+needs-restart
$ build/systemctl --user show -p Markers dev-zram0.swap
Markers=needs-restart

I noticed that that the rpm unit restart helper was throwing errors for target
units. We should just let the Markers be set for those too, even if it doesn't
do anything in the end. This way we don't need to special-case by unit type.

3 years agoMerge pull request #24301 from yuwata/network-tuntap
Luca Boccassi [Tue, 16 Aug 2022 22:06:16 +0000 (23:06 +0100)] 
Merge pull request #24301 from yuwata/network-tuntap

network/tuntap: introduce KeepFileDescriptor= setting

3 years agotest-network: add tests for MTUBytes= for bridge master and ports
Yu Watanabe [Tue, 16 Aug 2022 16:59:56 +0000 (01:59 +0900)] 
test-network: add tests for MTUBytes= for bridge master and ports

Prompted by #24311.

3 years agoman: Correct information on sysext masking
Kai Lueke [Tue, 16 Aug 2022 10:29:12 +0000 (12:29 +0200)] 
man: Correct information on sysext masking

While I had tested that a symlink to /dev/null works to "mask" a sysext
I must have gotten something wrong and thus the instructions in
519c2f0d6b343d140f7e08e3eb0f46708c023b4a don't work. What works,
at least at the moment, is to instead have an empty directory with the
extension name under /etc/extensions/.
Correct the info in the man page and add a test for it.

3 years agoci(lint): add shell linter - Differential ShellCheck
Jan Macku [Tue, 16 Aug 2022 12:34:49 +0000 (14:34 +0200)] 
ci(lint): add shell linter - Differential ShellCheck

It performs differential ShellCheck scans and report results directly in
pull request.

documentation:
https://github.com/redhat-plumbers-in-action/differential-shellcheck

3 years agotest-network: add tests for KeepCarrier= for tuntap interfaces 24301/head
Yu Watanabe [Fri, 12 Aug 2022 22:46:47 +0000 (07:46 +0900)] 
test-network: add tests for KeepCarrier= for tuntap interfaces

3 years agonetwork/tuntap: save tun or tap file descriptor in fd store
Yu Watanabe [Sat, 13 Aug 2022 08:18:55 +0000 (17:18 +0900)] 
network/tuntap: save tun or tap file descriptor in fd store

3 years agonetwork/tuntap: introduce KeepCarrier= setting
Yu Watanabe [Fri, 12 Aug 2022 22:45:49 +0000 (07:45 +0900)] 
network/tuntap: introduce KeepCarrier= setting

Closes #24267.

3 years agosysusers: add fsync for passwd (#24324)
Avram Lubkin [Tue, 16 Aug 2022 12:51:21 +0000 (08:51 -0400)] 
sysusers: add fsync for passwd (#24324)

https://github.com/systemd/systemd/pull/6636 added `fsync()` when
temporary shadow, group, and gshadow files are created, but it was
not added for passwd. As far as I can tell, this seems to have been
an oversight. I'm seeing real world issues where a blank /etc/passwd
file is being created if a machine loses power early in the boot process.

3 years agonetwork/tuntap: code cleanups
Yu Watanabe [Fri, 12 Aug 2022 22:35:21 +0000 (07:35 +0900)] 
network/tuntap: code cleanups

- merge unnecessarily split functions,
- drop unnecessary initializations,
- tighten variable scopes,
- introduce TUNTAP() helper function.

3 years agologin: use helper functions for fd store
Yu Watanabe [Mon, 15 Aug 2022 11:05:32 +0000 (20:05 +0900)] 
login: use helper functions for fd store

3 years agodaemon-util: introduce several helper functions for fd store
Yu Watanabe [Mon, 15 Aug 2022 11:05:21 +0000 (20:05 +0900)] 
daemon-util: introduce several helper functions for fd store

3 years agotpm-util: use trial session where appropriate
Lennart Poettering [Mon, 15 Aug 2022 09:44:52 +0000 (11:44 +0200)] 
tpm-util: use trial session where appropriate

TPM2 knows two types of policy sessions: "real" ones and "trial" ones. The
latter allow you to calculate a policy hash without this enforcing any
policy, which the former do. Typically you want to use the "trial" ones
when enrolling, and you have to use the "real" ones for unlocking. So
far we used "real" ones for both cases. Which works fine – as long as
the policy put together matches the current reality (e.g. the PCR values
included in the policy are the ones currently in place in the TPM).

Let's switch to using trial sessions for enrolling. First of all this is
preparation for later work to implement further policy extensions (for
example, policies binding to literally specified PCR values, instead of
the once currently measured). But from my perspective more importantly
it actually is cleaner, as it communicates more clearly what we are
actually doing here.

No user-visible change in behaviour.

3 years agomkosi: Update to latest commit
Daan De Meyer [Mon, 15 Aug 2022 12:31:13 +0000 (14:31 +0200)] 
mkosi: Update to latest commit

Introduces a more reliable mirror for Arch which should reduce the
number of mkosi Arch CI failures due to unreliable mirror selection.

3 years agoMerge pull request #24294 from rphibel/add-support-for-list-of-definitions-directories
Yu Watanabe [Mon, 15 Aug 2022 23:58:25 +0000 (08:58 +0900)] 
Merge pull request #24294 from rphibel/add-support-for-list-of-definitions-directories

repart: add support for list of definitions directories

3 years agoshutdown: trivial modernizations
Lennart Poettering [Mon, 15 Aug 2022 09:43:14 +0000 (11:43 +0200)] 
shutdown: trivial modernizations

3 years agocryptenroll: drop unnecessary {}
Lennart Poettering [Mon, 15 Aug 2022 09:42:22 +0000 (11:42 +0200)] 
cryptenroll: drop unnecessary {}

3 years agocreds-tool: don't declare variable in switch body
Lennart Poettering [Mon, 15 Aug 2022 09:41:07 +0000 (11:41 +0200)] 
creds-tool: don't declare variable in switch body

The lifetime of variables decalred in the main switch/case body is just
weird. Let's not rely on it, but just open a new {} block, like
everywhere else in similar cases.

3 years agoMerge pull request #24299 from yuwata/dhcp6-no-binding
Yu Watanabe [Mon, 15 Aug 2022 23:47:17 +0000 (08:47 +0900)] 
Merge pull request #24299 from yuwata/dhcp6-no-binding

dhcp6: gracefully handle NoBinding error

3 years agoFix typo in net-naming-scheme man page
Sean Anderson [Mon, 15 Aug 2022 15:54:19 +0000 (11:54 -0400)] 
Fix typo in net-naming-scheme man page

I noticed a typo in the man page. Fix it.

Fixes: 65c2ad985a ("udev: net_id: Use devicetree aliases when available")
3 years agotpm2: typo fix selecion → selection
Lennart Poettering [Mon, 15 Aug 2022 11:26:59 +0000 (13:26 +0200)] 
tpm2: typo fix selecion → selection

3 years agoMerge pull request #24263 from pothos/sysext-for-static-binaries
Lennart Poettering [Mon, 15 Aug 2022 11:34:54 +0000 (13:34 +0200)] 
Merge pull request #24263 from pothos/sysext-for-static-binaries

sysext: Support distribution-independent extensions with static binaries

3 years agotpm2-util: reduce unnecessary indentation
Lennart Poettering [Mon, 15 Aug 2022 09:45:41 +0000 (11:45 +0200)] 
tpm2-util: reduce unnecessary indentation

Follow-up for: 55efb33edb592786fe36fa4d0a990fbbfbd59cc2

3 years agoudev/cdrom_id: check last track info
Yu Watanabe [Sat, 13 Aug 2022 21:00:10 +0000 (06:00 +0900)] 
udev/cdrom_id: check last track info

Fixes off-by-one issue.

Fixes #24306.

3 years agosysext: introduce ARCHITECTURE field to match host architecture 24263/head
Kai Lueke [Tue, 9 Aug 2022 15:07:20 +0000 (17:07 +0200)] 
sysext: introduce ARCHITECTURE field to match host architecture

When an extension image has binaries they should match the host
architecture. Currently there is no way to specify this requirement.
Introduce an ARCHITECTURE field in the extension's release file that
may be set to prevent loading on the wrong host architecture.
Since this new field is introduced late, we don't want to make
specifying it mandatory as it would break existing sysext images.

See https://github.com/systemd/systemd/issues/24061

3 years agosysext: support distribution-independent extensions using ID=_any
Kai Lueke [Tue, 9 Aug 2022 11:34:18 +0000 (13:34 +0200)] 
sysext: support distribution-independent extensions using ID=_any

A sysext image that merely contains static binaries has no dependency
on the host distribution and should be able to be used anywhere.
Support the special '_any' value for the ID field in the extension to
opt-out of ID and VERSION_ID/SYSEXT_LEVEL matching.

See https://github.com/systemd/systemd/issues/24061

3 years agofirstboot: fix can't overwrite timezone
bin456789 [Sat, 13 Aug 2022 19:29:37 +0000 (03:29 +0800)] 
firstboot: fix can't overwrite timezone

3 years agonetwork/bridge: fix UseBPDU= and AllowPortToBeRoot=
Yu Watanabe [Fri, 12 Aug 2022 20:08:38 +0000 (05:08 +0900)] 
network/bridge: fix UseBPDU= and AllowPortToBeRoot=

Fixes bugs caused by 7f9915f0de67f3a10a4b22810d119da65af8c84a.

Fixes #24268.

3 years agoMerge pull request #24305 from yuwata/test-network
Yu Watanabe [Sat, 13 Aug 2022 21:55:29 +0000 (06:55 +0900)] 
Merge pull request #24305 from yuwata/test-network

test-network: also set StartLimitIntervalSec=0 for systemd-networkd.socket

3 years agoUse correct label for boot related issues
Jan Janssen [Sat, 13 Aug 2022 20:27:42 +0000 (22:27 +0200)] 
Use correct label for boot related issues

3 years agotest-network: use "systemctl restart" to restart networkd 24305/head
Yu Watanabe [Sat, 13 Aug 2022 18:56:01 +0000 (03:56 +0900)] 
test-network: use "systemctl restart" to restart networkd

3 years agotest-network: also set StartLimitIntervalSec=0 for systemd-networkd.socket
Yu Watanabe [Sat, 13 Aug 2022 18:48:51 +0000 (03:48 +0900)] 
test-network: also set StartLimitIntervalSec=0 for systemd-networkd.socket

The socket unit is frequently restarted during the test.

3 years agodhcp6: do not append ORO option when no option requested 24299/head
Yu Watanabe [Sat, 13 Aug 2022 17:43:51 +0000 (02:43 +0900)] 
dhcp6: do not append ORO option when no option requested

Fixes #24292.

3 years agodhcp6: gracefully handle NoBinding error
Yu Watanabe [Fri, 12 Aug 2022 19:47:54 +0000 (04:47 +0900)] 
dhcp6: gracefully handle NoBinding error

When we receive NoBinding status code, the requesting binding (address or
any other information) does not exist anymore in the server. Hence,
resending the request is meaningless. Let's restart the transaction from
the beginning in that case.

3 years agoMerge pull request #24138 from Keksgesicht/rfe/cryptenroll-keyfile
Yu Watanabe [Fri, 12 Aug 2022 18:35:03 +0000 (03:35 +0900)] 
Merge pull request #24138 from Keksgesicht/rfe/cryptenroll-keyfile

adding the option to use a keyfile to unlock the device

3 years agohwdb: Apply existing accel orientation quirk to all Chromebooks
Alper Nebi Yasak [Wed, 10 Aug 2022 19:09:32 +0000 (22:09 +0300)] 
hwdb: Apply existing accel orientation quirk to all Chromebooks

The cros-ec-accel and cros-ec-accel-legacy kernel modules internally
correct for the board-specific accelerometer mounting orientations.
Their sensor outputs are in a standard reference frame consistent across
different boards, so the orientation matrix already added for a number
of devices should apply to every device using cros-ec accelerometers.
The different matrix for the 'Nocturne' board seems to be an error.

Replace the existing hwdb rules for select Chromebooks with generic
rules that apply to all Chromebooks.

3 years agonetwork: replace usage of sd_bus_call_method_async() to bus_call_method_async() ...
williamsumendap [Fri, 12 Aug 2022 18:28:29 +0000 (11:28 -0700)] 
network: replace usage of sd_bus_call_method_async() to bus_call_method_async() (#24290)

3 years agoMerge pull request #24285 from yuwata/sd-device-new-from-path
Yu Watanabe [Fri, 12 Aug 2022 18:27:26 +0000 (03:27 +0900)] 
Merge pull request #24285 from yuwata/sd-device-new-from-path

sd-device: make sd_device_new_from_path() support symlink outside of /sys

3 years agoMerge pull request #24289 from yuwata/sd-device-monitor-set-description
Yu Watanabe [Fri, 12 Aug 2022 18:27:05 +0000 (03:27 +0900)] 
Merge pull request #24289 from yuwata/sd-device-monitor-set-description

sd-device-monitor: introduce sd_device_monitor_{set,get}_description()

3 years agotpm2-util: rename tpmKey → primary
Lennart Poettering [Fri, 12 Aug 2022 13:35:25 +0000 (15:35 +0200)] 
tpm2-util: rename tpmKey → primary

Let's use the nomenclature from the spec. "tpmKey" is just too genric.

3 years agotpm2-util: lower indentation level a tiny bit
Lennart Poettering [Fri, 12 Aug 2022 13:12:50 +0000 (15:12 +0200)] 
tpm2-util: lower indentation level a tiny bit

3 years agocryptenroll: fix memory leak
Lennart Poettering [Fri, 12 Aug 2022 13:24:31 +0000 (15:24 +0200)] 
cryptenroll: fix memory leak

3 years agoman: document support for drop-in files in systemd-repart 24294/head
Richard Phibel [Fri, 12 Aug 2022 17:09:07 +0000 (19:09 +0200)] 
man: document support for drop-in files in systemd-repart

3 years agoman: document support for list of definitions directories in systemd-repart
Richard Phibel [Fri, 12 Aug 2022 16:13:30 +0000 (18:13 +0200)] 
man: document support for list of definitions directories in systemd-repart

3 years agorepart: add support for list of definitions directories
Richard Phibel [Thu, 11 Aug 2022 18:20:40 +0000 (20:20 +0200)] 
repart: add support for list of definitions directories

3 years agoupdate TODO
Lennart Poettering [Fri, 5 Aug 2022 15:58:28 +0000 (17:58 +0200)] 
update TODO

3 years agoudev: use sd_device_new_from_path() and _new_child() 24285/head
Yu Watanabe [Fri, 12 Aug 2022 12:47:56 +0000 (21:47 +0900)] 
udev: use sd_device_new_from_path() and _new_child()

Follow-up for 65c2ad985a8debdf6d7d11fee5b466f280260f4b.

3 years agotest: add more tests for sd_device_new_from_path()
Yu Watanabe [Thu, 11 Aug 2022 17:31:38 +0000 (02:31 +0900)] 
test: add more tests for sd_device_new_from_path()

3 years agosd-device: allow to create sd-device object through a symlink outside of /sys
Yu Watanabe [Thu, 11 Aug 2022 16:54:47 +0000 (01:54 +0900)] 
sd-device: allow to create sd-device object through a symlink outside of /sys

For example, /proc/device-tree is a symlink to /sys/firmware/devicetree/base,
and the kernel documentation says the symlink should be used by userspace app.
See, https://www.kernel.org/doc/Documentation/ABI/testing/sysfs-firmware-ofw.
Hence, it is useful to make `sd_device_new_from_path()` support such symlink.

3 years agoMerge pull request #24273 from lnussel/refactor_sysuser_creds
Lennart Poettering [Fri, 12 Aug 2022 12:32:06 +0000 (14:32 +0200)] 
Merge pull request #24273 from lnussel/refactor_sysuser_creds

Refactor sysuser creds

3 years agoudev: set description for device monitor 24289/head
Yu Watanabe [Thu, 11 Aug 2022 19:33:32 +0000 (04:33 +0900)] 
udev: set description for device monitor

3 years agotest: use sd_device_monitor_set_description()
Yu Watanabe [Thu, 11 Aug 2022 19:27:28 +0000 (04:27 +0900)] 
test: use sd_device_monitor_set_description()

3 years agosd-device-monitor: logs description for device monitor
Yu Watanabe [Thu, 11 Aug 2022 19:14:53 +0000 (04:14 +0900)] 
sd-device-monitor: logs description for device monitor

3 years agosd-device-monitor: introduce sd_device_monitor_{set,get}_description()
Yu Watanabe [Thu, 11 Aug 2022 18:49:56 +0000 (03:49 +0900)] 
sd-device-monitor: introduce sd_device_monitor_{set,get}_description()

3 years agoMerge pull request #24286 from yuwata/test-sd-device-monitor
Yu Watanabe [Fri, 12 Aug 2022 12:24:40 +0000 (21:24 +0900)] 
Merge pull request #24286 from yuwata/test-sd-device-monitor

test-sd-device-monitor: several fixlets

3 years agosd-device-enumerator: drop noisy log messages
Yu Watanabe [Thu, 11 Aug 2022 18:18:49 +0000 (03:18 +0900)] 
sd-device-enumerator: drop noisy log messages

These are not for failed tasks, and provide almost no information.

3 years agoMerge pull request #24288 from yuwata/sd-device-monitor-fixlets
Yu Watanabe [Fri, 12 Aug 2022 12:23:24 +0000 (21:23 +0900)] 
Merge pull request #24288 from yuwata/sd-device-monitor-fixlets

sd-device-monitor: two fixlets

3 years agorepart: add test for drop-in files
Richard Phibel [Mon, 8 Aug 2022 15:47:22 +0000 (17:47 +0200)] 
repart: add test for drop-in files

3 years agorepart: Add support for drop-in overrides
Richard Phibel [Sat, 6 Aug 2022 13:00:49 +0000 (15:00 +0200)] 
repart: Add support for drop-in overrides

3 years agoconfig-parser: Add list of drop-in files as return argument of config_parse_many
Richard Phibel [Mon, 8 Aug 2022 13:40:46 +0000 (15:40 +0200)] 
config-parser: Add list of drop-in files as return argument of config_parse_many

This will be used to save the list of drop-in files for each partition