Commit Graph
65905 Commits
Author SHA1 Message Date
Zbigniew Jędrzejewski-Szmek 6cfb3ebc60 units/systemd-firstboot: start the service after systemd-vconsole-setup.service
This way, we don't start user interaction before (or while) the configured
fonts are loading.

Tweak the comments a bit while at it.
2023-07-12 15:54:33 +02:00
Zbigniew Jędrzejewski-Szmek 3b2321f6ea units/systemd-vconsole-setup.service: improve title
"Setup" is a noun, and the expected order is "<adjective> <noun>".
("Set up" is the verb. But we want a noun here, so that we can say
e.g. "Starting Virtual Console Setup".)
2023-07-12 15:54:33 +02:00
Lennart Poettering d8def0f312 dissect: add new verbs to brief version of cmline in --help 2023-07-07 17:13:32 +01:00
Yu Watanabe 9bf0fe3633 Merge pull request #28287 from yuwata/network-null-address
network: fix null address handling
2023-07-08 01:13:17 +09:00
Yu Watanabe 2b6916c7c0 Merge pull request #28296 from bluca/shell_compl
Add new verbs to bash shell completions
2023-07-08 01:11:41 +09:00
Luca Boccassi 09c857a02a shell-completion: add show-cache to bash 2023-07-07 13:41:15 +01:00
Luca Boccassi 7df82b8d64 shell-completion: add whoami to bash 2023-07-07 13:40:12 +01:00
Luca Boccassi 1386e34bae shell-completion: add soft-reboot to bash 2023-07-07 13:39:21 +01:00
Luca Boccassi 865dcdf850 Merge pull request #28295 from eworm-de/zsh-soft-reboot
shell-completion/zsh: misc verbs
2023-07-07 13:37:35 +01:00
Christian Hesse 77d4986415 shell-completion/zsh/resolvectl: add show-cache
Make zsh shell-completion aware of show-cache.
2023-07-07 14:05:11 +02:00
Christian Hesse 6864f9b9e9 shell-completion/zsh/systemctl: add whoami
Make zsh shell-completion aware of whoami.
2023-07-07 14:02:41 +02:00
Christian Hesse 050d6d711a shell-completion/zsh/systemctl: add soft-reboot
Make zsh shell-completion aware of soft-reboot.
2023-07-07 13:57:03 +02:00
Yu Watanabe 555737878f meson: allow to fallback to use libxcrypt.pc or glibc's libcrypt
Some distributions still use glibc's libcrypt. In that case, libcrypt.pc
does not exist and dependency() will fail.
Also, even if libxcrypt is used, there may not be a symlink
from libcrypt.pc to libxcrypt.pc. So, let's add a secondary name.

Follow-up for d625f717db.

Fixes #28289.
2023-07-07 12:32:12 +01:00
Luca Boccassi 91c96f9b32 test: remove +x from some units 2023-07-07 12:31:28 +01:00
Luca Boccassi caf8495e90 typo: dont -> don't 2023-07-07 11:51:33 +01:00
Luca Boccassi 544fc54d72 test: add +x to generator-utils.sh
It is marked and named as a script, so add +x otherwise Lintian complains:

 W: systemd-tests: script-not-executable [usr/lib/systemd/tests/testdata/units/generator-utils.sh]
2023-07-07 11:51:11 +01:00
Luca Boccassi 9ce707d64e README: mention that meson 0.60 is now required 2023-07-07 11:44:54 +01:00
Luca Boccassi 6e522aa32f NEWS: mention that meson 0.60 is now required 2023-07-07 11:44:31 +01:00
Luca Boccassi 51bb422198 NEWS: mention that gnu-efi is no longer required 2023-07-07 11:42:46 +01:00
Yu Watanabe fc25920c94 test-network: add tests for null addresses
For issue #26113.
2023-07-07 19:11:37 +09:00
Yu Watanabe d0009d9290 network: make address_get() work for null address
When a static null address is requested, e.g. Address=0.0.0.0/24,
then the corresponding Address object owned by Network object has
null address, and previously it did not match any addresses already
assigne to the interface.

Let's search matching Address object when originally it is requested as
the null address.

Then, the address configured with requested as a null address will be
kept on reconfigure.

Fixes #26113.
2023-07-07 19:11:37 +09:00
Yu Watanabe 9684a8ded0 network: always copy input address for link_request_address()
Then, the code becomes much simpler.
This also adds several missing log messages.

