1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-05 13:18:06 +03:00
Commit Graph

1160 Commits

Author SHA1 Message Date
Frantisek Sumsal
87c22d4377 Revert "docs: don't suffix page permalink with a slash"
This breaks existing links with a trailing slash, so it's a no-go.

This reverts commit d1a7e030c5.
2024-04-17 20:53:49 +02:00
Zbigniew Jędrzejewski-Szmek
9f74901a1e Merge pull request #31648 from neighbourhoodie/review-content
I did the merge manually to resolve a trivial conflict.
2024-04-17 17:41:07 +02:00
Daan De Meyer
9d98617c1a Update debugging with vscode section
- We have ssh-generator now, so need for mkosi's Ssh= option anymore.
- By enabling RuntimeBuildSources= by default, we don't need the gdb
  config file in the image anymore, since the build and source
  directories will be mounted at the expected locations.
2024-04-16 15:25:34 +02:00
Sam Leonard
c3dd4e20fe
vmspawn: generate predicatable TAP device names and MAC addresses 2024-04-15 11:42:06 +01: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
Yu Watanabe
1ae891037e
Merge pull request #32202 from DaanDeMeyer/assert
tests: Improve assertion error messages
2024-04-11 09:51:49 +09:00
Daan De Meyer
5c041971eb docs: Add Tests section to coding style doc 2024-04-10 18:24:29 +02:00
Daan De Meyer
f1e9e8041c git: Add post-rewrite hook that invokes git submodule update
git rebase does not support a --recurse-submodules switch to automatically
check out the submodules at their registered commits during or after a rebase.

Instead, let's use the post-rewrite git hook to do this ourselves.
2024-04-10 14:39:49 +02:00
Daan De Meyer
957dc5f190 docs: Suggest soft-reboot to restart pid1 and all daemons in mkosi VM 2024-04-08 22:21:51 +01:00
Daan De Meyer
e71b40fd00 docs: Add note on RuntimeBuildSources= to hacking guide 2024-04-08 11:37:34 +01:00
Lennart Poettering
702a52f4b5 mountfsd: add new systemd-mountfsd component 2024-04-06 16:08:24 +02:00
Luca Boccassi
485bb19d55 docs: notify example was moved to sd_notify manpage
Reference in the portability doc was forgot

Follow-up for 383917ac67
2024-04-02 22:24:38 +01:00
Luca Boccassi
383917ac67 man: add self-contained example of notify protocol
We are saying in public that the protocl is stable and can be easily
reimplemented, so provide an example doing so in the documentation,
license as MIT-0 so that it can be copied and pasted at will.
2024-04-02 14:53:31 +01:00
hulkoba
6d0612f6e6
docs/RANDOM_SEEDS: update NetBSD link 2024-03-27 07:31:56 +01:00
hulkoba
997a84b2e1
chore(docs): change permalink at the Jekyll config
Some of the internal links didn't work.
To make them work we had two options:

1. Keep the trailing slash at the jecyll config:
The built structure of the html files is one directory for each file, including a html file.
This is why a relative link including the `../` is required to get out of the built folder and make it work.
e.g.
config: permalink: /:title/
HACKING.md: [Coding Style](../CODING_STYLE)

2. Remove the trailing slash, the built structure is like the structure in dev: one html file for each markdown file.
In this case, the links as they are implemented just work.
e.g.
config: permalink: /:title
HACKING.md: [Coding Style](CODING_STYLE)

