1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-25 01:34:28 +03:00
Commit Graph

72790 Commits

Author SHA1 Message Date
Yu Watanabe
6c15a28454 creds-util: move pick_up_credentials() from network-generator
The function is quite general, and can be used at other places.
Let's move to our shared library.
2024-04-16 09:42:20 +09:00
Yu Watanabe
a40e495847 network-generator: rename NETWORKD_UNIT_... -> NETWORK_UNIT_...
As .link files are used by systemd-udevd, rather than systemd-networkd.

Also, this makes it ends with '/', to follow our recent coding style.
2024-04-16 09:42:20 +09:00
Luca Boccassi
259046cfe8 analyze: show soft-reboot counter next to time deltas 2024-04-16 00:26:05 +01:00
Luca Boccassi
95a289bfe7 man: mention initial value of SoftRebootsCount
Follow-up for 66f35161f6
2024-04-16 00:26:04 +01:00
Luca Boccassi
05626b27a0 analyze: reset more timestamps when analyzing soft reboots
Follow-up for 7addfba9c4
2024-04-16 00:26:04 +01:00
Luca Boccassi
4a3ecada34 core: use usec_sub_unsigned() to subtract deltas
Follow-up for 54f86b86ba
2024-04-16 00:26:04 +01:00
Luca Boccassi
e5689f04dd test: initialize _cleanup_ variables
Otherwise static analysis will complain
2024-04-16 07:55:59 +09:00
Luca Boccassi
091c26ba9d
Merge pull request #32286 from YHNdnzj/vpick-null-result
shared/vpick: add missing condition on ret_result
2024-04-15 22:36:12 +02:00
Luca Boccassi
a4328b284e
Merge pull request #32258 from yuwata/network-tc-fix-stack-overflow
network/tc: fix stack overflow
2024-04-15 22:34:39 +02:00
Lennart Poettering
27dd678d2d units: order repart after systemd-tpm2-setup-early.service
This mimics what we do for systemd-cryptsetup@.service (see
src/shared/generator.c), and makes sense since repart might lock up the
root volume against a TPM, which ideally has its SRK already set up by
then.

More importantly though, this ensures that we ordered correctly after
tpm2.target (which systemd-tpm2-setup-early.service has a dependency
on), for systems where the TPM drivers are not compiled into the kernel.

See: https://lists.freedesktop.org/archives/systemd-devel/2024-April/050201.html
2024-04-15 22:33:45 +02:00
Mike Yuan
c694419a51
shared/vpick: add missing condition on ret_result
Fixes #32285
2024-04-16 01:38:08 +08:00
Mike Yuan
ac68e6d691
shared/vpick: drop unneeded strempty()
prefix_roota() handles NULL root param gracefully.
2024-04-16 01:38:08 +08:00
Mike Yuan
6d8690ecd3
shared/vpick: align function args correctly, add missing assertion 2024-04-16 01:38:08 +08:00
Frantisek Sumsal
ad444dd8e8 man: slightly reword LogFilterPatterns= description
As there was something missing in the existing sentence.
2024-04-15 17:16:18 +02:00
Yu Watanabe
e2f0876ecd dissect: refuse to use diskseq if ID_IGNORE_DISKSEQ=1 is specified
Follow-up for 1a81ddef00.
2024-04-15 16:50:45 +02:00
Lennart Poettering
bfbd7ac96a creds: update --help text regarding tpm2-absent → null rename
This was forgotten when "tpm2-absent" was renamed to "null".

Follow-up-for: 6d78dc2827
2024-04-15 15:53:12 +02:00
Jörg Behrmann
f95f39a4dc NEWS: typo fixes 2024-04-15 21:30:42 +09:00
Mike Yuan
f4d0061c24
NEWS: fix typo, rephrase para for systemd-hibernate-clear.service a bit 2024-04-15 19:37:50 +08:00
dependabot[bot]
99e33e7b31 build(deps): bump pkg/fedora from 3f8c38e to a379236
Bumps pkg/fedora from `3f8c38e` to `a379236`.

