1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-26 14:04:03 +03:00

68536 Commits

Author SHA1 Message Date
Luca Boccassi
a6b8ecf304 udev: ressize -> result_size
Lintian flags it as a typo of 'resize', so rename it and make it clearer too
2023-11-06 18:48:25 +00:00
Peter Hutterer
351072ed71 login: switch an if condition to a switch statement
No functional changes but makes the code more readable once we expand
the list of device types.
2023-11-06 17:42:28 +01:00
Lennart Poettering
4685947138 update TODO 2023-11-06 17:42:28 +01:00
jjimbo137
b55ca26f5b
tcrypt: try all entered passphrases instead of just the first one (#29837)
Previously only the first entered passphrase would be used.  Add the ability to check all the passwords entered by the user.  The total number of passwords entered is still limited by passphrase entry limit.
2023-11-06 16:39:01 +00:00
Antonio Alvarez Feijoo
4697ee9f43 bootctl: fix -q option
Follow up to 14e6e444dd9eaa0db229548c31baecd75de4478e
2023-11-06 16:36:38 +00:00
Antonio Alvarez Feijoo
1bc116a14a man/bootctl: fix --dry-run entry
Fixes 8702496bfb0205764569782a9a2ebd11fd80e5e8
2023-11-06 16:35:31 +00:00
Antonio Alvarez Feijoo
4e72e15647 man/measure: document --uname
Follow up to b6f2e6860220aa89550f690b12246c4e8eb6e908
2023-11-06 16:35:18 +00:00
Yu Watanabe
3296b13b26
Merge pull request #29675 from DaanDeMeyer/kernel-install-json
kernel-install: Add --json option for inspect verb
2023-11-07 01:07:03 +09:00
Luca Boccassi
1e70a3c84f
Merge pull request #29872 from yuwata/udevadm-trigger-receive-buffer-size
udevadm-trigger: extend receive buffer size
2023-11-06 14:43:23 +00:00
Lennart Poettering
c5d77694eb pcrlock: show emojis for each PCR line
I am sorry, I totally forgot adding emojis reflecting the state of each
PCR. I hope I can do better in future, and hereby I'd like to rectify
the situation a bit.
2023-11-06 14:42:20 +00:00
Lennart Poettering
31a4796ee8 NEWS: drop left-over .md suffix 2023-11-06 15:18:40 +01:00
Daan De Meyer
bdd36c003d kernel-install: Add --json option for inspect verb
In mkosi, we can't use kernel-install directly but we do want to
mimick its behavior as much as possible. Let's make that easier by
making it easy to fetch data from kernel-install as JSON.

To get all the necessary data, we extend the inspect verb to also
allow passing in a kernel version and initrds, to mimick the "add"
verb. The kernel version is used to determine the "Entry Directory",
and in absence of auto-detection of kernel version in kernel-install
we have to allow users to pass it.

We also add --no-pager while we're at it.
2023-11-06 14:43:09 +01:00
Daan De Meyer
ad6216cbc7 boot-entry: Add boot_entry_token_type_to_string() 2023-11-06 14:39:01 +01:00
Daan De Meyer
30dd8e749b kernel-install: Fix doc whitespace 2023-11-06 14:39:01 +01:00
Luca Boccassi
a9d942aeb0 NEWS: fix typo 2023-11-06 12:25:58 +00:00
Sam Leonard
4291f4461e vmspawn: extend kernel cmdline with extra args
This changes how the "extra" command line arguments passed to vmspawn
are handled.

Previously they were appended to the QEMU command line directly.
Now they are appended to the kernel command line using SMBIOS instead.
v255-rc1
2023-11-06 11:46:38 +00:00
Luca Boccassi
12c8a7de12
Merge pull request #29875 from bluca/news
Update NEWS and hwdb
2023-11-06 11:43:21 +00:00
Yu Watanabe
eba449fa81 sd-device-monitor: unconditionally increase buffer size by sd_device_monitor_new()
As suggested at https://github.com/systemd/systemd/pull/29872#discussion_r1382932633:
> socket memory is these days accounted to the process that owns a socket,
> hence we shouldn't be too concerned that this might waste memory.
2023-11-06 20:39:51 +09:00
Frantisek Sumsal
7dafeb6d6b test: add test case for issue #29863 2023-11-06 20:26:53 +09:00
Luca Boccassi
0a917108d1 NEWS: finalize 2023-11-06 10:38:17 +00:00
Luca Boccassi
96ad99a90f Update hwdb 2023-11-06 10:37:29 +00:00
Luca Boccassi
7fea5ea09b NEWS: update contributors list 2023-11-06 10:35:45 +00:00
Luca Boccassi
69c37b26a4
Merge pull request #29873 from yuwata/network-revert-hop-limit
network: several follow-ups for IPv6 hop limit
2023-11-06 10:00:46 +00:00
Yu Watanabe
986e182352 network: do not try to set invalid value for IPv6 hop limit 2023-11-06 15:53:25 +09:00
Yu Watanabe
39713b075f network: fix indentation
Follow-up for f141b2c053527cdf2500dae5cd4f470ed964b436.
2023-11-06 15:53:01 +09:00
Yu Watanabe
93e583aaba Revert "ndisc: Also set link hoplimit"
This reverts commit 0ba8374bb8a7032ca13ba98d10e8d7c3378ca9c6.

- link->network->ipv6_hop_limit must not be updated, as it may be used
  by multiple interfaces,
- We may receive multiple RA from multiple routers with different hop
  limit, and we should not make the default hop limit flicking,
- First of all, there is no reason that we need to update the default hop
  limit,
- The original issue should be caused by the hash and compare functions
  for Route object.
2023-11-06 15:33:10 +09:00
Yu Watanabe
4e601b7072 udevadm-trigger: extend receive buffer size
We may trigger huge number of devices and will receive many events.
Let's extend the buffer size, otherwise the buffer may be filled.

Fixes #29863.
2023-11-06 14:50:50 +09:00
Zbigniew Jędrzejewski-Szmek
a4a047c316 NEWS: mention new rpm macros 2023-11-05 18:44:49 +01:00
Zbigniew Jędrzejewski-Szmek
427ddaf60c NEWS: reword things, change ordering, remove one duplicate 2023-11-05 18:40:38 +01:00
Daan De Meyer
4f5278eead kernel-install: Log location that uki is installed in
Let's log where we install a UKI when running in verbose mode.
2023-11-05 15:26:20 +00:00
Frantisek Sumsal
0ffb690111 test: make the test happy with coverage builds
Bump the LimitFSIZE=, since the process needs to write quite a lot of
.gcda files, and suppress coverage errors with DynamicUser=true.
2023-11-05 00:32:04 +00:00
Luca Boccassi
0e5f89b5ab Update NEWS
Note that vmspawn and pcrlock are new and the interface might change
2023-11-04 16:51:28 +00:00
Luca Boccassi
e5a2d6f7d6
Merge pull request #29862 from mrc0mmand/udevadm-followups
A couple of follow-ups for `udevadm control`
2023-11-04 16:48:48 +00:00
Frantisek Sumsal
30e8c19270 udevadm: actually set the log level
Follow-up to e4080a6d97.
2023-11-04 14:05:04 +01:00
Frantisek Sumsal
a833684d8e udevadm: make sure we don't reset max children on each invocation
Follow-up to e4080a6d97.
2023-11-04 13:58:18 +01:00
Luca Boccassi
53db2e057d
Merge pull request #29858 from bluca/news
man/NEWS update for sleep.conf
2023-11-04 10:43:35 +00:00
Luca Boccassi
2c9fa8d3f0 man: drop obsolete reference to SuspendMode=
Follow-up for 1f82c21dce
2023-11-04 10:43:08 +00:00
Luca Boccassi
ce3eccd85f NEWS: update for deprecated sleep configs 2023-11-04 10:43:08 +00:00
Luca Boccassi
00cf9b3b1d
Merge pull request #29402 from yuwata/sd-journal-cleanups-for-generic-array-bisect
sd-journal: cleanups for generic_array_bisect()
2023-11-04 10:38:03 +00:00
Luca Boccassi
c7cc6d5859
Merge pull request #29469 from yuwata/sd-journal-pin-object
sd-journal: add a way to 'pin' object to protect from reading another object with the same type
2023-11-04 10:37:43 +00:00
Yu Watanabe
e423b40d35 tree-wide: fix typo 2023-11-04 11:58:12 +09:00
Yu Watanabe
7682aedb4e sd-journal: make generic_array_bisect_plus_one() take data object
Then, rename it to generic_array_bisect_for_data().
No functional change, just refactoring.
2023-11-04 11:48:20 +09:00
Yu Watanabe
a1b8d21fab sd-journal: introduce journal_file_pin_object()
Previously, OBJECT_UNUSED was used for 'pinning' the mmap cache for an
object. But, OBJECT_UNUSED is also used for reading object when type
cannot be determined before read, e.g. when reading the tail object.

Let's introduce another category for pinning mmap cache, and use it when
we want to temporary pin an object.
2023-11-04 11:47:55 +09:00
Yu Watanabe
7a56f6b2b9 mmap-cache: introduce window_matches_by_addr()
It is similar to window_matches(), but checks the mapped address.
Mostly preparation for later commits.
2023-11-04 11:42:19 +09:00
Yu Watanabe
1a25ab663c mmap-cache: introduce enum MMapCacheCategory
Then rename context -> category.

No functional change, just refactoring and modernization.
2023-11-04 11:41:15 +09:00
Yu Watanabe
2ebc9cc867 mmap-cache: drop Context and boolean flags in Window
No functional change, just refactoring.
2023-11-04 11:12:12 +09:00
Yu Watanabe
ab8f553d1e sd-journal: rework generic_array_bisect()
- Rename generic_array_bisect_one() -> generic_array_bisect_step(), as there
  is also generic_array_bisect_plus_one(), so the original name is confusing.
- Make generic_array_bisect_step() return TEST_GOTO_NEXT or TEST_GOTO_PREVIOUS
  when the current array does not contain any matching entries.
- Make generic_array_bisect_step() symmetric with respect to the direction
  we are going to, except for the journal corruption handling.
- Make generic_array_bisect_step() gracefully handle journal corruptions,
  so the corruption handling in the caller side can be mostly dropped.
- Especially, when the last entry in an array is corrupted, previously
  we tried to find a valid entry sequentially from the end of the array,
  but now we anyway bisect the array. That should improve performance of
  reading corrupted journal files.
- Return earlier when no entry linked to the chained array (n == 0).
- Add many comments.

No behavior change unless journal is corrupted.
2023-11-04 11:01:30 +09:00
Yu Watanabe
f6548f053d sd-journal: drop redundant re-reading of entry array object
This effectively reverts e562f131585fe6ae32b1f035ba48c1548d695259.

In the loop of the generic_array_bisect(), the offset of the entry array
object is unchanged, the object is read at the beginning of the loop, and
we do not read any other entry array object. Hence, it is not necessary to
re-read the object every time we use the object.
2023-11-04 10:54:43 +09:00
Frantisek Sumsal
12c2560997 test: wait for the nvme device to appear
Also, use a /dev/disk/by-id/ symlink to the device, which should be
predictable, unlike the /dev/nvmeX stuff.
2023-11-03 23:26:57 +00:00
Luca Boccassi
775c005026
Merge pull request #29848 from poettering/base64url-too
hexdecoct: implicitly parse URL-safe base64 format, too
2023-11-03 23:26:33 +00:00