We use option 2 :)
2024-03-27 07:31:55 +01:00
hulkoba
a738c6d9b8
docs/JOURNAL_FILE_FORMAT: format text 2024-03-27 07:31:55 +01:00
hulkoba
e73a7d03a9
docs/COREDUMP: use internal link
for ELF_PACKAGE_METADATA
2024-03-27 07:31:55 +01:00
hulkoba
e217e1eda4
docs/WRITING_DESKTOP_ENVIRONMENTS: format text 2024-03-27 07:31:54 +01:00
hulkoba
d571416acc
docs/WRITING_NETWORK_CONFIG_MANAGERS: format text 2024-03-27 07:31:54 +01:00
hulkoba
90e48c8b98
docs/WRITING_VM_AND_CONTAINER_MANAGERS: format text 2024-03-27 07:31:35 +01:00
hulkoba
68b4b4cf27
docs/RANDOM_SEEDS: format text 2024-03-27 07:26:58 +01:00
hulkoba
d85c8335ea
docs/USERDB_AND_DESKTOPS: format text 2024-03-27 07:26:57 +01:00
hulkoba
a4fd4d9cd5
docs/WRITING_DISPLAY_MANAGER: format text 2024-03-27 07:26:57 +01:00
hulkoba
8af6cde31d
docs/USER_GROUP_API: format text 2024-03-27 07:26:57 +01:00
hulkoba
9ed6cf02b2
docs/PREDICTABLE_INTERACES: format text 2024-03-27 07:26:56 +01:00
hulkoba
b0b8830fa6
docs/MY_SERVICE_CANT_GET_REALTIME: format text 2024-03-27 07:26:56 +01:00
hulkoba
0dd403d187
docs/VIRTUALIZED_TESTING: format text 2024-03-27 07:26:55 +01:00
hulkoba
d6f9d00723
docs/SEPARATE_USR_IS_BROKEN: format text 2024-03-27 07:26:47 +01:00
hulkoba
5a431a1618
docs/SYSTEMD_FILE_HIERARCHY: format text 2024-03-27 07:17:08 +01:00
hulkoba
ca219b008e
docs/PORTABLE_SERVICES: format text 2024-03-27 07:12:06 +01:00
hulkoba
6c46f0e23c
docs/USER_RECORD: format text 2024-03-27 07:12:05 +01:00
hulkoba
d7d0eb49a8
docs/PORTABILITY_AND_STABILITY: format text 2024-03-27 07:12:05 +01:00
hulkoba
345115d603
docs/DISTRO_PORTING: format text 2024-03-27 07:12:04 +01:00
hulkoba
cd851d6270
docs/INHIBITOR_LOCKS: format text 2024-03-27 07:12:04 +01:00
hulkoba
07cf50ec02
docs/USER_NAMES: format text 2024-03-27 07:12:04 +01:00
hulkoba
56a0f583f7
docs/TIPS_AND_TRICKS: format text 2024-03-27 07:12:03 +01:00
hulkoba
4601153cbe
docs/INCOMPABILITIES: format text 2024-03-27 07:12:03 +01:00
hulkoba
abbfc39aaa
docs/HOME_DIRECTORY: format text 2024-03-27 07:12:02 +01:00
hulkoba
59390b1926
docs/JOURNAL_EXPORT_FORMATS: format text 2024-03-27 07:12:02 +01:00
hulkoba
b52820773b
docs/ELF_PKG_METADATA: format text 2024-03-27 07:12:02 +01:00
hulkoba
5cc4d7fabd
docs/UIDS-GIDS: format text 2024-03-27 07:12:01 +01:00
hulkoba
48470a7336
docs/SYSLOG: format text 2024-03-27 07:12:01 +01:00
hulkoba
5ef90dfa5b
docs/SECURITY: format text 2024-03-27 07:12:01 +01:00
hulkoba
a7ffc3325b
docs/PRESET: format text 2024-03-27 07:12:00 +01:00
hulkoba
34fe58352e
docs/PASSWORD_AGENTS: format text 2024-03-27 07:12:00 +01:00
hulkoba
9af906964c
docs/GROUP_RECORD: format text 2024-03-27 07:11:59 +01:00
hulkoba
af26a0b3b9
docs/OPTIMIZATIONS: format text 2024-03-27 07:11:59 +01:00
hulkoba
3038994792
docs/HACKING: format text 2024-03-27 07:11:59 +01:00
hulkoba
399305ccfc
docs/MINIMAL_BUILDS: format text 2024-03-27 07:11:58 +01:00
hulkoba
2a2d0f01c9
docs/DESKTOP_ENVIRONMENTS: format text 2024-03-27 07:11:58 +01:00
hulkoba
837cc38a44
docs/DEBUGGING: format text 2024-03-27 07:11:57 +01:00
hulkoba
3966f134cd
docs/DAEMON_SOCKET_ACTIVATION: format text 2024-03-27 07:11:57 +01:00
hulkoba
f00b3a995f
docs/CREDENTIALS: format text 2024-03-27 07:11:57 +01:00
hulkoba
77d47e6db4
docs/COREDUMP: format text 2024-03-27 07:11:56 +01:00
hulkoba
26dcc13c2c
docs/CONVERTING_TO_HOMED: format text 2024-03-27 07:11:56 +01:00
hulkoba
0d8926b1c3
docs/CONTRIBUTING: format text 2024-03-27 07:11:56 +01:00
hulkoba
426d487900
docs/CODE_OF_CONDUCT: format text 2024-03-27 07:11:55 +01:00
hulkoba
af31cd6e62
docs/CATALOG: format text 2024-03-27 07:11:55 +01:00
hulkoba
59652fff30
docs/BUILDING_IMAGES: format text 2024-03-27 07:11:55 +01:00
hulkoba
e9a55babcd
docs/BOOT: format text 2024-03-27 07:11:54 +01:00
hulkoba
b7d1e251a2
docs/BACKPORTS: format text 2024-03-27 07:11:54 +01:00
hulkoba
3bfe71098d
docs/AUTOPKGTEST: format text 2024-03-27 07:11:53 +01:00
hulkoba
51d8900677
docs/ARCHITECTURE: format text 2024-03-27 07:11:53 +01:00
hulkoba
e7f7da45e7
docs/API_FILE_SYSTEM: format text 2024-03-27 07:11:53 +01:00
hulkoba
565e2396fd
docs/FAQ: update logind man page link and fix relative link 2024-03-27 07:11:52 +01:00
hulkoba
b058563a54
docs/PORTABILITY_AND_STABILITY: update internal links 2024-03-27 07:11:52 +01:00
hulkoba
a90c3a9eb2
docs/JOURNAL_FILE_FORMAT: update journal links 2024-03-27 07:11:52 +01:00
hulkoba
2cc483482e
docs/INITRD_INTERFACE: update link
separate usr is broken
2024-03-27 07:11:51 +01:00
hulkoba
67ae7f6e73
docs/CONTAINER_INTERACE: update vm-or-container-manager link 2024-03-27 07:11:51 +01:00
hulkoba
9adb7cd99d
docs/GROUP_DELEGATION: update links
to The New Control Group Interfaces and Writing VM and Container Managers
2024-03-27 07:11:50 +01:00
hulkoba
fd50b326a4
docs/WRITING_RESOLVER_CLIENTS: update manpage link 2024-03-27 07:11:50 +01:00
hulkoba
9f985a6cfc
docs/WRITING_RESOLVER_CLIENTS: format text 2024-03-27 07:11:39 +01:00
Mariano Giménez
d3421bd4e4
docs: add pax control groups
and adapt links
2024-03-27 06:53:47 +01:00
Mariano Giménez
151c22e873
docs/TIPS_AND_TRICKS: update faq link 2024-03-27 06:53:46 +01:00
Mariano Giménez
ed8998d372
docs/DEBUGGING: add screenshot and fix path to it 2024-03-27 06:53:46 +01:00
Mariano Giménez
cc7ec2cab4
docs/WRITING VM_AND_CONTAINER_MANAGERS: update manpage link
and container interface link
2024-03-27 06:53:46 +01:00
Mariano Giménez
288816c503
docs/WRITING_NETWORK_CONFIGURATION_MANAGERS: update manpage links 2024-03-27 06:53:45 +01:00
Mariano Giménez
b479ff876f
docs/WRITING_DISPLAY_MANAGERS: update links
to desktop environments and logind manpage
2024-03-27 06:53:45 +01:00
Mariano Giménez
48c43dbe1c
docs/WRITING_DESKTOP_ENV: update links
to 'bus api of logind' and 'inhitor locks'
2024-03-27 06:53:45 +01:00
Mariano Giménez
14ca3f421e
docs/THE_CASE_FOR_THE_USR_MERGE): update link to 'seprate usr is broken' 2024-03-27 06:53:44 +01:00
Mariano Giménez
cc9977da03
docs/MINIMAL_BUILDS: remove last sentence due to missing link
http://kdzbn.homelinux.net/libcap-add-pkg-config.patch
This link is a 404, so we removed the whole sentence.
2024-03-27 06:53:44 +01:00
Mariano Giménez
adf0eb641a
docs/INHIBITOR_LOCKS: update logind d-bus api link
and fix freedesktop wiki link
2024-03-27 06:53:44 +01:00
Mariano Giménez
f9be794ace
docs/CONTROL_GROUP_INTERFACE: update links 2024-03-27 06:53:43 +01:00
Mariano Giménez
5f1b83d240
docs/BOOT: update bootloader specification link 2024-03-27 06:53:43 +01:00
Mariano Giménez
101c4ff939
docs/BACKPORTS: close parenthesis 2024-03-27 06:53:42 +01:00
hulkoba
257889efb3
docs/HACKING: fix jinja link 2024-03-27 06:53:42 +01:00
hulkoba
517fd35f94
docs/HACKING: link mkosi webpage
and remove one of two mkosi github links
2024-03-27 06:53:29 +01:00
hulkoba
f757c5a4bf
docs/CODING_STYLE: remove whitespace 2024-03-27 06:49:16 +01:00
hulkoba
4ba04a050a
docs/ARCHITECTURE: link test/readme.testsuite 2024-03-27 06:49:16 +01:00
Krzesimir Nowak
33cb10f68d docs: Document SYSTEMD_SYSEXT_MUTABLE_MODE env var 2024-03-25 08:14:36 +01:00
Daan De Meyer
e33d43b059 docs: Add one more git submodule setting to configure 2024-03-21 23:02:52 +00:00
Matthias Lisin
8c2440dd42 docs: fix keys in wrong section 2024-03-21 02:32:26 +01:00
Daan De Meyer
db7374e156 Document new vsock literals
Fixes #31849
2024-03-19 12:31:36 +00:00
Luca Boccassi
15d4bedf3d
Merge pull request #31778 from yuwata/kbd-util
kbd-util: allow to override the default keymap directories
2024-03-18 12:20:36 +00:00
Luca Boccassi
48570c9273
Merge pull request #31811 from yuwata/network-pin-persistent-storage
network: pin file descriptor of persistent storage
2024-03-18 11:08:21 +00:00
Tycho Andersen
af668ab10a docs: update footer to 2024 2024-03-16 03:14:23 +09:00
Daan De Meyer
6233a76932 meson: Rename add-git-hook.sh to git-setup.sh and configure git in it
Let's automatically apply the recommended git config with meson.
2024-03-15 17:27:49 +01:00
Daan De Meyer
c735424908 docs: Update HACKING guide with recommended git config 2024-03-15 17:27:49 +01:00
Yu Watanabe
013359ac65 network: pin file descriptor of persistent storage
This also drop the support of /run/systemd/netif/persistent-storage-ready,
as the file is anyway removed when networkd is stopped.
Let's use $SYSTEMD_NETWORK_PERSISTENT_STORAGE_READY=1 instead on testing.
2024-03-16 01:12:05 +09:00
Yu Watanabe
6e0abf5fb3 docs: fix typo
Follow-up for 34c6b7d9de.
2024-03-15 04:04:01 +09:00
Yu Watanabe
e852f10cb4 kbd-util: allow to override the default keymap directories
This introduces $SYSTEMD_KEYMAP_DIRECTORIES environment variable to
override the hardcoded keymap directories.