---
updated-dependencies:
- dependency-name: pkg/fedora
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-15 12:43:29 +02:00
Sam Leonard
c3dd4e20fe
vmspawn: generate predicatable TAP device names and MAC addresses 2024-04-15 11:42:06 +01:00
Sam Leonard
c50e7dcaf6
nspawn,shared/netif-util: move generate_mac and shorten_ifname to shared/netif-util 2024-04-15 11:42:05 +01:00
Lennart Poettering
cb6e59bfb2 update NEWS 2024-04-15 12:40:13 +02:00
Sam Leonard
bf3274e880
vmspawn: insert missing empty line 2024-04-15 11:24:27 +01:00
Sam Leonard
7c64382638
vmspawn: sort headers 2024-04-15 11:24:27 +01:00
Lennart Poettering
d2420ea6cd update TODO 2024-04-15 12:10:46 +02:00
Eisuke Kawashima
20927c0eec
improve zsh completion (#32098)
* fix error
* remove options that are no longer supported
* add missing options
* stop completion if an option `--help` or `--version` is supplied

[[[
zjs: a note for the reader:

zshcompsys(1) in the section about optspecs in _arguments says:

> Each of the forms above may be preceded by a list in parentheses of option names  and  argument  num‐
> bers.  If the given option is on the command line, the options and arguments indicated in parentheses
> will not be offered.  For example, ‘(-two -three 1)-one:...' completes the option ‘-one'; if this ap‐
> pears  on  the  command line, the options -two and -three and the first ordinary argument will not be
> completed after it.  ‘(-foo):...' specifies an ordinary argument completion; -foo will  not  be  com‐
> pleted if that argument is already present.
> 
> Other  items  may  appear in the list of excluded options to indicate various other items that should
> not be applied when the current specification is matched: a single star (\*) for  the  rest  arguments
> (i.e. a specification of the form ‘\*:...'); a colon (:) for all normal (non-option-) arguments; and a
> hyphen (-) for all options.  For example, if ‘(\*)' appears before an option and the option appears on
> the  command  line,  the  list  of remaining arguments (those shown in the above table beginning with
> ‘\*:') will not be completed.

The intended effect of the change is to remove irrelevant completion matches from the completion.

tl;dr: (- : ) prevents further completion
]]]
2024-04-15 10:58:48 +02:00
Frantisek Sumsal
d1a7e030c5 docs: don't suffix page permalink with a slash
As it breaks relative links to other pages. For example, the
BOOT_LOADER_INTERFACE page has a relative link to
AUTOMATIC_BOOT_ASSESSMENT. With a slash in the page's permalink, that
link leads to:

http://127.0.0.1:4000/BOOT_LOADER_INTERFACE/AUTOMATIC_BOOT_ASSESSMENT

which is incorrect. Dropping the trailing slash makes the link link to
the correct place:

http://127.0.0.1:4000/AUTOMATIC_BOOT_ASSESSMENT

Resolves: #32088
2024-04-15 10:54:33 +02:00
Sam Leonard
9bfabe14e5 man: fix incorrect XML in man page 2024-04-15 10:40:11 +02:00
Daan De Meyer
1976b1d86d mkosi: Update to latest 2024-04-15 08:53:25 +02:00
Ivan Kruglov
c79e88b37d ASSERT_STREQ for simple cases 2024-04-15 08:13:50 +02:00
Yu Watanabe
9506269d12
Merge pull request #32266 from yuwata/libsystemd-network-trivial-cleanups
libsystemd-network: trivial cleanups
2024-04-15 14:43:12 +09:00
Yu Watanabe
049bdac7b6 ndisc-option: add missing case
Follow-up for 9f3587ae44.
2024-04-15 14:41:45 +09:00
Yu Watanabe
6b628fa1d0
Merge pull request #32263 from YHNdnzj/cg-read-pid
core/execute: also check cg_is_threaded for clone3()
2024-04-15 14:39:28 +09:00
Kristian Klausen
4d95bfcab0 github: add systemd-vmspawn to the issue templates 2024-04-15 14:38:25 +09:00
Yu Watanabe
14f3bdaa73
Merge pull request #32271 from YHNdnzj/arch-man
Fixes for links to man projects
2024-04-15 14:35:04 +09:00
Kristian Klausen
254e1aa707 vmspawn: Fix incorrect/broken links in the man page 2024-04-15 14:33:33 +09:00
Yu Watanabe
ac336e754e sd-ndisc: make ndisc_send() and icmp6_send() take struct in6_addr
No functional change, just refactoring.
2024-04-15 06:23:11 +09:00
Yu Watanabe
2c28eb0266 libsystemd-network: make constant addresses type-safe
No functional change, just refactoring.
2024-04-15 06:23:11 +09:00
Yu Watanabe
dea17a0864 dhcp6-network: constify arguments
No functional change, just refactoring.
2024-04-15 06:23:11 +09:00
Yu Watanabe
d05487ef95
Merge pull request #32272 from DaanDeMeyer/volatile
mkosi: various improvements
2024-04-15 04:34:56 +09:00
Daan De Meyer
659cf9191c mkosi: Remove outdated comment 2024-04-14 19:59:21 +02:00
Daan De Meyer
8630fb6041 mkosi: Don't log debug logs to console
We have various tools that log directly to the console, as well as
pid1 which logs directly to the console when running in a container.
Let's make sure that we don't log debug messages to the console by
default, but keep the behavior when running in CI.
2024-04-14 19:59:10 +02:00
Daan De Meyer
9c5216bb9d mkosi: Use new volatile package settings
mkosi just learned to do natively what we currently do with environment
variables and a postinst script, so let's update to the latest version
and start using the new settings instead.
2024-04-14 19:53:43 +02:00
Daan De Meyer
962f9d6fb4 mkosi: Update to latest 2024-04-14 19:53:09 +02:00
Mike Yuan
e561037517
man/sd-journal: correct project name for man7
Follow-up for 5aa8180392
2024-04-14 23:46:54 +08:00
Mike Yuan
311f4b8f6a
man: switch wireguard man project to man7 2024-04-14 23:41:34 +08:00
Mike Yuan
41fead40e6
man/custom-html: update link to Arch manual 2024-04-14 23:38:38 +08:00
Mike Yuan
58ff2f1e38
core/execute: also check cg_is_threaded for clone3()
Prompted by #32259

We already have this check in exec_invoke(), i.e. child.
But if CLONE_INTO_CGROUP is used, the failure would
occur on parent's side, so do the check there too.
2024-04-14 23:22:13 +08:00
Mike Yuan
ad68a4e58a
core/dbus-manager: rephrase the comment for method_get_unit_processes a bit 2024-04-14 23:22:13 +08:00
Mike Yuan
8a70edc1f7
core/dbus-manager: add missing assertion 2024-04-14 23:22:13 +08:00