Commit Graph
79271 Commits
Author SHA1 Message Date
Yu Watanabe cdc9be29b1 udev/net: support to configure Energy Efficient Ethernet settings
Closes #36278.
2025-02-07 13:47:41 +09:00
Yu Watanabe 929cb8ba5d udev/net: reorder elements in LinkConfig, and add short comments 2025-02-07 12:37:57 +09:00
Yu Watanabe aedef65e2b firstboot: Populate XKBLAYOUT and friends as well in vconsole.conf (#36275)
Let's derive XKBLAYOUT and friends from the given keymap and populate
these as well in vconsole.conf so that if the user configures a keymap
it's also respected in display managers such as gdm.
2025-02-07 11:20:21 +09:00
tim tom 3050555490 po: Added translation using Weblate (Kannada)
Co-authored-by: tim tom <aktimtom@gmail.com>
2025-02-07 11:17:37 +09:00
Daan De Meyer 8a008fa792 firstboot: Populate XKBLAYOUT and friends as well in vconsole.conf
Let's derive XKBLAYOUT and friends from the given keymap and populate
these as well in vconsole.conf so that if the user configures a keymap
it's also respected in display managers such as gdm.
2025-02-07 09:18:36 +09:00
Daan De Meyer c4b4d42cae vconsole-util: Introduce vconsole_serialize()
Preparation for reuse in systemd-firstboot.
2025-02-07 09:18:36 +09:00
Daan De Meyer 6d0f502736 locale: Move vconsole specific logic to shared/vconsole-util.h
This allows reusing the logic in systemd-firstboot.c.

To avoid having to link libxkbcommon into libsystemd-shared, we add
a level of indirection to vconsole_convert_to_x11() so that the verify
function is passed in by the caller.
2025-02-07 09:18:36 +09:00
Vyacheslav Yurkov 8b413ae406 meson: Skip getent when it's not found 2025-02-07 09:15:46 +09:00
Yu WatanabeandRudi Heitbaum 0d879453ac basic/linux: update kernel headers from v6.14-rc1
Co-authored-by: Rudi Heitbaum <rudi@heitbaum.com>
2025-02-06 16:14:14 +00:00
Luca Boccassi 01b4535455 mkosi: extend util-linux-script config drop-in to F43
Fixes packit test

TEST-74-AUX-UTILS.sh[1104]: + script -ec 'networkctl edit --runtime "$NETWORK_NAME"' /dev/null
TEST-74-AUX-UTILS.sh[1154]: .//usr/lib/systemd/tests/testdata/units/TEST-74-AUX-UTILS.networkctl.sh: line 53: script: command not found
2025-02-06 16:13:03 +00:00
Thorsten Kukuk ac9edf9911 systemd-pull: support .asc and .sha256.* signature 2025-02-06 16:49:36 +01:00
Martin Hundebøll df8bd4c171 vmspawn: ignore failure from sshd-vsock@ unit
The "main" sshd@.service unit ignores the return code from per-session
instances, so do the same for the vsock variant.
2025-02-06 16:49:11 +01:00
Daan De Meyer f26ded4e31 mkosi: Only make build sources ephemeral if NO_BUILD is not enabled
If we're not building distribution packages from source, there's no
need to make the build sources ephemeral so don't enable the setting
if NO_BUILD is enabled.
2025-02-06 16:29:29 +01:00
Andreas Schneider 20634844dd docs: Add an examples for command line access
It took me almost an hour to read through the source code to construct
this line.
2025-02-06 13:38:34 +01:00
Lennart Poettering 240f2d5b5c homed: introduce "area" concept (i.e. secondary home directories stored below the primary one, of which one can pick one at login) (#36149)
This adds a new concept to homed/pam_systemd/pam_systemd_homed: "areas"
are secondary home dirs you can have inside your primary home dir, below
an `~/Areas/` hierarchy. You can log into these secondary dirs if you
specify "user%area" as user at login time.

This is quite useful for maintaining multiple sets of user resources
within the same user account with the same access privileges. The
intended usecase for me is utimately WSL-like stuff: you start a local
unpriv container which gets the host's home dir mounted in and fully
accessible, without this also meaning that the user account gets the
full set of settings and so on propagated down.

Codewise the concept is really simple: whenever an area name like
"foobar" is specified we simply change a $HOME of /home/lennart into
/home/lennart/Areas/foobar. In a way this PR adds more docs than code
for all this.

This also makes this feature directly accessible via "run0 -a foobar"
(for opening a new session in the 'foobar' area).

To be truly fun to use on text (i.e. getty) logins, a util-linux version
containing https://github.com/util-linux/util-linux/pull/3354 is best,
since otherwise $HOME is updated to /home/lennart/Areas/foobar, but the
cwd is still at /home/lennart.
2025-02-06 12:47:04 +01:00
Lennart Poettering 8954a2a833 test: add some basic area tests 2025-02-06 09:23:49 +01:00
Lennart Poettering 9f036cfd57 docs: document the new area functionality 2025-02-06 09:23:49 +01:00
Lennart Poettering abf9e6ede5 homectl: make default area configurable 2025-02-06 09:23:49 +01:00
Lennart Poettering f44e7a8c11 run0: add explicit support for opening sessions in specific areas 2025-02-06 09:23:49 +01:00
Lennart Poettering c747c04146 pam: introduce multiple per-user "areas", i.e. "sub-home-directories" of sorts 2025-02-06 09:23:49 +01:00
Lennart Poettering add946e834 user-record: add new 'default_area' field, but don't hook it up yet 2025-02-06 09:23:49 +01:00
Lennart Poettering 2824946d33 json-util: add generic json_dispatch_filename() dispatch helper 2025-02-06 09:23:49 +01:00
Lennart Poettering c554acd11d exec-invoke: respect $HOME set via PAM
This follows the same recent change in util-linux:

https://github.com/util-linux/util-linux/pull/3354

i.e. we generally want that PAM modules can override $HOME and it is
honoured for the CWD after login.

(This renames the 'home' variable we maintained sofar to 'pwent_home',
to clarify that it's the home directory listed in the struct passwd
entry, and thus not necessarily the one actually used)
2025-02-06 09:23:49 +01:00
Yu Watanabe 229d91793f boot: several follow-ups for .efifw section support (#36230)
Follow-ups for #35091.
2025-02-06 14:53:12 +09:00
Trollimpo 5e12894f05 hwdb: fix screen rotation for EXO Wings 2in1 w1125 (#36283) 2025-02-06 09:44:14 +09:00
Yu Watanabe 570cd55783 udevadm: several cleanups for command line option parsers (#36241) 2025-02-06 09:39:03 +09:00
Yu Watanabe 2b6890d92f udev-builtin: several trivial cleanups (#36239)
- introduces UDEV_BUILTIN_DESTRUCTOR macro,
- normalize log messages on initialize/finalize,
- explicitly initialize global variable,
- drop using _UDEV_BUILTIN_INVALID.
2025-02-06 09:38:39 +09:00
Lennart Poettering 40e6d38b8a update TODO 2025-02-05 23:37:17 +01:00
Fabian Möller cac3b43eee resolved: fix DNSSEC missing-key error
Skip unsupport/invalid `DS` and `DNSKEY` combinations during verification.

Fixes: #12545
2025-02-05 22:11:55 +01:00
Luca Boccassi e678a46f51 homectl: fix typos in help text (#36279)
I noticed two small typos while reading the help text for homectl.  
The `-P` option is described as "Same as
--enforce-password-**password**=no" when the option's name is
`--enforce-password-policy`.
While checking the man page to check if the typo was also there, i
noticed another typo where `--enforce-password-policy=no` has 3 dashes
instead of 2 in the description for `-P`.
2025-02-05 19:54:08 +00:00
Matthieu LAURENT df9c5c1c9c homectl: fix typo in man page 2025-02-05 17:31:15 +01:00
Matthieu LAURENT e8e778e8ab homectl: fix typo in help text 2025-02-05 17:28:37 +01:00
Daan De Meyer bc1291aa85 repart: Don't fail when we're unable to read file attributes
We're getting EOVERFLOW when reading file attributes trying to get
mkosi running in a docker container (don't ask). I have a suspicion
this is coming from fuse-overlayfs. Anyway, since the file attributes
stuff is supposed to be purely optional, let's not fail when we can't
read file attributes for whatever reason.
2025-02-05 16:18:42 +01:00
Luca Boccassi 2ee81b556f network/route: improve Gateway=_dhcp4 handling (#36183)
- Also configures route to the gateway and prefix route in the specified
table, if necessary.
- Also set preferred source address of the route.

Closes #36168.
2025-02-05 12:19:01 +00:00
Lennart Poettering 1ff24db10b update TODO 2025-02-05 11:51:31 +01:00
Lennart Poettering bc9e080396 update TODO 2025-02-05 11:04:09 +01:00
Daan De Meyer 8bd5da81ed man/udevadm: several minor cleanups (#36267) 2025-02-05 09:52:29 +01:00
Daan De Meyer ea086b0877 network/routing-policy-rule: fix compare function (#36268)
Fixes a regression caused by fc58350aa4
(v257).
Fixes #35874.
2025-02-05 09:50:59 +01:00
Yu Watanabe 4e752c9a2f man/udevadm: rebreak and reindent lines 2025-02-05 14:47:14 +09:00
Yu Watanabe d7596ec91c man/udevadm: list --version as a common option
Then, drop --version and --help from each sub commands.
2025-02-05 14:46:57 +09:00
Daan De Meyer 2443b4d9a1 stub: Mention that VirtualSize should be <= SizeOfRawData 2025-02-05 10:13:46 +09:00
Yu Watanabe 052ab05caf Two test readme improvements (#36265) 2025-02-05 10:08:00 +09:00
Yu Watanabe a10172b035 test-network: add test case for issue #35874 2025-02-05 09:40:31 +09:00
Yu Watanabe bc45d9c959 network/routing-policy-rule: fix compare func
Previously, when comparing an existing and requested routing policy
rules, `all` flag was unset, thus the from and to addresses in the two
rules were not compared. Hence, a new request with from and/or to
addresses might be considered as it already exists even the addresses of
existing one were different from the newly requested one.

All existing rules have valid family, i.e. AF_INET or AF_INET6. And,
all requesting rules with from and/or to addresses also have a valid
family. Hence, even `all` flag is unset, the addresses can be and must
be compared in that case.

Fixes a regression caused by fc58350aa4 (v257).
Fixes #35874.
2025-02-05 09:14:54 +09:00
Daan De Meyer f017a55213 test: Move external packages section down and reword a little
This is advanced level stuff that regular contributors don't care
about in the slightest, so move it further down. Also reword the
section a little while we're at it.
2025-02-04 20:46:11 +01:00
Daan De Meyer 728a88e549 test: Move NO_BUILD instructions to a separate section
This isn't relevant for regular development, so let's move it to a
separate section.
2025-02-04 20:24:17 +01:00
Daan De Meyer 284a56ff60 test: Drop -Dremote=enabled instructions from readme
The test commands now use mkosi sandbox which always makes sure the
required dependencies for systemd-journal-remote are enabled so no
need to reconfigure meson explicitly anymore.
2025-02-04 20:21:36 +01:00
Daan De Meyer 060676871e machine: introduce io.systemd.MachineImage.CleanPool (#35928)
This PR introduces io.systemd.MachineImage.CleanPool method which is
alternative to DBus's CleanPool.
2025-02-04 18:43:23 +01:00
Daan De Meyer 38801c9129 ukify/measure: Revert changes to use SizeOfImage from Linux PE binary
With 19812661f1, we make sure at runtime
in the stub itself that SizeOfImage from the Linux EFISTUB PE binary is
taken into account, so there's no need to take this into account in ukify
itself. By reverting the ukify change, we again ensure that Misc_VirtualSize
reflects the actual size of the Linux EFISTUB PE binary in the .linux section
which lots of tooling depends on. It also makes sure we don't measure a bunch
of extra zeroes in the stub which should fix systemd-pcrlock measurements as
well.

This effectively reverts 2188c759f9 and
0005411352.

Fixes #35851
2025-02-04 14:11:38 +01:00
Ivan Kruglov ea9b72ad35 machine: tests for io.systemd.MachineImage.CleanPool 2025-02-04 03:03:00 -08:00