1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-02-01 05:47:04 +03:00

4611 Commits

Author SHA1 Message Date
Daniel Fullmer
02a42a3ff1 sd-boot: fix menu ordering with boot counting
systemd-boot selects the last valid entry by default, not the first.

Fixes: #15256
(cherry picked from commit e6190e2882e1d6772a9e586fcc65c91d406e52fb)
(cherry picked from commit c5883bc08877d8bad10110434037a3c21950a71a)
(cherry picked from commit f047b0706c01f99c1b781f44b7b4d95ecdb8abe2)
2020-09-20 12:47:51 +02:00
Joerg Behrmann
6127224ef9 docs: Add syntax for templated units to systemd.preset man page
This documents the syntax

     enable template@.service foo bar baz

that was introduced in #9901 to preset templated units.

(cherry picked from commit 1f667d8a7cff4355cd23ebebeb4d7179e3498eb8)
(cherry picked from commit d1d3f2aa1561a9a75ce58026ef0a6bd4c5b464ac)
(cherry picked from commit f4d5928122fe632b441145750a03d95fd8dd2cc6)
2020-03-26 14:34:04 +01:00
Zbigniew Jędrzejewski-Szmek
b431688238 man: add a tiny bit of markup
(cherry picked from commit 0b1b0a01ab22c088046634c46c496022e7e60673)
(cherry picked from commit 3c69813c69af90e75acf9a80047ecf5b075c138d)
(cherry picked from commit 148f7b147aaba46491cec23ec44e4e998a84900f)
2020-03-26 14:34:04 +01:00
bemarek
de5a33367b Typo fix
(cherry picked from commit 1cee1c52833fb6e3829e510109404852a17e5bdd)
(cherry picked from commit ffccc15f725fe8d9d39a44978168cc483820d750)
(cherry picked from commit 1ea52d91c80b9012f4f76e660122e04ef3f86bc8)
2020-03-26 14:31:27 +01:00
Antonio Russo
6ed1152282 Documentation update for x-systemd.{before,after}
A minor clarification in the manual page is made.

Signed-off-by: Antonio Russo <antonio.e.russo@gmail.com>
(cherry picked from commit 81248e7f3e83a24cbbc8d2a09a01abf55e81bcda)
(cherry picked from commit 82dd4caf014c97eb9d7ab9da2841f7866e91bd98)
2020-02-05 17:35:09 +01:00
Andreas Rammhold
dba3efa34a man: fix typo in systemd.netdev Xfrm example
The first section header in that example should probably be `[NetDev]` and not `[Xfrm]`.

(cherry picked from commit a15e1a5df0c943ec5414014e54719bd1259fd00a)
(cherry picked from commit a60459764d9d4a3a7a32332768d9dbfb9f311dfc)
2020-02-05 17:35:05 +01:00
Luca Boccassi
db4fbf5c61 Clarify journald.conf MaxLevelStore documentation
'stored on disk' gives the impression that this option affects only
permanent storage, even though it affects everything the journal
records, regardless of the storage type.
Use 'stored in the journal' to avoid confusion.

(cherry picked from commit c97ae2b29036af29480ee506a072525917f5d41f)
(cherry picked from commit c001a285a3a2edfd344756e636f18f226fc291c4)
2020-02-05 17:28:26 +01:00
HATAYAMA Daisuke
af6df343b2 man: describe "symlink" and "systemctl link" explicitly in UNIT FILE LOAD PATH
There are sometimes users who put unit files in a location that is inaccessible
when systemd starts although they are not found and thus not started because
the corresponding mount units have not activated yet.

There is already a warning for such issue in man 8 systemctl:

     link PATH...
         ...<snip>...
         The file system where
         the linked unit files are located must be accessible
         when systemd is started (e.g. anything underneath /home
         or /var is not allowed, unless those directories are
         located on the root file system).

However, it looks that it's difficult to find the warning because introductory
users typically doesn't know systemctl link.

Although there is a description in UNIT FILE LOAD PATH pointing to systemctl
link, symlink is now not explicitly mentioned there and thus users doesn't
easily get aware of they should read it.

To deal with this, let's describe "symlink" and "systemctl link" more
explicitly in UNIT FILE LOAD PATH.

(cherry picked from commit b63c88b6271804e4770a14d94c66210e0c8063d7)
(cherry picked from commit c22bf6b31a454e51c707dcd0e6993f09ea6758db)
2020-02-05 17:27:02 +01:00
Zbigniew Jędrzejewski-Szmek
ecd95c507c man: fix option name
(cherry picked from commit 95522092925ac7b3526211c9c0c35b5722b43e95)
(cherry picked from commit 7d5060d53994415bc11782cb5f679768c485a29d)
2020-02-05 17:26:48 +01:00
Lennart Poettering
494c281b67 man: fix documentation of IBM VIO device naming
We generate "v" in two different ways, and they got mixed up.