I think it is not necessary to provide the first class configuration
option for controlling the keymap directories, but it is not good to
hardcode the paths. So, let's introduce an environment variable to
override that.

Prompted by #31759.

Closes #31759.
2024-03-15 03:19:45 +09:00
Lennart Poettering
34c6b7d9de docs: add a new document describing the VM interface of systemd
This mirrors the existing CONTAINER_INTERFACE.md document, but describes
extension points of systemd running in a VM with a machine manager
supervising it.
2024-03-14 17:25:04 +01:00
Lennart Poettering
83797ece91 docs: update various links 2024-03-14 17:25:00 +01:00
Lennart Poettering
b6a24b87c1 docs: properly line break WRITING_VM_AND_CONTAINER_MANAGERS.md 2024-03-14 17:24:57 +01:00
Lennart Poettering
1e785c50c9 docs: document new sd_notify() extensions 2024-03-14 17:24:24 +01:00
Daan De Meyer
61fbdd441f
Merge pull request #31345 from DaanDeMeyer/mkosi-packages
Build distribution packages in mkosi
2024-03-07 11:12:14 +01:00
Daan De Meyer
4d0f1451b5 Build distribution packages in mkosi
Instead of running meson install and hoping for the best, let's build
distribution packages from the downstream packaging specs. This gets
us the following:

