Commit Graph
68722 Commits
Author SHA1 Message Date
Yu Watanabe 62c9beaa2c conf-parser: inline variable declaration 2023-11-13 00:46:34 +09:00
Jeremy Fleischman 121cb88292 Fix some typos in RESOLVED-VPNS.md 2023-11-12 12:55:29 +00:00
Mike Yuan 214bed77e8 Merge pull request #29941 from Flowdalic/cgroup-memory-swap-peak
cgroup: add support for memory.swap.peak and memory.swap.current
2023-11-12 16:21:44 +08:00
Luca Boccassi 22f62b8917 test: sort files in generate-sym-test.py
The test binaries are different depending on the filesystem, due to os.walk().
Sort the input before iterating on it to make it stable.
2023-11-12 12:54:23 +09:00
Florian Schmaus 37533c9432 cgroup: add support for memory.swap.current
In systemctl-show we only show current swap if ever swapped or non-zero. This
reduces the noise on swapless systems, that would otherwise always show a swap
value that never has the chance to become non-zero. It further reduces the
noise for services that never swapped.
2023-11-11 12:16:29 +01:00
Florian Schmaus 991506ae5d cgroup: de-duplicate uni_get_memory_* code 2023-11-11 12:14:07 +01:00
Florian Schmaus aac3384e56 cgroup: add support for memory.swap.peak 2023-11-11 12:14:07 +01:00
Yu Watanabe 620788da17 TODO: fix typo 2023-11-11 17:58:14 +09:00
Yu Watanabe 49549a458c Merge pull request #29929 from poettering/tty-reset-fixes
pid1: various fixes around TTY resets
2023-11-11 12:44:31 +09:00
Yu Watanabe 7fad66b1a7 Merge pull request #29958 from mrc0mmand/journal-line_max
journal: recalculate line_max when stdout stream state changes
2023-11-11 12:39:57 +09:00
cvlc12 f712b11df6 Update kernel-install man page, Ukify is the default UKI_GENERATOR
Ukify is the default generator, and will be used if UKI_GENERATOR is unset. See https://github.com/systemd/systemd/pull/28687
2023-11-11 12:25:37 +09:00
Luca Boccassi 459f51fe6b Merge pull request #29982 from poettering/repart-message-tweaks
repart: minor log message tweaks
2023-11-10 23:16:13 +00:00
Clayton CraftandDaniel Thompson 0f781d2aa5 boot: load device tree even if no original config exists
Firmware may not have loaded a devicetree, for example if the device
shipped with windows and exclusively supports ACPI.
We should always load the specified devicetree regardless of firmware
state to enable booting on platforms where Linux only supports DT.

Note: in _cleanup, the orig. config is NULL in this case, and passing
NULL to InstallConfigurationTable is permitted by the EFI spec.
See: https://uefi.org/specs/UEFI/2.10/07_Services_Boot_Services.html

Fixes #24059

Co-authored-by: Daniel Thompson <daniel.thompson@linaro.org>
2023-11-10 22:04:50 +00:00
Luca Boccassi efe4303b5d Merge pull request #29981 from yuwata/network-dhcp6-pd-without-address
network: fix DHCPv6-PD without addressing
2023-11-10 22:04:25 +00:00
Lennart Poettering dc7e34b369 repart: downgrade pcrlock pickup log message
This is not relevant in most cases, hence don't mention this all the
time.
2023-11-10 22:53:49 +01:00
Lennart Poettering acdf6bcfdb repart: say on which device we apply things
So far we never mention the device in our output. Let's fix that.
2023-11-10 22:53:49 +01:00
Lennart Poettering a053f801f8 repart: when we copy in blocks, indicate we are doing from an offset
At first I thought when using --copy-from= that it was copying in my
whole disk into a partition instead of just a partition into a
partition.