(cherry picked from commit a1686563ded4cb6967034a59a61a50534c952dad)
(cherry picked from commit 7057fe8630079bf778dfa7d3ba841515bcc20eab)
2020-02-05 17:26:33 +01:00
Lennart Poettering
7271fb056a man: slightly extend documentation on difference between ID_NET_NAME_ONBOARD and ID_NET_LABEL_ONBOARD
(cherry picked from commit e232c307c052c85825e5017be868e1bd6bf4f97a)
(cherry picked from commit f8d1df1045bebf9d8878010bcb22fd7afe7f8701)
2020-02-05 17:26:29 +01:00
Topi Miettinen
a67227cc99 systemd.exec: document the file system for EnvironmentFile paths
Files specified with EnvironmentFile are read from PID1 mount namespace, before
any file system operations like RootImage or BindPaths are in effect.

(cherry picked from commit 412a6c646ced41ac9b12c4a4f97e34c0350e1040)
(cherry picked from commit b2f342f92b5447b68c5c61a1d078c62f26ddfd20)
2020-02-05 17:25:47 +01:00
Tobias Stoeckmann
cfb4c0aca5 systemd-analyze: fixed typo in documentation
The example shows the output of critical-chain, which means
that the title is wrong.

(cherry picked from commit be78e0f07b2379f51e6530269be953c0b520c447)
(cherry picked from commit 945f3a231f6fd0b5fa1dd3e11b9223b4c1dff37a)
2020-02-05 17:25:43 +01:00
Zbigniew Jędrzejewski-Szmek
20bbfac95e man: add section about user manager units
(cherry picked from commit 277519db51291c7e11b2120016c39914520f5009)
(cherry picked from commit 3dd98f1998f92f69a4159d1d254dcb3c522ec840)
2020-02-05 17:23:50 +01:00
Zbigniew Jędrzejewski-Szmek
c93ef60212 man: add remote-*.targets to the bootup sequence
I think this makes it easier to see the difference between local and remote
mounts.

Make the graph a bit narrower while at it.

(cherry picked from commit f71502c49fd9fce6328f9364f600578383551dce)
(cherry picked from commit 1c80a8ced006f92dc83e7ec36edd0005d4e54a76)
2020-02-05 17:23:50 +01:00
Anita Zhang
7afe2ecb02 [man] note which UID ranges will get user journals
Fixes #13926