- Vastly simplified mkosi scripts since we don't need a separate initrd
  image anymore but can just reuse the default mkosi initrd.
- Almost everything can move to the base image as its not the basis
  anymore for the initrd and as such we don't need to care about the
  size anymore.
- The systemd packages that get pulled in as dependencies of other
  packages get properly uninstalled and replaced with our packages that
  we built instead of just installing on top of an existing systemd
  installation with no guarantee that everything from that previous
  installation was removed.
- Much better testing coverage as what we're testing is much closer
  to what will actually be deployed in distributions.
- Immediate feedback if something we change breaks distribution packaging
- We get integration with the distribution for free as we'll automatically
  use the proper directories and such instead of having to hack this
  into a mkosi build script.
- ...
2024-03-07 10:47:19 +01:00
Lennart Poettering
74d142ff3a
Merge pull request #30612 from AdrianVovk/sleep-freeze-user-seesions
Freeze user sessions for all types of sleep
2024-03-06 18:52:57 +01:00
Luca Boccassi
ba6ec879bb
Merge pull request #31621 from poettering/resolved-proxy-do
resolved: proxy upstream local requests to our stub with DO bit set
2024-03-06 13:55:14 +00:00
Christian Wesselhoeft
da95494ca3 PORTABLE_SERVICES.md: Improve grammar 2024-03-06 10:02:38 +00:00
Adrian Vovk
a5b009d935
homework: Lock/Unlock: Freeze/Thaw user session
Whenever a home directory is in a locked state, accessing the files of
the home directory is extremely likely to cause the thread to hang. This
will put the session in a strange state, where some threads are hanging
due to file access and others are not hanging because they are not
trying to access any of the user's files.