Let's make the log message clearer and say that we copy starting from an
offset.
2023-11-10 22:53:49 +01:00
Lennart Poettering b7786df093 repart: mention how long it took to copy in data blocks
This is quite interesting information, show it.
2023-11-10 22:53:49 +01:00
Lennart Poettering 561c1529be execute: add comment explaining what stdio_as_fds does 2023-11-10 21:38:26 +01:00
Lennart Poettering c34eaeb5eb execute: use right fd to fix tty size 2023-11-10 21:38:26 +01:00
Lennart Poettering 29ed1f0203 execute: make clear what reset_terminal_fd()'s 2nd param is about 2023-11-10 21:38:26 +01:00
Lennart Poettering bb2dbe7c6a exec-invoke: only reset tty if we are told to
We have a setting for this, honour it also if we are invoked with
stdin passed in as fd.

Fixes: #29714
2023-11-10 21:38:26 +01:00
Lennart Poettering d2b9e75524 execute: add new helper exec_context_apply_tty_size()
This combines exec_context_determine_tty_size() and
terminal_set_size_fd() since we always use one after the other.

Also make exec_context_determine_tty_size() return void, since it cannot
fail.
2023-11-10 21:38:26 +01:00
Yu Watanabe 1805e2cb05 test-network: add test case for issue #29979 2023-11-11 03:57:59 +09:00
Yu Watanabe fc4aa64c2d network/dhcp6: skip to check existence of DHCPv6 address when UseAddress=no
Follow-up for 1536b7b2d0 and
5f950e5621.

Fixes #29979.
2023-11-11 03:30:34 +09:00
Yu Watanabe f5e1781a9e network/dhcp6: use link_check_address_ready() at one more place 2023-11-11 03:30:34 +09:00
Yu Watanabe 706cd85937 network/dhcp-pd: use correct flag when DHCPv4 6rd is enabled
Previously, Link.dhcp6_configured flag was unconditionally used even if
the route is configured based on the DHCPv4 protocol.

Follow-up for a27588d4e7 and
e49bad0179.
2023-11-11 03:30:34 +09:00
Lennart Poettering f3066d635a update TODO 2023-11-10 18:55:22 +01:00
Frantisek Sumsal 17ee59c9c9 fuzz: pass -Dc_args=/-Dcpp_args= to fuzzer targets
Prompted by #29972, because right now it's practically impossible to pass
-fno-sanitize=function to the fuzzer targets without some extensive
sed'ing.

This splits both c_args and cpp_args to separate arguments for
tools/meson-build.sh, because the other way would be to use `eval`, so
the space-separated but quoted strings passed to these options are not
split where they shouldn't, and I'd rather avoid using `eval` if
possible.