No functional change, just refactoring.
2023-07-07 19:11:37 +09:00
Yu Watanabe 0b8b30f6bb network: also use address_kernel_{hash,compare}_func() for managing address requests
Request may refer Address object owned by Link, but its broadcast
address or label may be updated by address_equalify(), hence these
fields cannot be used in the hash and compare functions.
2023-07-07 19:11:37 +09:00
Yu Watanabe 14044a4114 network: log broadcast address and address label 2023-07-07 19:11:37 +09:00
Yu Watanabe 0acc647010 network: ignore Broadcast= setting when the address is null
When an address is requested with null address, then broadcast should be
determined after an address aquired that will be assigned to the
interface.
2023-07-07 19:11:37 +09:00
Yu Watanabe 9a45125ae7 network: split-out address_section_adjust_broadcast()
No functional change, just refactoring.
2023-07-07 19:11:33 +09:00
Christian Hesse 24752c41a4 man/systemd.unit: document restart behavior on Upholds=
Behavior on constantly failing (or oneshot) unit was unclear. Let's
document it here.
2023-07-07 10:10:56 +01:00
Lily Foster 9cf2203524 fstab-generator: unify initrd-root-device.target dependency handling code
This fixes a bug from #26038 where it would actually write generator
stuff during sysroot check when it was only supposed to check for daemon
reload.
2023-07-07 11:58:43 +09:00
Yu Watanabe 14be337d04 Merge pull request #28233 from mrc0mmand/append-to-corrupted-journals
test: append to corrupted journals
2023-07-07 11:51:02 +09:00
Yu Watanabe d859cf15eb Merge pull request #28286 from yuwata/network-dhcp4-classless-static-routes
network,dhcp4: do not ignore gateway in classless static routes option
2023-07-07 10:12:06 +09:00
Yu Watanabe 75a9122678 network,ndisc: use ndisc_captive_portal_free() at one more place
Fixes another memleak introduced by 64de00c49f.
Fixes #28283.
2023-07-07 09:18:25 +09:00
Yu Watanabe 86f6760038 test-network: add one more testcase for DHCPv4 classless route
For issue #28280.
2023-07-07 06:57:08 +09:00
Yu Watanabe 77451f654a network/dhcp4: do not ignore the gateway even if the destination is in the same network
Fixes #28280.
2023-07-07 06:56:30 +09:00
Frantisek Sumsal 29bdeb5cb3 test: append to corrupted journals
Introduce a manual test tool that creates a journal, corrupts it by
flipping bits at given offsets, and then attempts to write to the journal.
In ideal case we should handle this gracefully without any crash or
memory corruption.
2023-07-06 22:41:27 +02:00
Weblate 19731f4a7b po: Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Co-authored-by: Weblate <noreply@weblate.org>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/master/
Translation: systemd/main
2023-07-07 05:24:53 +09:00
Luca Boccassi 115a2efbf0 NEWS: finalize for 254-rc1 2023-07-06 20:57:13 +01:00
Luca Boccassi eed3d044cd meson: bump versions for v254-rc1 2023-07-06 20:57:13 +01:00
Luca Boccassi 8392979e49 Update translation files 2023-07-06 20:57:13 +01:00
Luca Boccassi 6f19cce983 NEWS: update contributors list 2023-07-06 20:38:52 +01:00
Luca Boccassi 305bea82c1 Update NEWS for latest changes 2023-07-06 20:37:56 +01:00
Luca Boccassi 3e938f1df1 NEWS: rearrange deprecation notices from more imminent to less imminent 2023-07-06 20:37:56 +01:00
Luca Boccassi b2deaaf01b Merge pull request #27584 from rphibel/add-restartquick-option
service: add new RestartMode option
2023-07-06 20:37:31 +01:00
Luca Boccassi 25cae3e7bb Merge pull request #20425 from Blarse/passwdqc-pr
Add passwdqc support
2023-07-06 20:36:04 +01:00
Yu Watanabe 535134bc51 network,ndisc: use correct free function for captive portal
Fixes memleak introduced by 64de00c49f.
Fixes #28277.
2023-07-06 20:30:22 +01:00
Luca Boccassi f00022eb86 Merge pull request #28242 from berrange/cond-sec-cvm
Detect and expose the confidential virtualization technology in various places
2023-07-06 19:14:26 +01:00
Luca Boccassi b9b0f338be Merge pull request #28274 from DaanDeMeyer/dissect-root
dissect: Allow a few verbs to operate on directories as well as image files
2023-07-06 14:41:48 +01:00
Richard Phibel 2a39b91459 service: fix for RestartMode=direct option
With the fix done in PR28215, the unit restart job is created with type JOB_START.
Because of that, it is not properly merged anymore with the old one: the
merged job has state JOB_RUNNING. It should have state JOB_WAITING.

I think that the old job is not cleaned up because we don't go through the failed state.

With this fix, the merged job is properly created with state JOB_WAITING.
2023-07-06 14:35:33 +02:00
Richard Phibel e568fea9fc service: add new RestartMode option
When this option is set to direct, the service restarts without entering a failed
state. Dependent units are not notified of transitory failure.

This is useful for the following use case:

We have a target with Requires=my-service, After=my-service.
my-service.service is a oneshot service and has Restart=on-failure in
its definition.

my-service.service can get stuck for various reasons and time out, in
which case it is restarted. Currently, when it fails the first time, the
target fails, even though my-service is restarted.

The behavior we're looking for is that until my-service is not restarted
anymore, the target stays pending waiting for my-service.service to
start successfully or fail without being restarted anymore.
2023-07-06 14:33:52 +02:00
Daniel P. Berrangé 6e2e83b487 udev: add 'conf-virt' constant for confidential virtualization tech
Related: https://github.com/systemd/systemd/issues/27604
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2023-07-06 12:20:04 +01:00
Daniel P. Berrangé 0895124572 core: set SYSTEMD_CONFIDENTIAL_VIRTUALIZATION env for generators
This reports the confidential virtualization type that was detected

Related: https://github.com/systemd/systemd/issues/27604
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2023-07-06 12:20:04 +01:00