This can lead to a whole slew of consequences. For example, imagine a
likely situation where the Wayland compositor is not hanging, but the
user's open apps are. Eventually, the compositor will detect that none
of the apps are responding to its pings, assume that they're frozen
(which they are), and kill them. The systemd user instance can end up in
a similarly confused state and start killing user services. In the worst
case, killing an app at an unexpected moment can lead to data loss.

The solution is to suspend execution of the whole user session by
freezing the user's slice.
2024-03-05 12:12:36 -05:00
Adrian Vovk
0b958bb3ee
sleep: Always freeze user.slice
Previously, we'd only freeze user.slice in the case of s2h, because we
didn't want the user session to resume while systemd was transitioning
from suspend to hibernate.

This commit extends this freezing behavior to all sleep modes.

We also have an environment variable to disable the freezing behavior
outright. This is a necessary workaround for someone that has hooks
in /usr/lib/systemd/system-sleep/ which communicate with some
process running under user.slice, or if someone is using the proprietary
NVIDIA driver which breaks when user.slice is frozen (issue #27559)

Fixes #27559
2024-03-05 12:12:35 -05:00
Lennart Poettering
6399be223b resolved: make resolved authoritative in resolveing our local host name
This is a kinda a follow-up for ce266330fc: it
makes resolved authoritative on our local hostname, and never contacts
DNS anymore for it.

We effectively already were authoritative for it, except if the user
queried for other RR types than just A/AAAA. This closes the gap and
refuses routing other RR type queries to DNS.

Fixes: #23662
2024-03-05 15:31:32 +01:00
Max Gautier
7360be92ad Fixing bad link to Debian packages tests 2024-03-05 11:22:13 +01:00
Frantisek Sumsal
b99a26e136 docs: update translation-related instructions
Just making them consistent with the rest of the doc.
2024-03-04 10:12:20 +01:00
Luca Boccassi
a73144bbdf repart: add --private-key-source and drop --private-key-uri
It turns out it's mostly PKCS11 that supports the URI format,
and other engines just take files. For example the tpm2-tss-openssl
engine just takes a sealed private key file path as the key input,
and the engine needs to be specified separately.

Add --private-key-source=file|engine:foo|provider:bar to
manually specify how to use the private key parameter.

Follow-up for 0a8264080a
2024-03-01 17:32:19 +00:00
Adrian Vovk
793ceda177 user-record: Add preferredSession{Type,Launcher}
These will be used by display managers to pre-select the user's
preferred desktop environment and display server type. On homed, the
display manager will also be able to set these fields to cache the
user's last selection.
2024-03-01 16:28:10 +00:00
Lennart Poettering
5b97957376
Merge pull request #31531 from poettering/verity-userspace-optional
dissect: make use of userspace verity keyring optional
2024-02-28 22:04:58 +01:00
Lennart Poettering
f0ecff8506 dissect: condition usespace verity keyring via kernel cmdline option + env var 2024-02-28 16:18:22 +01:00
Lennart Poettering
78266a54f1 tree-wide: use "_" rather than "-" as separator in kernel cmdline options
Most of our kernel cmdline options use underscores as word separators in
kernel cmdline options, but there were some exceptions. Let's fix those,
and also use underscores.

Since our /proc/cmdline parsers don't distinguish between the two
characters anyway this should not break anything, but makes sure our own
codebase (and in particular docs and log messages) are internally
consistent.
2024-02-28 15:33:51 +01:00
Mike Yuan
dc4eb788e6 docs: update link for Arch Linux bugtracker 2024-02-25 11:27:18 +00:00
Mike Yuan
3d3c42773d
docs/CODING_STYLE: fix typo (CLONE_VORK -> VFORK) 2024-02-24 13:26:19 +08:00
Yu Watanabe
16a52db488 docs: fix typo 2024-02-24 11:30:39 +09:00
Zbigniew Jędrzejewski-Szmek
1b4dc2ea28 docs: drop .md suffixes again 2024-02-23 09:56:00 +01:00
Zbigniew Jędrzejewski-Szmek
8e3fee33af Revert "docs: use collections to structure the data"
This reverts commit 5e8ff010a1.

This broke all the URLs, we can't have that. (And actually, we probably don't
_want_ to make the change either. It's nicer to have all the pages in one
directory, so one doesn't have to figure out to which collection the page
belongs.)
2024-02-23 09:48:47 +01:00
Zbigniew Jędrzejewski-Szmek
9df75c85a3 docs: fix typo in page name
Fixup for 163e2c8346.
2024-02-22 13:01:17 +01:00
hulkoba
5e8ff010a1
docs: use collections to structure the data 2024-02-22 10:11:54 +01:00
hulkoba
4049d92fda
docs: add distributions and mastodon 2024-02-22 10:11:10 +01:00
hulkoba
6b2a277624
docs: add Manuals and Documentation for Users and Administrators 2024-02-22 10:11:10 +01:00
Mariano Giménez
163e2c8346
docs: add documentation for developers 2024-02-22 10:11:09 +01:00
Mariano Giménez
313f2ebc88
add related packages links 2024-02-22 10:11:09 +01:00
Mariano Giménez
b6d06b85f0
add The systemd for Developers Series pages 2024-02-22 10:11:08 +01:00
Mariano Giménez
1c4f6bb60a
add administrators blog series links to extra_pages.json 2024-02-22 10:11:08 +01:00
Mariano Giménez
65c63edcd9
add videos and presentations 2024-02-22 10:11:07 +01:00
Mariano Giménez
7d4afa76e3
add publications to extra_pages.json 2024-02-22 10:11:05 +01:00
Lennart Poettering
0691d0e5a1 pcrlock: document the env vars we honour to find measurement logs
This env vars have been supported for a while, let's document them where
we usually document them.
2024-02-21 14:45:19 +01:00
hulkoba
eafadb91ce docs: show mkosi project on website 2024-02-21 13:08:08 +01:00
Adrian Vovk
1b466c0940 user-record: Add blobDirectory and blobManifest
These fields are used to connect a JSON user record to its blob
directory, and to include the directory's contents in the record's
signature
2024-02-19 11:18:11 +00:00
Adrian Vovk
4006b98da6 Document blob directory behavior
We're documenting the behavior of blob directories here. These docs
refer to things that aren't yet implemented at the time of the commit, but will be later in the same PR.
2024-02-19 11:18:11 +00:00
Daan De Meyer
55c2350e85
Merge pull request #31320 from DaanDeMeyer/versioning
meson: Start adding devel and rc suffixes to the project version
2024-02-15 20:15:04 +01:00
Daan De Meyer
ea2a57bee3 meson: Start adding devel and rc suffixes to the project version
Let's make sure that versions generated by meson-vcs-tag.sh always
sort higher than official and stable releases. We achieve this by
immediately updating the meson version in meson.build after a new
release. To make sure this version always sorts lower than future
rcs, we suffix it with "~devel" which will sort lower than "~rcX".

