Luca Boccassi [Wed, 30 Aug 2023 18:51:13 +0000 (19:51 +0100)]
logind: add PrepareForShutdownWithMetadata signal
The existing signal doesn't say which type of shutdown is going to happen.
With the introduction of soft-reboot, it is useful to have this information
broadcasted, so that clients can choose to do different things based on the
reboot type.
Add a{sv} as the payload so that more metadata can be added later if
needed, without needing to add yet another signal.
Send both old and new signal for backward compatibility, and send the new
one first so that clients can just wait for the first one on both old and
new systems.
Luca Boccassi [Sat, 9 Sep 2023 18:15:46 +0000 (19:15 +0100)]
Merge pull request #29130 from poettering/unit-defaults
core: introduce UnitDefaults structure for unit defaults
Luca Boccassi [Sat, 9 Sep 2023 17:39:16 +0000 (18:39 +0100)]
Merge pull request #29142 from poettering/pidref
core: first step towards a pidfd focused future
Luca Boccassi [Sat, 9 Sep 2023 15:38:29 +0000 (16:38 +0100)]
Merge pull request #29143 from DaanDeMeyer/mkosi-presets
Various mkosi improvements
Daan De Meyer [Sat, 9 Sep 2023 10:20:26 +0000 (12:20 +0200)]
mkosi: Conditionally use tools tree
If the systemd version on the host is too old and there's no local
build directory, use the default tools tree which will build an
image containing all the tooling required to build systemd and use
that to build the other presets.
Daan De Meyer [Sat, 9 Sep 2023 08:20:01 +0000 (10:20 +0200)]
mkosi: Only build system preset by default
Let's not build all presets by default, but only the system preset.
Also, let's only make the system preset depend on the initrd preset
if we're building a bootable disk image. This means that if we build
the system image as a cpio, uki or directory, the initrd preset will
be skipped as it's not necessary, making the build a little faster.
Daan De Meyer [Fri, 8 Sep 2023 20:04:28 +0000 (22:04 +0200)]
mkosi: Move to Fedora 39
Daan De Meyer [Sat, 9 Sep 2023 13:45:41 +0000 (15:45 +0200)]
mkosi: Update to latest
Daan De Meyer [Sat, 9 Sep 2023 09:31:26 +0000 (11:31 +0200)]
mkosi: Make sure custom installkernel scripts are not used
The kernel has this horrible build system feature where distros
can ship /sbin/installkernel and it'll automatically be used by
make install. Let's make sure that doesn't happen as on Debian this
script puts the kernel under the wrong name causing mkosi build
failures.
Mike Yuan [Sat, 9 Sep 2023 12:52:05 +0000 (20:52 +0800)]
Merge pull request #29117 from Werkov/memory_available
Make MemoryAvailable= more useful
Lennart Poettering [Sat, 9 Sep 2023 07:56:29 +0000 (09:56 +0200)]
update TODO
Lennart Poettering [Sat, 9 Sep 2023 10:57:46 +0000 (12:57 +0200)]
machined: port over to PidRef too
Lennart Poettering [Sat, 9 Sep 2023 10:35:07 +0000 (12:35 +0200)]
logind: also port session leader tracking over to PidRef
Lennart Poettering [Sat, 9 Sep 2023 10:09:53 +0000 (12:09 +0200)]
core: don't manually destroy timer when we can't spawn a child
Let's stop manually destroying the timers when we fail to spawn a child.
We don't do this in any of the similar codepaths in any of the unit
types, only in two specific ones in socket/swap. Destroying the timer is
unnecessary, since this is done anyway in the _set_state() call of each
unit type if not appropriate, and every failure path here runs through
that anyway.
This brings all these similar codepaths into sync.
Lennart Poettering [Sat, 9 Sep 2023 09:57:39 +0000 (11:57 +0200)]
core: also port swap units to PidRef
Lennart Poettering [Sat, 9 Sep 2023 09:52:14 +0000 (11:52 +0200)]
core: also port mount units to PidRef
Lennart Poettering [Sat, 9 Sep 2023 07:55:50 +0000 (09:55 +0200)]
core: convert Socket logic to PidRef too
Just like the previous commit, but for socket rather than service units.
Lennart Poettering [Sat, 9 Sep 2023 07:49:22 +0000 (09:49 +0200)]
core: reference main/control pid of .service units via PidRef
The first conversion to PidRef. It's mostly an excercise of
search/replace, but with some special care taken for life-cycle (i.e. we
need to destroy the structure properly once done, to release the pidfd).
It also uses pidfd based killing for some of the killing but leaves most
as it is to make the conversion minimal.
Lennart Poettering [Sat, 9 Sep 2023 07:29:27 +0000 (09:29 +0200)]
pidref: add structure that can reference a pid via both pidfd and pid_t
Let's start with the conversion of PID 1 to pidfds. Let's add a simple
structure with just two fields that can be used to maintain a reference
to arbitrary processes via both pid_t and pidfd.
This is an embeddable struct, to keep it in line with where we
previously used a pid_t directly to track a process.
Of course, since this might contain an fd on systems where we have pidfd
this structure has a proper lifecycle.
(Note that this is quite different from sd_event_add_child() event
source objects as that one is only for child processes and collects
process results, while this infra is much simpler and more generic and
can be used to reference any process, anywhere in the tree.)
Daan De Meyer [Sat, 9 Sep 2023 08:15:46 +0000 (10:15 +0200)]
mkosi: Allow configuring whether to do secure boot and pcrs from CLI
Michal Koutný [Thu, 7 Sep 2023 18:00:28 +0000 (20:00 +0200)]
dbus: Document org.freedesktop.systemd1.Service.MemoryAvailable property
The value is an optimistic estimate, make it clear in the docs.
Luca Boccassi [Sat, 9 Sep 2023 00:30:51 +0000 (01:30 +0100)]
Merge pull request #29127 from YHNdnzj/wall-followup
shared/wall: several cleanups
Luca Boccassi [Sat, 9 Sep 2023 00:28:35 +0000 (01:28 +0100)]
Merge pull request #29116 from yuwata/network-sriov-debug
network/sr-iov: ignore EINVAL in reading dev_port sysfs attribute
Ronan Pigott [Fri, 8 Sep 2023 22:27:39 +0000 (15:27 -0700)]
zsh: busctl: fix flags parsing for properties
I'm not quite sure what the original intent of this line was, but it
doesn't work in the one call-site the "required" argument is actually
used. The "writable" flag was indexed as a scalar leaving only the
"e" to compare against.
Instead, let's just sort the parsed flags and compare the whole thing.
Also substitute "required" as a pattern, so that pattern based
comparisons may be supported.
Lennart Poettering [Fri, 8 Sep 2023 19:28:26 +0000 (21:28 +0200)]
Revert "tree-wide: Mount file descriptors via /proc/<pid>/fd"
Lennart Poettering [Fri, 8 Sep 2023 15:02:11 +0000 (17:02 +0200)]
serialize: add common deserialize_read_line() helper and use it everywhere
This introduces a common helper replacing three very similar uses.
Prompted by review of: #27890
Mike Yuan [Fri, 8 Sep 2023 11:50:02 +0000 (19:50 +0800)]
TODO: switch the default wall implementation to sd-login
Mike Yuan [Fri, 8 Sep 2023 18:01:57 +0000 (02:01 +0800)]
shared/wall: fall back to logind if utmpx database doesn't exist
Mike Yuan [Fri, 8 Sep 2023 11:16:46 +0000 (19:16 +0800)]
shared/wall: several cleanups
Follow-up for
53c0397b1dbc95f144d9a551c2086d132933e8ce
* Split do_wall into wall_utmp and wall_logind
* Don't pass unused arguments
* Add missing asserts
* Modernize error handling
* Don't do anything if neither utmp nor logind is enabled
Mike Yuan [Fri, 8 Sep 2023 10:44:44 +0000 (18:44 +0800)]
utmp-wtmp: remove unneeded include
Michal Koutný [Thu, 7 Sep 2023 17:48:48 +0000 (19:48 +0200)]
cgroup: Estimate MemoryAvailable= when DefaultMemoryAccounting=no
Without memory accounting explicitly disabled, we may not obtain current
consumption from all units on the ancestry path.
Use a descendant value as lower bound estimate for ancestors if
ancestor's consumption cannot be directly queried.
This makes MemoryAvailable= an upper bound of available values.
Michal Koutný [Thu, 7 Sep 2023 17:27:52 +0000 (19:27 +0200)]
cgroup: Refactor MemoryAvailable= evaluation
unit_get_memory_available() duplicates similar logic contained in
unit_get_memory_current(). Instead, it can call it for each unit it
needs data for.
Additionally, simplify the flow by treating all units from leaf to root
uniformly in one loop.
Functional change when a queried unit does not have MemoryAccounting=yes
(or cgroup_path), we will try getting an estimate from ancestors.
Michal Koutný [Thu, 7 Sep 2023 16:50:08 +0000 (18:50 +0200)]
cgroup: Fix MemoryAvailable= by considering physical memory
Currently, querying a unit's available memory would result in infinity
if there are no limits set on the unit or ancestors.
That undermines semantics implied by the name, so look at the physical
memory if the search propagates up to the -.slice.
This makes sense even in systemd user instances, limits of -.slice are
still looked at too.
Also change printed representation of infinite MemoryAvailable which
means we could not figure out a good estimate.
Mike Yuan [Thu, 7 Sep 2023 13:38:00 +0000 (21:38 +0800)]
conf-parser: parse main config first only if not symlinked to/as drop-in
Otherwise we'll skip parsing main config directly.
Replaces #27152
Replaces #28956:
chase() is an overkill for determining whether
two files are the same. We only need to check
if the inodes are the same.
Mike Yuan [Thu, 7 Sep 2023 15:28:45 +0000 (23:28 +0800)]
repart,bootspec: use set_ensure_consume
Alvin Alvarado [Fri, 8 Sep 2023 04:02:52 +0000 (14:02 +1000)]
ukify/man: Look for a config file in systemd folders if not specified
If the user does not specify a config file to use, ukify will try looking for one at {/run,/etc,/usr/local/lib,/usr/lib}/systemd/ukify.conf in order and then use the first one found. Also made sure the --config input is a pathlib.Path by specifying its type in its CONFIG_ITEMS entry.
Big cheers to Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> for helping!
Lennart Poettering [Fri, 8 Sep 2023 12:26:17 +0000 (14:26 +0200)]
core: introduce unit_defaults_init() common initialization helper
THis adds a helper for initializing UnitDefaults to our default values.
Previously we'd do that differently in two different locations. Let's
unify this in one, and apply the exact same settings at both as
defaults.
Lennart Poettering [Fri, 8 Sep 2023 12:06:42 +0000 (14:06 +0200)]
manager: add manager_set_unit_defaults() call that sets all unit defaults in one go
No change in behaviour. Just some refactoring.
Lennart Poettering [Fri, 8 Sep 2023 11:37:52 +0000 (13:37 +0200)]
manager: move various fields that declare unit defaults into a new structure UnitDefaults
This adds a new structure UnitDefaults which embedds the various default
settings for units we maintain. We so far maintained two sets of
variables for this, one in main.c as static variables and one in the
Manager structure. This moves them into a common structure.
This is most just search/replace, i.e. very dumb refactoring.
The fact that we now use a common structure for this allows us further
refactorings later.
Inspired by the discussions on #27890
Yu Watanabe [Thu, 7 Sep 2023 15:56:16 +0000 (00:56 +0900)]
network/sr-iov: move common parts to link_set_sr_iov_ifindices()
This also adds several debugging logs.
No functional change, just refactoring.
Yu Watanabe [Thu, 7 Sep 2023 15:54:08 +0000 (00:54 +0900)]
network/sr-iov: ignore -EINVAL in reading dev_port sysfs attribute
Fixes #27369.
Mike Yuan [Fri, 8 Sep 2023 10:11:12 +0000 (18:11 +0800)]
Merge pull request #29123 from yuwata/conf-parser-cleanups-for-config-section
conf-parser: several cleanups and generalizations for ConfigSection
Luca Boccassi [Fri, 8 Sep 2023 09:42:08 +0000 (10:42 +0100)]
Merge pull request #29121 from yuwata/network-drop-duplicated
network: drop duplicated checks and function calls
Lennart Poettering [Fri, 8 Sep 2023 08:24:39 +0000 (10:24 +0200)]
Merge pull request #29071 from YHNdnzj/loop-write-full
io-util: introduce loop_write_full and use it where appropriate
Daan De Meyer [Fri, 8 Sep 2023 07:47:41 +0000 (09:47 +0200)]
mkosi: Drop arch workaround
archlinux-keyring was updated in Michel's PPA so let's drop the
workaround.
Yu Watanabe [Thu, 7 Sep 2023 19:42:48 +0000 (04:42 +0900)]
conf-parser: introduce ordered_hashmap_by_section_find_unused_line()
Yu Watanabe [Thu, 7 Sep 2023 20:11:57 +0000 (05:11 +0900)]
conf-parser: check overflow in hashmap_find_free_section_line()
Also, this also renames the function, and makes it optionally takes
a filename.
Yu Watanabe [Thu, 7 Sep 2023 19:59:39 +0000 (04:59 +0900)]
conf-parser: modernize config_section_new()
- add assertions,
- rename argument to store result.
Yu Watanabe [Thu, 7 Sep 2023 19:39:15 +0000 (04:39 +0900)]
hashmap: introduce HASHMAP_BASE_FOREACH() and friend
Yu Watanabe [Thu, 7 Sep 2023 18:26:27 +0000 (03:26 +0900)]
network: drop duplicated check
The same check is in network_adjust_dhcp_server().
Yu Watanabe [Thu, 7 Sep 2023 19:16:31 +0000 (04:16 +0900)]
network: drop duplicated address_set_broadcast()
It will be called later in link_request_address().
Frantisek Sumsal [Thu, 7 Sep 2023 20:47:26 +0000 (22:47 +0200)]
ci: temporarily disable Packit's i386
As it currently crashes when extracting debuginfo due to [0] and hangs
until it's killed by the watchdog (which takes ~5 hours).
[0] https://bugzilla.redhat.com/show_bug.cgi?id=
2237392
Lennart Poettering [Thu, 7 Sep 2023 10:11:10 +0000 (12:11 +0200)]
tpm2-util: drop support for creating TPM2 trial sessions
This is unused these days, we instead calculate policy hashes ourselves
and do not need trial sessions for that anymore. Given how unreliable
they are in actual TPMs, we don't want to use them anyway, so I don't
think we ever want to readd this.
hence, let's drop this unused feature.
Jan Janssen [Thu, 7 Sep 2023 13:46:42 +0000 (15:46 +0200)]
efi: Add some more paranoia asserts
Zbigniew Jędrzejewski-Szmek [Thu, 7 Sep 2023 15:34:27 +0000 (17:34 +0200)]
Merge pull request #29036 from YHNdnzj/hibernate-resume-when-battery-low
hibernate-resume: split out the logic of finding hibernate location and support battery-check better
наб [Sun, 3 Sep 2023 20:34:41 +0000 (22:34 +0200)]
parse_timestamp: accept RFC3339-style timezone and %FT%R[:%S[.%N]]
We basically parsed the RFC3339 format already, except with a space:
NOTE: ISO 8601 defines date and time separated by "T".
Applications using this syntax may choose, for the sake of
readability, to specify a full-date and full-time separated by
(say) a space character.
so now we handle both
2012-11-23 11:12:13.456
2012-11-23T11:12:13.456
as equivalent.
Parse directly-suffixed Z and +05:30 timezones as well:
2012-11-23T11:12:13.456Z
2012-11-23T11:12:13.456+02:00
as they're both defined by RFC3339.
We do /not/ allow z or t; the RFC says
NOTE: Per [ABNF] and ISO8601, the "T" and "Z" characters in this
syntax may alternatively be lower case "t" or "z" respectively.
This date/time format may be used in some environments or contexts
that distinguish between the upper- and lower-case letters 'A'-'Z'
and 'a'-'z' (e.g. XML). Specifications that use this format in
such environments MAY further limit the date/time syntax so that
the letters 'T' and 'Z' used in the date/time syntax must always
be upper case. Applications that generate this format SHOULD use
upper case letters.
We /are/ in a case-sensitive environment, neither are in wide-spread
use, and "z" poses an issue of whether "todayz" should be the same
as "todayZ" ("today UTC") or an error (it should be an error).
Fractional seconds are limited to six digits (they're nominally
time-secfrac = "." 1*DIGIT
), since we only support 1µs-resolution timestamps, and limit to six
digits in our other sub-second formats.
Parsing
2012-11-23T11:12
is an extension two ways (no seconds, no timezone),
mirroring our "canonical" format.
Fixes #5194
Mike Yuan [Tue, 5 Sep 2023 05:07:02 +0000 (13:07 +0800)]
shared/wall: use loop_write_full
Mike Yuan [Tue, 5 Sep 2023 14:15:09 +0000 (22:15 +0800)]
io-util: introduce loop_write_full that takes a timeout
Also drop do_poll as the use case is covered
by timeout.
Mike Yuan [Sat, 2 Sep 2023 11:16:44 +0000 (19:16 +0800)]
units: order battery-check before hibernate-resume
Mike Yuan [Tue, 5 Sep 2023 13:50:04 +0000 (21:50 +0800)]
hibernate-resume: split out the logic of finding hibernate location
Before this commit, the hibernate location logic only exists in
the generator. Also, we compare device nodes (devnode_same()) and
clear EFI variable HibernateLocation in the generator too. This is
not ideal though: when the generator gets to run, udev hasn't yet
started, so effectively devnode_same() always fails. Moreover, if
the boot process is interrupted by e.g. battery-check, the hibernate
information is lost.
Therefore, let's split out the logic of finding hibernate location.
The generator only does the initial validation of system info and
enables systemd-hibernate-resume.service, and when the service
actually runs we validate everything again, which includes comparing
the device nodes and clearing the EFI variable. This should make
things more robust, plus systems that don't utilize a systemd-enabled
initrd can use the exact same logic to resume using the EFI variable.
I.e., systemd-hibernate-resume can be used standalone.
Lennart Poettering [Thu, 7 Sep 2023 09:54:52 +0000 (11:54 +0200)]
Merge pull request #28957 from yuwata/core-mount-set-dirty-on-umount
core/credential,mount: re-read /proc/self/mountinfo before invoking umount command
Christian Kirbach [Wed, 6 Sep 2023 21:21:23 +0000 (23:21 +0200)]
po: Translated using Weblate (German)
Currently translated at 85.4% (194 of 227 strings)
Co-authored-by: Christian Kirbach <christian.kirbach@gmail.com>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/master/de/
Translation: systemd/main
Zbigniew Jędrzejewski-Szmek [Wed, 6 Sep 2023 12:51:07 +0000 (14:51 +0200)]
test: use 'until' instead of 'while !'
In general, it's better to avoid a negation. And "!" is special, because it is
used for history expansion, i.e. the same command would behave differently if
pasted on the command line.
Inspired by
4a899c5a239eb50df3f596af4ff145f4a2d33f23.
David Santamaría Rogado [Wed, 6 Sep 2023 14:24:04 +0000 (16:24 +0200)]
hwdb: keyboard: D330 FnLk toggle
Map Fn+Tab to fn_esc as is FnLock toggle in this keyboard. Still doesn't behave as expected because work in ideapad_laptop kernel module could be required but now at least we report the same mapping in others keyboards with Fn+ESC for FnLock and not unknown.
Signed-off-by: David Santamaría Rogado <howl.nsp@gmail.com>
Luca Boccassi [Wed, 6 Sep 2023 17:58:27 +0000 (18:58 +0100)]
Merge pull request #29098 from keszybz/man-page-postreview-fixup
man/systemd-id128: fix example
Jan Janssen [Wed, 6 Sep 2023 14:02:02 +0000 (16:02 +0200)]
man: Add new Microsoft CAs to example
Also, let's use the links from the Microsoft documentation as they are
guaranteed to be stable.
Fixes: #29102
Lennart Poettering [Tue, 5 Sep 2023 11:55:41 +0000 (13:55 +0200)]
openssl-util: add common implementation of digest+sign
Yu Watanabe [Thu, 24 Aug 2023 14:41:05 +0000 (23:41 +0900)]
core/credential,mount: re-read /proc/self/mountinfo before invoking umount command
When a unit has credentials, stopping the service unmounts the credentials
directory. On shutdown, stopping the service and the corresponding mount
unit may be done mostly simultaneously, and if we invoke umount command soon
after umount() being called on stopping the service, the mount unit will
fail.
This makes Mount.invalidated_state flag set when umount() is called for a path,
and re-read /proc/self/mouninfo before invoking umount command if the flag is set.
Fixes #25527.
Replaces #26959.
Yu Watanabe [Fri, 25 Aug 2023 07:23:14 +0000 (16:23 +0900)]
test-execute: check credentials can be read on ExecStartPost= and friends
Prompted by
https://github.com/systemd/systemd/pull/28787#issuecomment-
1690614202.
Yu Watanabe [Fri, 25 Aug 2023 07:11:02 +0000 (16:11 +0900)]
core/exec-credential: introduce exec_context_get_credential_directory() helper function
No functional change, just refactoring.
Yu Watanabe [Thu, 24 Aug 2023 14:52:51 +0000 (23:52 +0900)]
core: rename credential.[ch] -> exec-credential.[ch]
Also rename setup_credentials() -> exec_setup_credentials().
Addresses the post-merge review
https://github.com/systemd/systemd/pull/28787#pullrequestreview-
1592065048.
Yu Watanabe [Fri, 25 Aug 2023 06:54:52 +0000 (15:54 +0900)]
Revert "core: do not leak mount for credentials directory if mount namespace is enabled"
This reverts commits
-
9ae3624889b98f75efa6fd0c5f4b4de3eaf328d4
"test-execute: add tests for credentials directory with mount namespace"↲
-
94fe4cf2557d1f70f20ee02d32f4c2ae6bc1fb3f
"core: do not leak mount for credentials directory if mount namespace is enabled",
-
7241b9cd72d6e6079d5140cf24c34e78d3cf43cc
"core/credential: make setup_credentials() return path to credentials directory",
-
fbaf3b23ae4aa79110ebd37aada70ce6a044c692
"core: set $CREDENTIALS_DIRECTORY only when we set up credentials"
Before the commits, credentials directory set up on ExecStart= was kept
on e.g. ExecStop=. But, with the changes, if a service requests a
private mount namespace, the credentials directory is discarded after
ExecStart= is finished.
Let's revert the change, and find better way later.
Addresses the post-merge comment
https://github.com/systemd/systemd/pull/28787#issuecomment-
1690614202.
Zbigniew Jędrzejewski-Szmek [Wed, 6 Sep 2023 14:58:50 +0000 (16:58 +0200)]
id128: add forgotten option to --help
Zbigniew Jędrzejewski-Szmek [Wed, 6 Sep 2023 07:59:11 +0000 (09:59 +0200)]
man/systemd-id128: fix example
The example was supposed to show how
machine-id/new/machine-id --app-specific/show --app-specific tie together, but
the verb was ommitted.
I also extended the explanation a bit and used long option form in the first
example for more clarity. In the second, more complicated example, the
one-letter form is used for brevity.
Noticed in post-review:
https://github.com/systemd/systemd/pull/28988/commits/
b37e8184a5a376749fbf68674ed6d7a4fc9901aa#r1315678438
Thorsten Kukuk [Mon, 4 Sep 2023 08:08:13 +0000 (10:08 +0200)]
shared/wall: use logind if build without utmp support
If systemd is build without utmp support, use sd_get_sessions() in
utmp_wall() to get a list of logged in users with the corresponding tty.
Yu Watanabe [Thu, 24 Aug 2023 14:10:26 +0000 (23:10 +0900)]
core: allow to run generators without sandboxing on qemu-user
When running on non-native userland architecture via systemd-nspawn
and qemu-user-static QEMU-emulator, clone() with CLONE_NEWNS fails with
EINVAL.
Fixes #28901.
[zjs: add a comment in the code]
Luca Boccassi [Wed, 6 Sep 2023 12:18:01 +0000 (13:18 +0100)]
Merge pull request #29101 from DaanDeMeyer/kernel
mkosi: More kernel fixes
Daan De Meyer [Wed, 6 Sep 2023 10:58:30 +0000 (12:58 +0200)]
mkosi: Don't disable CONFIG_USB
Having USB enabled seems useful enough, this wasn't doing anything
regardless because we already enable CONFIG_USB earlier in the kconfig
file so this just gets rid of warning.
Daan De Meyer [Wed, 6 Sep 2023 10:57:57 +0000 (12:57 +0200)]
mkosi: Don't build hid selftests
We don't build our kernel with hid support so don't build the selftests
either.
Daan De Meyer [Wed, 6 Sep 2023 10:31:32 +0000 (12:31 +0200)]
mkosi: Enable two more kernel configs
Required for some bpf selftests so let's enable these in our config.
Luca Boccassi [Wed, 6 Sep 2023 10:11:51 +0000 (11:11 +0100)]
Merge pull request #29099 from medhefgo/ci
ci: Misc improvements
Lennart Poettering [Tue, 5 Sep 2023 11:54:35 +0000 (13:54 +0200)]
update TODO
Jan Janssen [Tue, 5 Sep 2023 10:07:01 +0000 (12:07 +0200)]
ci: Do not run build test as root
Although, this is CI, we can still do better. It also ensures that any
env var changes make it into the script, as things like PATH would not
survive a `sudo -E`.
Jan Janssen [Tue, 5 Sep 2023 10:03:13 +0000 (12:03 +0200)]
ci: Don't produce debug output for build tests
These binaries are never used, so generating debug symbols just
slows down build time.
Jan Janssen [Tue, 5 Sep 2023 10:02:05 +0000 (12:02 +0200)]
ci: Use apt-get in favor of apt
Apparently, apt does not have a stable CLI interface and warns about it.
Jan Janssen [Tue, 5 Sep 2023 09:29:06 +0000 (11:29 +0200)]
ci: Use add-apt-repository to enable sources
This should also ensure that consistent mirrors are selected.
khm [Wed, 6 Sep 2023 08:59:19 +0000 (01:59 -0700)]
Update 60-input-id.hwdb: add TEX Shinobi (#29068)
* Update 60-input-id.hwdb: add TEX Shinobi
The TEX Shinobi keyboard with trackpoint incorrectly identifies as a mouse instead of a pointing stick. This corrects it as suggested at https://gitlab.freedesktop.org/libinput/libinput/-/issues/932#note_2069967
Following the example of the Lite-On keyboard entry, this modalias specifies the mouse unit without tagging the device's other entries.
Jan Janssen [Wed, 30 Aug 2023 17:58:14 +0000 (19:58 +0200)]
ci: Remove custom build step names
Putting build matrix details into a build step name is rather useless as
the jobs themselves already contain the needed information.
Susant Sahani [Tue, 5 Sep 2023 10:10:22 +0000 (15:40 +0530)]
test-network: Add test for PREF64
Yu Watanabe [Tue, 5 Sep 2023 23:27:28 +0000 (08:27 +0900)]
Merge pull request #29088 from yuwata/libsystemd-network-headers
libsystemd-network: split headers
Yu Watanabe [Tue, 5 Sep 2023 23:25:35 +0000 (08:25 +0900)]
Merge pull request #29094 from yuwata/network-dbus-doc
man: update documents for network DBus interfaces
Luca Boccassi [Tue, 5 Sep 2023 21:23:06 +0000 (22:23 +0100)]
Merge pull request #29091 from yuwata/sd-dhcp-client-use-usec
sd-dhcp-client: use usec_t for time values
Yu Watanabe [Mon, 4 Sep 2023 14:46:50 +0000 (23:46 +0900)]
sd-dhcp6-client: split out sd-dhcp6-protocol.h
Yu Watanabe [Mon, 4 Sep 2023 13:34:03 +0000 (22:34 +0900)]
sd-dhcp-server: fix typo in arguments
Yu Watanabe [Mon, 4 Sep 2023 13:33:40 +0000 (22:33 +0900)]
sd-dhcp: split out sd-dhcp-protocol.h from sd-dhcp-client.h
Yu Watanabe [Mon, 4 Sep 2023 13:22:32 +0000 (22:22 +0900)]
meson: sort headers
Yu Watanabe [Tue, 5 Sep 2023 19:32:04 +0000 (04:32 +0900)]
man: mention DBus interfaces for DHCP clients
Follow-up for #28896.
Yu Watanabe [Tue, 5 Sep 2023 12:41:57 +0000 (21:41 +0900)]
network/ndisc: split out ndisc_router_process_icmp6_ratelimit()
Otherwise, if ndisc_router_process_default() return earlier, e.g.
when Network.ipv6_accept_ra_use_gateway is false, then the
ratelimit is not applied.
Luca Boccassi [Tue, 5 Sep 2023 21:02:47 +0000 (22:02 +0100)]
Merge pull request #29089 from yuwata/network-ndisc-pref64-follow-ups
network/ndisc: follow-ups for PREF64 handling
Yu Watanabe [Tue, 5 Sep 2023 20:55:29 +0000 (05:55 +0900)]
network: reorder bus implementations
Otherwise, in the man page, DHCPServer interface is listed in the Link
object.