(cherry picked from commit a1533ad73f099ed7f2c01a69c23ad700fbf249f3)
(cherry picked from commit 56192329138370e43bdce7f9a2a069985fec2eba)
2020-02-05 17:23:33 +01:00
Anita Zhang
a43b67a4c9 [man] fix URL
(cherry picked from commit d59fc29bb742e4258dab0606ab1a95cfaa1ea473)
(cherry picked from commit 588a23ef26841c4e98dee664d2252edb00f37e83)
2020-02-05 17:23:28 +01:00
Lennart Poettering
8932407ae1 man: we support growing xfs too these days
(cherry picked from commit 76b73ce21c0a4063696bd7c777ae12d99cd8fb69)
(cherry picked from commit c0a8a92e6027c4eb4ce6611c4910284f52029f7f)
2020-02-05 17:22:40 +01:00
Lennart Poettering
b59d88cc62 man: fix typo in net-naming-scheme man page
(cherry picked from commit 955ed5d540fe090687e085d894381f6bf0e57688)
(cherry picked from commit cbced49daaa664484ede8561f417dc767487eaf4)
2019-12-15 12:40:00 +01:00
cheese1
c5e5ac0958 man: fix typos (#14304)
(cherry picked from commit f32d15b0e4f5a0d2c31b22cb66f690a158ae9dfd)
(cherry picked from commit bf4b7d07baa7e917aa4b3addc10e8c55b65771ee)
2019-12-15 12:40:00 +01:00
Jan Tojnar
07a0e5b425 man: use mkswap@ instead of makeswap@
That is what is linked from systemd.swap(5) and also what the systemd.generator produces.

(cherry picked from commit 88eb0519722f285e5264a909f16ddf2648190681)
2019-12-15 12:24:58 +01:00
Lennart Poettering
002ededb61 man: drop reference to machined, add one for journald instead
We dropped documentation from sd_journal_open_container() long ago
(since the call is obsolete), hence drop the reference to machined. But
add one in for journald instead.

(cherry picked from commit d18df32d8229aff0bed41e9fe2a7a61598d70c89)
2019-12-15 12:23:42 +01:00
Paul Menzel
c9a287eee8 man/systemd.link: Add missing verb *be*
(cherry picked from commit a19b9a382711110c99365a24bd4da2b848f2b7d5)
2019-12-15 12:15:23 +01:00
Zbigniew Jędrzejewski-Szmek
a67a3ae04b man: document all pager variables for systemctl and systemd
In those two pages, we need to include individual entries with xi:include to
merge the list less-variables.xml with the other entries, which is obviously
error prone. All variables are supported in both tools so add them.

(cherry picked from commit 3d58bfc01c9283eded77736990ea09b0ee4f6e23)
2019-12-15 12:13:42 +01:00
Yu Watanabe
e51d9bf9e5 man: add entry about SpeedMeter=
Closes #14002.

(cherry picked from commit c9fdaed079524942445a1bbbb975766768ad9b04)
2019-11-19 11:07:31 +01:00
Zbigniew Jędrzejewski-Szmek
38453c6d42 man: share description of $SYSTEMD_COLORS in other tools
It was only described in systemd(1), making it hard to discover.
Fixes #13561.

The same for $SYSTEMD_URLIFY.

I think all the tools whose man pages include less-variables.xml support
those variables.

(cherry picked from commit 339bf2076b3294e5f7b59e84c59ba8c55ded3c25)
2019-11-19 11:07:31 +01:00
Zbigniew Jędrzejewski-Szmek
288edd6869 man: mention $RUNTIME_DIRECTORY & friends in environment list
(cherry picked from commit 1f6597a84cd3891a69a630c6c4b168da46b1c160)
2019-11-19 11:07:31 +01:00
Zbigniew Jędrzejewski-Szmek
b06b7ace92 run: propagate return code/status from the child
Fixes #13756. We were returning things that didn't make much sense:
we would always use the exit_code value as the exit code. But it sometimes
contains a exit code from the process, and sometimes the number of a signal
that was used to kill the process. We would also ignore SuccessExitStatus=
and in general whether systemd thinks the service exited successfully
(hence the issue in #13756, where systemd would return success/SIGTERM,
but we'd just look at the SIGTERM part.)

If we are doing --wait, let's always propagate the exit code/status from
the child.

While at it, make the documentation useful.

(cherry picked from commit 7f3614e5479446bbd5a2bdf6aed4962e8d803e35)
2019-11-19 11:07:31 +01:00
Zbigniew Jędrzejewski-Szmek
b9478046b0 man: describe ordering in case of Conflicts=
Fixes #13421.

(cherry picked from commit 38c432b37c1db7b02f9d6bd7a864a7aa88571441)
2019-11-19 11:07:30 +01:00
Zbigniew Jędrzejewski-Szmek
fa3e5bd2bb man: put description of Wants= above Requires=
We want users to use Wants, but we'd describe Requires first and ask users to
look for Wants instead. While at it, let's split the wall of text into sensible
paragraphs: syntax first, followed by semantics and longer description, and
finally hints and comparison to other configuration items last.

(cherry picked from commit d19cd71a8a6dca4565d7d1c8766127b70c10ebe0)
2019-11-19 11:07:30 +01:00
Zbigniew Jędrzejewski-Szmek
bdebd2c325 meson: remove strange dep that causes meson to enter infinite loop
The value is obviously bogus, but didn't seem to cause problems so far.
With meson-0.52.0, it causes a hang. The number of aliases is always rather
small (usually just one or two, possibly up to a dozen in a few cases), so
even if this causes some looping, it is strange that it has such a huge impact.
But let's just remove it.

Fixes #13742.

Tested with meson-0.52.0-1.module_f31+6771+f5d842eb.noarch,
meson-0.51.1-1.fc29.noarch.

(cherry picked from commit af336643a01d0b210b18312c253a50594ba54b0a)
2019-11-19 11:07:30 +01:00
Dominique Martinet
26bc77d8e5 man: fix option typo in pam_systemd man page
The session= option does not exist, XDG_SESSION_TYPE overrides the type=
option.

(cherry picked from commit 98647fa0faaff21b53f8a01b9804fc0669fb6d19)
2019-11-19 11:07:30 +01:00
Anita Zhang
9c12127e3d man: save pull-raw example file without underscores
Destination file needs to be a valid hostname and underscores
are not valid hostname characters.

Closes #13542

(cherry picked from commit b12a67ae145ce01d3dc97fc76fed8c1698125dc6)
2019-11-19 11:07:30 +01:00
Anita Zhang
4c106cbcf1 man: small grammatical/word choice fixes to crypttab man page
Closes #13608

(cherry picked from commit 7792d9cdd484dcd8552cce0ea778eb09ed7fbc10)
2019-11-19 11:07:30 +01:00
Jan Synacek
587266c24a man/systemd.net-naming-scheme: fix typo
(cherry picked from commit ce6304f78e57f2038f62cb923f48ad4f11e71720)
2019-11-19 11:07:30 +01:00
Lennart Poettering
a39008ddec meson: correct man page deps
(cherry picked from commit 20bae8b94d34d75fe2572738e466abc37563bf88)
2019-11-19 10:37:07 +01:00
Franck Bui
417779c58a man: alias names can't be used with enable command
(cherry picked from commit faf205de3ba9a11b0ba17682123d7f3fedc7da24)
2019-11-19 10:30:11 +01:00
Chris Down
de1d25a506 cgroup: docs: memory.high doc fixups
The docs just tautologically call this the "high limit". Just call it
throttling as we do in cgroup-v2.rst.

(cherry picked from commit ba79e19cb299623c9c0dd4c6a1ae80f795409b04)
2019-10-10 14:47:19 +02:00
Chris Down
2ab45f38d8 cgroup: docs: Mention unbounded protection for memory.{low,min}
I got asked why Memory{Low,Min} don't allow "infinity". They do, but the
docs don't say that like they already do for Memory{High,Max}.

(cherry picked from commit b62087d4d06777ccde9eb9e7a97abc7b8945d5f5)
2019-10-10 14:47:14 +02:00
Philip Withnall
a0577353f1 man: Add a missing space in machinectl(1)
Signed-off-by: Philip Withnall <withnall@endlessm.com>
(cherry picked from commit abdc57dfe149bfba79af094fd623eb9929eff5e3)
2019-10-10 14:44:15 +02:00
Michael Biebl
b90549290e man: fix typo
(cherry picked from commit decef551afaff9fb72f3cde499c9c1bcd23e5874)
2019-10-10 14:39:14 +02:00
Zbigniew Jędrzejewski-Szmek
73e0f372d8 man: fix description of ARPIntervalSec= units
https://bugzilla.redhat.com/show_bug.cgi?id=1751363
(cherry picked from commit 06c52cc2b7c6cf2729e130f2a23c5a7ce62e27b9)
2019-09-21 23:06:52 +02:00
Yu Watanabe
3ccafef0ad man: move TimeoutCleanSec= entry from .service to .exec
Follow-up for 12213aed128456af33ff6131a14b637318227346.

Closes #13546.

(cherry picked from commit bd9014c360f86aefcf4d417d50372a5fc29af7ce)
2019-09-21 22:58:15 +02:00
Zbigniew Jędrzejewski-Szmek
9a25d75520 man: remove repeated words
b5328434c9 (commitcomment-34989175)
(cherry picked from commit ff7cfff0c446ce8ba901f8fc531171fb727a9a5d)
2019-09-21 22:57:26 +02:00
Carlo Teubner
f06530d86b man/systemctl.xml: fix missing "not" 2019-09-05 07:43:00 +09:00
Dimitri John Ledkov
8fa0de653b Generate stable machine-id and DHCP client ID on POWER KVM. 2019-08-31 10:57:16 +02:00
Yu Watanabe
e148cbc5ef man: list possible action string and default value
Closes #13442.
2019-08-31 09:13:16 +02:00
Zbigniew Jędrzejewski-Szmek
13dcc96ffb docs: describe valid unit names in systemd.unit(5) 2019-08-30 13:55:55 +02:00
Jan Chren
013a87517d man: install runlevel.8 unconditionally
systemctl supports runlevel invocation name without utmp.
The runlevel symlink is installed unconditionally.
So it's reasonable to install runlevel manpage with it as well.

Signed-off-by: Jan Chren (rindeal) <dev.rindeal@gmail.com>
2019-08-29 13:57:00 +09:00
Zbigniew Jędrzejewski-Szmek
db11487d10 manager: put bin before sbin for user instances
Traditionally, user logins had a $PATH in which /bin was before /sbin, while
root logins had a $PATH with /sbin first. This allows the tricks that
consolehelper is doing to work. But even if we ignore consolehelper, having the
path in this order might have been used by admins for other purposes, and
keeping the order in user sessions will make it easier the adoption of systemd
user sessions a bit easier.

Fixes #733.
https://bugzilla.redhat.com/show_bug.cgi?id=1744059

OOM handling in manager_default_environment wasn't really correct.
Now the (theorertical) malloc failure in strv_new() is handled.

Please note that this has no effect on:
- systems with merged /bin-/sbin (e.g. arch)

- when there are no binaries that differ between the two locations.

  E.g. on my F30 laptop there is exactly one program that is affected:
  /usr/bin/setup -> consolehelper.

  There is less and less stuff that relies on consolehelper, but there's still
  some.

So for "clean" systems this makes no difference, but helps with legacy setups.

$ dnf repoquery --releasever=31 --qf %{name} --whatrequires usermode
anaconda-live
audit-viewer
beesu
chkrootkit
driftnet
drobo-utils-gui
hddtemp
mate-system-log
mock
pure-ftpd
setuptool
subscription-manager
system-config-httpd
system-config-rootpassword
system-switch-java
system-switch-mail
usermode-gtk
vpnc-consoleuser
wifi-radar
xawtv
2019-08-27 18:24:44 +02:00