The new release workflow is to update the version in meson.build
for each rc and the official release and to also update the version
number after a new release to the next development version.

The full version is exposed as PROJECT_VERSION_FULL and used where
it makes sense over PROJECT_VERSION.

We also switch to reading the version from a meson.version file in
the repo instead of hardcoding it in meson.build. This makes it
easier to access both inside and outside of the project.

The meson-vcs-tag.sh script is rewritten to query the version from
meson.version instead of passing it in via the command line. This
makes it easier to use outside of systemd since users don't have to
query the version themselves first.
2024-02-14 15:36:34 +01:00
Daan De Meyer
c0561a05f5 docs: Use v255~rc1 instead of v255-rc1
This gets the point across better that we want the rc to sort lower
than the official release.
2024-02-14 15:36:33 +01:00
Lennart Poettering
46c60f7216 user-record: add fields for a fallback home dir + shell
This adds fields to the user record logic to allow a "fallback" home
directory and shell to be set as part of the "status" section of the
user record, i.e. supplied by the manager of the user record.

The idea is that if the fallback homedir/shell is set it will take
precedence over the real one in most ways.

Usecase: let's try to make ssh logins into homed directories work.
systemd-homed would set a fallback shell/homedir for inactive home dirs.
Thus, when ssh logins take place via key auth, we can allow them, and
these fallback session params would be used because the real home cannot
be activated just yet becasue we cannot acquire any password for it from
the user.
2024-02-14 15:01:38 +01:00
Adrian Vovk
49e55abb7f
user-record: Add languages field
This field is like preferredLanguage, but takes a priority list of
languages instead. If an app isn't translated into a user's primary
language, it can fall back to one of the other languages in the list
thus making the app more accessible to the user.

