]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
2 years agonetwork-generator: make network file generated from ip=dhcp matches only physical... 28646/head
Yu Watanabe [Wed, 2 Aug 2023 17:12:10 +0000 (02:12 +0900)] 
network-generator: make network file generated from ip=dhcp matches only physical interfaces

Otherwise, it also matches later created virtual devices, and that
breaks networks generated and managed by container management services,
like docker.

Closes #28626.

2 years agomeson: fix name of test-network-generator
Yu Watanabe [Wed, 2 Aug 2023 17:20:57 +0000 (02:20 +0900)] 
meson: fix name of test-network-generator

As the test executable is named based on the first source file.

2 years agoMerge pull request #28623 from yuwata/udev-builtin-net_id-cleanups
Luca Boccassi [Tue, 1 Aug 2023 21:09:32 +0000 (22:09 +0100)] 
Merge pull request #28623 from yuwata/udev-builtin-net_id-cleanups

udev: several cleanups for net_id builtin (part 4)

2 years agoMerge pull request #28630 from fbuihuu/update-testsuite-for-opensuse
Luca Boccassi [Tue, 1 Aug 2023 21:08:52 +0000 (22:08 +0100)] 
Merge pull request #28630 from fbuihuu/update-testsuite-for-opensuse

Update testsuite for opensuse

2 years agobuild(deps): bump systemd/mkosi
dependabot[bot] [Tue, 1 Aug 2023 09:03:17 +0000 (09:03 +0000)] 
build(deps): bump systemd/mkosi