Also, this switches the positional arguments we pass to `meson setup`,
as they were in incorrect order (docs say it should be buildir followed
by sourcedir); meson is apparently clever enough to figure this out and
switch the arguments around if necessary, so it didn't complain.
2023-11-10 17:22:08 +00:00
Luca Boccassi be0916f77c Merge pull request #29955 from poettering/repart-seal-key
repart: add --tpm2-seal-key= support, matching the recently added support cryptenroll has
2023-11-10 16:52:00 +00:00
Luca Boccassi d8beda5023 Merge pull request #29947 from poettering/srk-beefup
tpm2: make SRK easily accessible for use with systemd-cryptenroll --tpm2-device-key=
2023-11-10 16:47:46 +00:00
zeroskyx 49a2fe1388 hwdb: Add accelerometer data for Librem11 (#29974) 2023-11-10 22:32:05 +09:00
Luca Boccassi ba8eda568c portablectl: fix detaching when an extension image has been deleted 2023-11-10 12:58:45 +00:00
Daniele Medri 4e3c9c8c0b it.po: updates 2023-11-10 12:55:24 +00:00
Cheng-Chia Tseng b04b9bc0a6 po: Translated using Weblate (Chinese (Traditional) (zh_TW))
Currently translated at 83.7% (190 of 227 strings)

Co-authored-by: Cheng-Chia Tseng <pswo10680@gmail.com>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/master/zh_TW/
Translation: systemd/main
2023-11-10 11:52:58 +00:00
Frantisek Sumsal 4f3d8def18 test: don't pre-process $KERNEL_APPEND
Let's just rely on the word splitting done by bash instead of messing
with that ourselves, as it's just adding extra complexity to appease one
ShellCheck check. Also, this apparently never worked for the nspawn
stuff anyway, since I forgot to set $IFS to an appropriate value, so it
always put all arguments from $KERNEL_APPEND into a single array item
with an extra newline, which then made systemd sad:

~# readarray arr <<< "foo bar baz"; for i in "${arr[@]}"; do echo "'$i'"; done
'foo bar baz
'
~# make -C test/TEST-45-TIMEDATE/ clean setup run BUILD_DIR=$PWD/build TEST_NO_QEMU=1 KERNEL_APPEND="systemd.log_level=console"
...
~# journalctl -o short-monotonic --no-hostname --file /var/tmp/systemd-tests/systemd-test.XaDX67/system.journal --grep "Failed to parse" -p info --no-pager
[551138.986882] systemd-tmpfiles[21]: Failed to parse log level 'console
[551138.987179] systemd-remount-fs[20]: Failed to parse log level 'console
[551138.993125] systemd-sysusers[23]: Failed to parse log level 'console
[551138.998685] journalctl[29]: Failed to parse log level 'console

Resolves: #29945
2023-11-09 16:31:12 +00:00
Luca Boccassi 2dbfb4f9f2 Merge pull request #29954 from DaanDeMeyer/fix
repart: Fix size round up/round down
2023-11-09 16:30:37 +00:00
Yu Watanabe b5f7d1d550 Merge pull request #29937 from yuwata/network-fix-json-format
network: fix json output
2023-11-09 21:47:37 +09:00
Luca Boccassi 42874983ec Merge pull request #29783 from CodethinkLabs/vmspawn/notify-socket-forward-pr
vmspawn - forward messages to notify socket forward
2023-11-09 12:39:10 +00:00
Frantisek Sumsal 1bc4463351 test: drop the workaround for unexpected newlines 2023-11-09 13:30:53 +01:00
Frantisek Sumsal d603e3d58c journal: recalculate line_max when stdout stream state changes
Otherwise we might still use the more restrictive limit when we get to
STDOUT_STREAM_RUNNING, causing unexpected line breaks in the journal
messages.

Follow-up to: 80e9720616
Resolves: #29916
2023-11-09 13:29:00 +01:00
Antonio Alvarez Feijoo 52c7727f54 bootctl: fix code comment 2023-11-09 12:14:01 +00:00
Frantisek Sumsal a155ef7b65 test: add one missing assertion
This also makes sure the first signal doesn't "spill" over into the
second check.
2023-11-09 12:13:33 +00:00
Lennart Poettering 948a4bb5cf test: test the new srk extraction functionality 2023-11-09 12:50:20 +01:00
Lennart Poettering 342c70da7c man: update --tpm2-device-key= docs to reference the new ways to get the SRK 2023-11-09 12:49:29 +01:00
Lennart Poettering d30693f39b analyze: add "srk" verb to extract current srk from TPM2 chip
This is pretty low-level functionality, hence placed in systemd-analyze.
This is useful for working with systemd-cryptenroll --tpm2-device-key=,
as it acquires the SRK without requiring the full tpm2-tss tool set.
2023-11-09 12:48:27 +01:00
Lennart Poettering fbe7db47f4 tpm2-setup: also save the SRK to the file system in TPM2_PUBLIC format
We already save it in PEM format, also store it TPM2_PUBLIC format next
to it. This is useful for usage with systemd-cryptenroll's
--tpm2-device-key= switch.
2023-11-09 12:47:24 +01:00
Lennart Poettering fadc7d8cd7 repart: add missing --tpm2-pcrlock= in --help text
Follow-up for: 404aea7815
2023-11-09 11:36:13 +00:00
Lennart Poettering 869996dd89 update TODO 2023-11-09 12:28:37 +01:00
Lennart Poettering 6528563e64 test: make sure --tpm2-device-key= works correctly in repart, too 2023-11-09 12:28:37 +01:00