For instance: in my experience, many Ukrainians are fluent in Russian,
often significantly better than English (especially if they are of a
generation that grew up during the USSR). Such a person might set this
new variable to ["uk_UA.UTF-8", "ru_UA.UTF-8"] so that software that
lacks Ukrainian translations will first try Russian translations before
defaulting to English.

Fixes #31290
2024-02-13 17:39:14 -05:00
Daan De Meyer
6d55e3a364 Use tilde for rc tag versioning
tilde sorts lower in the version comparison spec:
https://uapi-group.org/specifications/specs/version_format_specification/

➜  systemd git:(strip) systemd-analyze compare-versions 249\~rc1 249
249\~rc1 < 249
➜  systemd git:(strip) systemd-analyze compare-versions 249-rc1 249
249-rc1 > 249

Also update tools/meson-vcs-tag.sh to use carets instead of hyphens
for the git part of the version as carets are allowed to be part of
a version by pacman while hyphens are not and both sort higher than
a version without the git part.
2024-02-13 18:14:36 +01:00
Luca Boccassi
dba0afa14e openssl: add helper to load key from provider/engine
It's not the literal private key, but EVP_PKEY becomes a reference
to the engine/provider that OpenSSL knows how to use later
2024-02-09 14:36:10 +00:00
Lennart Poettering
4fec9fed61
Merge pull request #30847 from keszybz/some-docs-updates
Some docs updates
2024-01-31 11:09:56 +01:00
Luca Boccassi
343e35b36d core: add SYSTEMD_VERITY_SHARING env var for local development
When running an image that cannot be mounted (e.g.: key missing intentionally
for development purposes), there's a retry loop that takes some time
and slows development down. Add an env var to disable it.
2024-01-26 10:14:15 +00:00
Daan De Meyer
98118c44ae Remove a few references to dracut
Let's remove some explicit references to dracut as we prefer initrds
built with mkosi these days.
2024-01-24 17:54:38 +01:00
Zbigniew Jędrzejewski-Szmek
4e434bc096 docs/UID-GIDS: use the modern spellings of pkg-config variables 2024-01-24 12:55:00 +01:00