Bumps [systemd/mkosi](https://github.com/systemd/mkosi) from 5866c0ff3b36d350c943016e5a3b115f7a95d37f to c6dd95b6eae0386579071cbf44fd838ce28b7237.
- [Release notes](https://github.com/systemd/mkosi/releases)
- [Changelog](https://github.com/systemd/mkosi/blob/main/NEWS.md)
- [Commits](https://github.com/systemd/mkosi/compare/5866c0ff3b36d350c943016e5a3b115f7a95d37f...c6dd95b6eae0386579071cbf44fd838ce28b7237)

---
updated-dependencies:
- dependency-name: systemd/mkosi
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2 years agoukify: Only run systemd-measure after adding all sections
Daan De Meyer [Mon, 31 Jul 2023 19:35:02 +0000 (21:35 +0200)] 
ukify: Only run systemd-measure after adding all sections

We were running systemd-measure before adding the sbat section,
let's fix that.

Also make sure we only pass --linux to systemd-measure once instead
of twice.

2 years agotest: install systemd-homed for openSUSE 28630/head
Franck Bui [Tue, 1 Aug 2023 17:40:34 +0000 (19:40 +0200)] 
test: install systemd-homed for openSUSE

This new sub-package has been recently introduced.

2 years agotest: console fonts are located in /usr/share on openSUSE
Franck Bui [Tue, 1 Aug 2023 17:38:13 +0000 (19:38 +0200)] 
test: console fonts are located in /usr/share on openSUSE

2 years agotest: skip tests earlier when we do not have enough privileges
Yu Watanabe [Tue, 1 Aug 2023 15:44:51 +0000 (00:44 +0900)] 
test: skip tests earlier when we do not have enough privileges

Hopefully fixes #28624.

2 years agoMerge pull request #28620 from yuwata/meson-use-template-part5
Daan De Meyer [Tue, 1 Aug 2023 16:10:52 +0000 (18:10 +0200)] 
Merge pull request #28620 from yuwata/meson-use-template-part5

meson: use template to declare executables (part 5)

2 years agoudev-builtin-net_id: first parse USB or BCMA identifier, then parse PCI properties 28623/head
Yu Watanabe [Tue, 1 Aug 2023 13:30:57 +0000 (22:30 +0900)] 
udev-builtin-net_id: first parse USB or BCMA identifier, then parse PCI properties

Previously, we first generate names based on the PCI slot and ACPI
onboard index, and then append an identifier based on USB or BCMA bus
if it exists in between the PCI bus and the interface.

However, if there exists USB or BCMA bus, the name based on the
ACPI onboard index is not used.

So, let's invert the order; first generate USB or BCMA identifier if the
bus exists, then prepend the name with the PCI slot identifier.

With this change, we can drop Names struct, and each naming logic
becomes self-consistent.

2 years agoudev-builtin-net_id: split out names_pci_onboard_label() from dev_pci_onboard()
Yu Watanabe [Tue, 1 Aug 2023 05:27:25 +0000 (14:27 +0900)] 
udev-builtin-net_id: split out names_pci_onboard_label() from dev_pci_onboard()

Then call it only when it is necessary. The label is used only when the
interface is directly connected to the PCI bus, and it does not have the
SR-IOV feature (or the naming based on SR-IOV is disabled).

2 years agoudev-builtin-net_id: drop redundant copy of BCMA identifier in names_bcma()
Yu Watanabe [Tue, 1 Aug 2023 13:26:21 +0000 (22:26 +0900)] 
udev-builtin-net_id: drop redundant copy of BCMA identifier in names_bcma()

Then, this makes names based on the BCMA and PCI identifiers in
names_bcma().

No functional change, just refactoring.

2 years agoudev-builtin-net_id: split out get_bcma_specifier() from names_bcma()
Yu Watanabe [Tue, 1 Aug 2023 05:08:35 +0000 (14:08 +0900)] 
udev-builtin-net_id: split out get_bcma_specifier() from names_bcma()

This contains redundant copy of BCMA identifier, but that will be
dropped in the next commit.

No functional change, just refactoring and preparation for later
commits.

2 years agoudev-builtin-net_id: drop redundant copy of USB identifier in names_usb()
Yu Watanabe [Tue, 1 Aug 2023 12:50:40 +0000 (21:50 +0900)] 
udev-builtin-net_id: drop redundant copy of USB identifier in names_usb()

This makes the names based on the USB identifier (and possibly with PCI
specifier) built in names_usb()

No functional change, just refactoring.

2 years agoudeb-builtin-net_id: split out get_usb_specifier() from names_usb()
Yu Watanabe [Tue, 1 Aug 2023 04:51:53 +0000 (13:51 +0900)] 
udeb-builtin-net_id: split out get_usb_specifier() from names_usb()

This contains redundant copy of USB identifier, but that will be
dropped in the next commit.

No functional change, just refactoring and preparation for later
commits.

2 years agoMerge pull request #28619 from yuwata/udev-builtin-net_id-cleanups-part3
Yu Watanabe [Tue, 1 Aug 2023 14:35:03 +0000 (23:35 +0900)] 
Merge pull request #28619 from yuwata/udev-builtin-net_id-cleanups-part3

udev: several cleanups and fixlets for net_id builtin (part 3)

2 years agoMerge pull request #28423 from dvdhrm/pr/memfd
Luca Boccassi [Tue, 1 Aug 2023 14:33:24 +0000 (15:33 +0100)] 
Merge pull request #28423 from dvdhrm/pr/memfd

basic/memfd: untangle historic `sealed` property

2 years agoMerge pull request #28621 from DaanDeMeyer/repart-fix
Daan De Meyer [Tue, 1 Aug 2023 14:32:35 +0000 (16:32 +0200)] 
Merge pull request #28621 from DaanDeMeyer/repart-fix

Revert https://github.com/systemd/systemd/pull/28556

2 years agobuild(deps): bump actions/labeler from 4.2.0 to 4.3.0
dependabot[bot] [Tue, 1 Aug 2023 09:03:30 +0000 (09:03 +0000)] 
build(deps): bump actions/labeler from 4.2.0 to 4.3.0

Bumps [actions/labeler](https://github.com/actions/labeler) from 4.2.0 to 4.3.0.
- [Release notes](https://github.com/actions/labeler/releases)
- [Commits](https://github.com/actions/labeler/compare/0967ca812e7fdc8f5f71402a1b486d5bd061fe20...ac9175f8a1f3625fd0d4fb234536d26811351594)

---
updated-dependencies:
- dependency-name: actions/labeler
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2 years agobuild(deps): bump meson from 1.1.1 to 1.2.0 in /.github/workflows
dependabot[bot] [Tue, 1 Aug 2023 09:34:19 +0000 (09:34 +0000)] 
build(deps): bump meson from 1.1.1 to 1.2.0 in /.github/workflows

Bumps [meson](https://github.com/mesonbuild/meson) from 1.1.1 to 1.2.0.
- [Release notes](https://github.com/mesonbuild/meson/releases)
- [Commits](https://github.com/mesonbuild/meson/compare/1.1.1...1.2.0)

---
updated-dependencies:
- dependency-name: meson
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2 years agoRevert "repart: Allow combining CopyBlocks= and CopyFiles=" 28621/head
Daan De Meyer [Tue, 1 Aug 2023 13:10:40 +0000 (15:10 +0200)] 
Revert "repart: Allow combining CopyBlocks= and CopyFiles="

This reverts commit dea0dc7ba2d779e5b65cb029395216859408931c.

2 years agoRevert "repart: Add --oem and OEM="
Daan De Meyer [Tue, 1 Aug 2023 13:10:24 +0000 (15:10 +0200)] 
Revert "repart: Add --oem and OEM="

This reverts commit 47c7805579bd54f2c149c80b22caed6f71ea01a7.

2 years agoRevert "units: Import all repart credentials in systemd-repart.service"
Daan De Meyer [Tue, 1 Aug 2023 13:10:02 +0000 (15:10 +0200)] 
Revert "units: Import all repart credentials in systemd-repart.service"

This reverts commit ed6b99dbf121f8ad3e68a1eb8e2fff4d4bdf3066.

2 years agomeson: move declarations of kernel-install and sulogin-shell 28620/head
Yu Watanabe [Sun, 25 Jun 2023 18:44:39 +0000 (03:44 +0900)] 
meson: move declarations of kernel-install and sulogin-shell

2 years agomeson: move declarations of networkd and friends
Yu Watanabe [Sun, 25 Jun 2023 18:40:54 +0000 (03:40 +0900)] 
meson: move declarations of networkd and friends

2 years agomeson: move declarations of modules-load, nspawn, update-done, and update-utmp
Yu Watanabe [Sun, 25 Jun 2023 18:38:48 +0000 (03:38 +0900)] 
meson: move declarations of modules-load, nspawn, update-done, and update-utmp

2 years agomeson: move declarations of socket-proxy, udevadm, quotacheck, and shutdown
Yu Watanabe [Sun, 25 Jun 2023 18:35:47 +0000 (03:35 +0900)] 
meson: move declarations of socket-proxy, udevadm, quotacheck, and shutdown

2 years agomeson: move declarations of hwdb, sysusers, and tmpfiles
Yu Watanabe [Sun, 25 Jun 2023 18:28:32 +0000 (03:28 +0900)] 
meson: move declarations of hwdb, sysusers, and tmpfiles

2 years agomeson: move declarations of busctl, stdio-bridge, and run
Yu Watanabe [Sun, 25 Jun 2023 18:23:59 +0000 (03:23 +0900)] 
meson: move declarations of busctl, stdio-bridge, and run

2 years agomeson: move declarations of cgls, cgtop, initctl, and systemd-mount
Yu Watanabe [Sun, 25 Jun 2023 18:21:42 +0000 (03:21 +0900)] 
meson: move declarations of cgls, cgtop, initctl, and systemd-mount

2 years agomeson: move declarations of ask-password and friends
Yu Watanabe [Sun, 25 Jun 2023 18:18:38 +0000 (03:18 +0900)] 
meson: move declarations of ask-password and friends

2 years agoudev-builtin-net_id: fix potential buffer overflow 28619/head
Yu Watanabe [Wed, 28 Sep 2022 09:09:29 +0000 (18:09 +0900)] 
udev-builtin-net_id: fix potential buffer overflow

2 years agoudev-builtin-net_id: various coding style cleanups
Yu Watanabe [Wed, 28 Sep 2022 09:12:43 +0000 (18:12 +0900)] 
udev-builtin-net_id: various coding style cleanups

2 years agoudev-builtin-net_id: introduce device_is_stacked() helper function
Yu Watanabe [Tue, 1 Aug 2023 02:09:25 +0000 (11:09 +0900)] 
udev-builtin-net_id: introduce device_is_stacked() helper function

Then, we can drop LinkInfo struct.
No functional change, just refactoring.

2 years agoudev-builtin-net_id: drop unused arguments
Yu Watanabe [Tue, 1 Aug 2023 02:08:43 +0000 (11:08 +0900)] 
udev-builtin-net_id: drop unused arguments

2 years agoMerge pull request #28611 from yuwata/meson-use-template
Yu Watanabe [Tue, 1 Aug 2023 12:32:48 +0000 (21:32 +0900)] 
Merge pull request #28611 from yuwata/meson-use-template

meson: use template (part 4)

2 years agocore: free the strings in the set in other places too
David Tardon [Tue, 1 Aug 2023 08:44:06 +0000 (10:44 +0200)] 
core: free the strings in the set in other places too

Follow-up for #28551.

2 years agoMerge pull request #28609 from yuwata/udev-builtin-net_id-cleanups-part2
Yu Watanabe [Tue, 1 Aug 2023 11:52:47 +0000 (20:52 +0900)] 
Merge pull request #28609 from yuwata/udev-builtin-net_id-cleanups-part2

udev: several cleanups and fixes for net_id builtin (part2)

2 years agowatchdog: Allow the watchdog to be disabled at runtime
Curtis Klein [Fri, 5 May 2023 23:17:13 +0000 (16:17 -0700)] 
watchdog: Allow the watchdog to be disabled at runtime

manager_{get|set|override}_watchdog check the validity of the new
timeout or the overridden timeout values using timestamp_is_set which
does not recognize "0" as a valid value. However since f16890f, "0"
indicates a disabled watchdog and so is a value we should be able to
configure in order to disable the watchdog. A value of USEC_INFINITY is
considered a no-op. The behavior should be the same for all watchdog
timeout configurations (runtime, pretimeout, and shutdown).

2 years agobuild(deps): bump github/codeql-action from 2.20.1 to 2.21.2
dependabot[bot] [Tue, 1 Aug 2023 09:03:25 +0000 (09:03 +0000)] 
build(deps): bump github/codeql-action from 2.20.1 to 2.21.2

Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2.20.1 to 2.21.2.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/f6e388ebf0efc915c6c5b165b019ee61a6746a38...0ba4244466797eb048eb91a6cd43d5c03ca8bd05)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2 years agobasic/memfd: fix memfd_map() seal test 28423/head
David Rheinsberg [Mon, 17 Jul 2023 10:17:56 +0000 (12:17 +0200)] 
basic/memfd: fix memfd_map() seal test

Private mappings are required when F_SEAL_WRITE is set on a memfd,
because otherwise you could end up with writable mappings through
mprotect() and other calls. This is a limitation of the kernel
implementation, and might be lifted by future extensions.

Regardless, the current code tests for the full `is_sealed()` before
using MAP_PRIVATE. This might end up using MAP_SHARED for write-sealed
memfds, which will be refused by the kernel.

Fix this and make memfd_map() check for exactly `F_SEAL_WRITE`.

2 years agobasic/memfd: add fcntl() wrappers
David Rheinsberg [Mon, 17 Jul 2023 10:16:01 +0000 (12:16 +0200)] 
basic/memfd: add fcntl() wrappers

Add wrappers around GET/ADD_SEALS to allow future use outside of the
current `memfd_get/set_sealed()` helpers.

2 years agobasic/memfd: reduce default seals to historic set
David Rheinsberg [Mon, 17 Jul 2023 10:01:18 +0000 (12:01 +0200)] 
basic/memfd: reduce default seals to historic set

Rather than always setting all seals, make `memfd_set_seals()` employ
the original set of seals, that is: SEAL+GROW+SHRINK+WRITE

Historically, the memfd code was used with the out-of-tree memfd
patches, which merely supported a single seal ("SEALED", which
effectively was GROW+SHRINK+WRITE). When the code was adapted to the
upstream memfd seals, it was extended to the full seal set. With more
and more seals being added upstream, this because more problematic. In
particular, it is unclear what the function really is meant to achieve.

Instead of just adding all seals, the function is returned to its
original purpose: seal the memfd so futher modifications to its content
are prevented.

2 years agobasic/memfd: drop test for F_SEAL_SEAL
David Rheinsberg [Mon, 17 Jul 2023 09:48:50 +0000 (11:48 +0200)] 
basic/memfd: drop test for F_SEAL_SEAL

With `F_SEAL_SEAL` a memfd can disable further sealing operations,
effectively sealing the set of seals. Testing for it ensures that no
further seals can be added, it never prevents seals from being dropped,
since seals cannot be dropped, ever.

Now testing for `F_SEAL_SEAL` makes sense if you want to ensure that
some seals are *not* set. That is, you either test for the entire set of
seals to match a local set, or you verify that a specific seal is not
set. Neither is what we are doing, so it feels wrong requiring it to be
set.

By dropping the requirement for `F_SEAL_SEAL`, the same FD can be shared
with other entities while retaining the ability to further restrict the
set of seals later on (e.g., being able to mark a region as executable
later on, and then adding `F_SEAL_EXEC`).

2 years agoMerge pull request #28556 from DaanDeMeyer/repart
Daan De Meyer [Tue, 1 Aug 2023 07:59:38 +0000 (09:59 +0200)] 
Merge pull request #28556 from DaanDeMeyer/repart

repart: Allow combining CopyBlocks= and CopyFiles=

2 years agomeson: move declarations of cgroups-agent, id128, volatile-root, and path 28611/head
Yu Watanabe [Sun, 25 Jun 2023 07:34:27 +0000 (16:34 +0900)] 
meson: move declarations of cgroups-agent, id128, volatile-root, and path

2 years agomeson: move declarations of delta, escape, notify, creds, and battery-check
Yu Watanabe [Sun, 25 Jun 2023 07:31:06 +0000 (16:31 +0900)] 
meson: move declarations of delta, escape, notify, creds, and battery-check

2 years agomeson: move declarations of ac-power, detect-virt, sysctl, and sleep
Yu Watanabe [Sun, 25 Jun 2023 07:28:21 +0000 (16:28 +0900)] 
meson: move declarations of ac-power, detect-virt, sysctl, and sleep

2 years agomeson: move declarations of repart and friends
Yu Watanabe [Sun, 25 Jun 2023 07:23:40 +0000 (16:23 +0900)] 
meson: move declarations of repart and friends

2 years agomeson: move declarations of fsck, firstboot, machine-id-setup, and remount-fs
Yu Watanabe [Sun, 25 Jun 2023 07:21:17 +0000 (16:21 +0900)] 
meson: move declarations of fsck, firstboot, machine-id-setup, and remount-fs

2 years agomeson: move declarations of random-seed, vconsole, and sysupdate
Yu Watanabe [Sun, 25 Jun 2023 07:11:55 +0000 (16:11 +0900)] 
meson: move declarations of random-seed, vconsole, and sysupdate

2 years agomeson: move declarations of pstore, oomd, and binfmt
Yu Watanabe [Sun, 25 Jun 2023 07:10:00 +0000 (16:10 +0900)] 
meson: move declarations of pstore, oomd, and binfmt

2 years agomeson: move declarations of coredumpd and friends
Yu Watanabe [Sun, 25 Jun 2023 07:07:31 +0000 (16:07 +0900)] 
meson: move declarations of coredumpd and friends

2 years agomeson: move declarations of journal-remote and friends
Yu Watanabe [Sun, 25 Jun 2023 07:06:20 +0000 (16:06 +0900)] 
meson: move declarations of journal-remote and friends

2 years agomeson: move declarations of machined and friends
Yu Watanabe [Sun, 25 Jun 2023 07:05:38 +0000 (16:05 +0900)] 
meson: move declarations of machined and friends

2 years agodocs: fix typo
Yu Watanabe [Tue, 1 Aug 2023 06:53:32 +0000 (15:53 +0900)] 
docs: fix typo

2 years agoMerge pull request #28608 from yuwata/meson-use-template
Daan De Meyer [Tue, 1 Aug 2023 06:09:10 +0000 (08:09 +0200)] 
Merge pull request #28608 from yuwata/meson-use-template

meson: use template (part 3)

2 years agounits: Import all repart credentials in systemd-repart.service 28556/head
Daan De Meyer [Fri, 28 Jul 2023 21:19:58 +0000 (23:19 +0200)] 
units: Import all repart credentials in systemd-repart.service

2 years agorepart: Add --oem and OEM=
Daan De Meyer [Fri, 28 Jul 2023 20:17:35 +0000 (22:17 +0200)] 
repart: Add --oem and OEM=

--oem can be used to only install OEM partitions (usr, verity,
verity-sig, ...). OEM= is used to indicate OEM partitions. If unset,
defaults to !FactoryReset. We also add a credential repart.oem to
allow configuring --oem via a credential.

2 years agocreds-util: Add read_credential_bool()
Daan De Meyer [Fri, 28 Jul 2023 20:17:20 +0000 (22:17 +0200)] 
creds-util: Add read_credential_bool()

2 years agorepart: Allow combining CopyBlocks= and CopyFiles=
Daan De Meyer [Fri, 28 Jul 2023 16:09:29 +0000 (18:09 +0200)] 
repart: Allow combining CopyBlocks= and CopyFiles=

Let's allow the combination of these two options. When used, repart
will first try to apply the CopyBlocks= behavior. If that's not possible,
it falls back to the CopyFiles= behavior.

This is a first step in being able to also use the partition definition
files shipped in the image to build the image in mkosi instead of having
a separate set of repart definition files to build the image.

2 years agorepart: Open files in context_minimize()
Daan De Meyer [Fri, 28 Jul 2023 15:44:03 +0000 (17:44 +0200)] 
repart: Open files in context_minimize()

Instead of relying on context_open_copy_blocks_paths() to do the
opening, let's just do it in context_minimize() itself as it's trivial.

2 years agoudev-builtin-net_id: split-out pci_get_onboard_index() from dev_pci_onboard() 28609/head
Yu Watanabe [Mon, 31 Jul 2023 19:18:52 +0000 (04:18 +0900)] 
udev-builtin-net_id: split-out pci_get_onboard_index() from dev_pci_onboard()

This also changes the onboard index type to unsigned, as it is at most
2^16 - 1. Hence, unsigned is enough.

Then, we can use device_get_sysattr_unsigned() helper function.

This also drops mostly redundant debugging logs. The index will be
logged later anyway.

2 years agoudev-builtin-net_id: split-out get_pci_slot_specifiers()
Yu Watanabe [Tue, 1 Aug 2023 00:58:56 +0000 (09:58 +0900)] 
udev-builtin-net_id: split-out get_pci_slot_specifiers()

Then, we can replace multiple strpcpyf() with single snprintf_ok().

No functional change, just refactoring.

2 years agoudev-builtin-net_id: introduce get_port_specifier() helper function
Yu Watanabe [Mon, 31 Jul 2023 20:02:19 +0000 (05:02 +0900)] 
udev-builtin-net_id: introduce get_port_specifier() helper function

To make the port specifier unified.
No functional change, just refactoring.

2 years agoudev-builtin-net_id: split out get_dev_port() and make its failure critical
Yu Watanabe [Thu, 22 Sep 2022 06:53:35 +0000 (15:53 +0900)] 
udev-builtin-net_id: split out get_dev_port() and make its failure critical

As dev_port and dev_id sysfs attributes are fundamental properties for
network interfaces. Hence, it should not fail.

Also, the type of dev_port is changed to unsigned. The kernel internally
uses 'unsigned short' for dev_port and dev_id. Hence, unsigned (that is,
32 bits) is still overkill, but should be enough.

2 years agoudev-builtin-net_id: split-out pci_get_hotplug_slot() and pci_get_hotplug_slot_from_a...
Yu Watanabe [Mon, 31 Jul 2023 18:27:33 +0000 (03:27 +0900)] 
udev-builtin-net_id: split-out pci_get_hotplug_slot() and pci_get_hotplug_slot_from_address()

No functional changes, just refactoring.

2 years agoudev-builtin-net_id: return earlier when hotplug slot is not found
Yu Watanabe [Mon, 31 Jul 2023 18:25:39 +0000 (03:25 +0900)] 
udev-builtin-net_id: return earlier when hotplug slot is not found

Then we can reduce indentation.
No functional change, just refactoring.

2 years agoudev-builtin-net_id: skip non-directory entry earlier
Yu Watanabe [Mon, 31 Jul 2023 18:22:57 +0000 (03:22 +0900)] 
udev-builtin-net_id: skip non-directory entry earlier

In the below, we will try to read 'address' file in the directory,
hence the entry must be a directory.

No functional change, just a tiny optimization.

2 years agopo: Translated using Weblate (French)
Pierre GRASSER [Mon, 31 Jul 2023 22:21:04 +0000 (00:21 +0200)] 
po: Translated using Weblate (French)

Currently translated at 100.0% (227 of 227 strings)

Co-authored-by: Pierre GRASSER <pierre.grasser@proton.me>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/master/fr/
Translation: systemd/main

2 years agomeson: move declarations of timedated and friends 28608/head
Yu Watanabe [Sun, 25 Jun 2023 07:04:32 +0000 (16:04 +0900)] 
meson: move declarations of timedated and friends

2 years agomeson: move declarations of localed and hostnamed
Yu Watanabe [Sun, 25 Jun 2023 07:01:31 +0000 (16:01 +0900)] 
meson: move declarations of localed and hostnamed

2 years agomeson: move declarations of several generators
Yu Watanabe [Sun, 25 Jun 2023 06:59:49 +0000 (15:59 +0900)] 
meson: move declarations of several generators

2 years agomeson: move declarations of cryptsetup and friends
Yu Watanabe [Sun, 25 Jun 2023 06:57:47 +0000 (15:57 +0900)] 
meson: move declarations of cryptsetup and friends

2 years agomeson: move declarations of backlight, rfkill, and sysupdate-generator
Yu Watanabe [Sun, 25 Jun 2023 06:55:33 +0000 (15:55 +0900)] 
meson: move declarations of backlight, rfkill, and sysupdate-generator

2 years agomeson: move declarations of homed and friends
Yu Watanabe [Sun, 25 Jun 2023 06:51:14 +0000 (15:51 +0900)] 
meson: move declarations of homed and friends

2 years agomeson: move declarations of userdbd and friends
Yu Watanabe [Sun, 25 Jun 2023 06:50:36 +0000 (15:50 +0900)] 
meson: move declarations of userdbd and friends

2 years agomeson: move declaration of sysext
Yu Watanabe [Sun, 25 Jun 2023 06:49:43 +0000 (15:49 +0900)] 
meson: move declaration of sysext

2 years agomeson: move declarations of portabled and friends
Yu Watanabe [Sun, 25 Jun 2023 06:48:28 +0000 (15:48 +0900)] 
meson: move declarations of portabled and friends

2 years agomeson: move declaration of systemctl
Yu Watanabe [Sun, 25 Jun 2023 06:44:30 +0000 (15:44 +0900)] 
meson: move declaration of systemctl

2 years agoMerge pull request #28606 from DaanDeMeyer/kernel-install
Yu Watanabe [Mon, 31 Jul 2023 20:48:27 +0000 (05:48 +0900)] 
Merge pull request #28606 from DaanDeMeyer/kernel-install

Kernel install fixes

2 years agoMerge pull request #28605 from yuwata/meson-use-template
Yu Watanabe [Mon, 31 Jul 2023 20:46:08 +0000 (05:46 +0900)] 
Merge pull request #28605 from yuwata/meson-use-template

meson: use template (part2)

2 years agokernel-install: Make sure KERNEL_INSTALL_BYPASS is disabled in tests 28606/head
Daan De Meyer [Mon, 31 Jul 2023 18:58:31 +0000 (20:58 +0200)] 
kernel-install: Make sure KERNEL_INSTALL_BYPASS is disabled in tests

2 years agokernel-install: Only bypass "add" and "remove"
Daan De Meyer [Mon, 31 Jul 2023 18:56:14 +0000 (20:56 +0200)] 
kernel-install: Only bypass "add" and "remove"

KERNEL_INSTALL_BYPASS should only bypass verbs that actually change
the system, not harmless verbs such as "inspect".

2 years agoudev: fix typo in comment
Yu Watanabe [Mon, 31 Jul 2023 17:39:13 +0000 (02:39 +0900)] 
udev: fix typo in comment

Follow-ups for ded2b1d0933b24d5e0a503e3bd37f8030a11d9a7 and
3327877ca332ad8188acd608807c64470a845125.

2 years agomeson: move declaration of socket-activate 28605/head
Yu Watanabe [Sun, 25 Jun 2023 06:42:23 +0000 (15:42 +0900)] 
meson: move declaration of socket-activate

2 years agomeson: move declarations of bootctl and friends
Yu Watanabe [Sun, 25 Jun 2023 06:41:42 +0000 (15:41 +0900)] 
meson: move declarations of bootctl and friends

This also drops unnecessary dependency on libblkid from
systemd-boot-check-no-failures.

2 years agomeson: move declaration of user-sessions
Yu Watanabe [Sun, 25 Jun 2023 06:39:45 +0000 (15:39 +0900)] 
meson: move declaration of user-sessions

2 years agomeson: move declarations of logind and friends
Yu Watanabe [Sun, 25 Jun 2023 06:38:19 +0000 (15:38 +0900)] 
meson: move declarations of logind and friends

2 years agomeson: move declarations of resolved and friends
Yu Watanabe [Sun, 25 Jun 2023 06:36:27 +0000 (15:36 +0900)] 
meson: move declarations of resolved and friends

2 years agomeson: move declarations of dissect and friends
Yu Watanabe [Sun, 25 Jun 2023 06:34:09 +0000 (15:34 +0900)] 
meson: move declarations of dissect and friends

2 years agomeson: move declarations of hibernate-resume
Yu Watanabe [Sun, 25 Jun 2023 06:31:38 +0000 (15:31 +0900)] 
meson: move declarations of hibernate-resume

2 years agomeson: move declarations of several generators
Yu Watanabe [Sun, 25 Jun 2023 06:20:29 +0000 (15:20 +0900)] 
meson: move declarations of several generators

2 years agomeson: move declarations of journald and friends
Yu Watanabe [Sun, 25 Jun 2023 06:16:57 +0000 (15:16 +0900)] 
meson: move declarations of journald and friends

2 years agomeson: move declaration of systemd-analyze
Yu Watanabe [Sun, 25 Jun 2023 06:15:56 +0000 (15:15 +0900)] 
meson: move declaration of systemd-analyze

2 years agoresolvectl: initialize the server state
Frantisek Sumsal [Mon, 31 Jul 2023 14:29:39 +0000 (16:29 +0200)] 
resolvectl: initialize the server state

Since not all fields of the dispatch table are mandatory we might end up
reading garbage if the optional field is not set.

In CIs we were lucky enough (or probably unfortunate enough) that the
garbage was printable, but in other cases the `show-server-state` verb
would just fail with:

$ resolvectl show-server-state
Failed to print table: Invalid argument

Follow-up to bc837621a38.

2 years agoMerge pull request #28153 from yuwata/meson-use-template
Yu Watanabe [Mon, 31 Jul 2023 17:22:15 +0000 (02:22 +0900)] 
Merge pull request #28153 from yuwata/meson-use-template

meson: use template to declare executables and modules

2 years agoMerge pull request #28568 from yuwata/network-address-next
Yu Watanabe [Mon, 31 Jul 2023 17:14:19 +0000 (02:14 +0900)] 
Merge pull request #28568 from yuwata/network-address-next

network: bunch of cleanups and fixes for addressing

2 years agofstab-util: use pointer returned by startswith()
Yu Watanabe [Mon, 31 Jul 2023 14:50:17 +0000 (23:50 +0900)] 
fstab-util: use pointer returned by startswith()