Lennart Poettering
2422bd21c8
README,sysusers: complete and order list of default udev groups we need
...
Let's make sure the list of default udev groups we need are ordered in
README and in the sysusers.d snippet, and both are complete.
2017-11-20 12:34:28 +01:00
Lennart Poettering
9e93f6f092
README: slightly update the section about split /usr
...
It's fine if /usr is actually on a separate fs. What matters is that it
is mounted early enough. Say so.
2017-11-20 12:34:28 +01:00
Lennart Poettering
01c8938e54
README: document that prefix *must* be /usr and nss-systemd is not an option
...
See: #7374
2017-11-20 12:30:57 +01:00
Zbigniew Jędrzejewski-Szmek
18c8db140f
meson: add -Wimplicit-fallthrough=3 to compilation options ( #7393 )
...
At some point before gcc-7 was released, -Wimplicit-fallthrough=3 was included
in -Wextra. The documentation for gcc-7.2.1-2.fc27.x86_64 still says that, but
empirical testing shows that it's not. The documentation also misstates that
-Wimplicit-fallthrough is equivalent to -Wimplicit-fallthrough=3.
Let's add -Wimplicit-fallthrough=3 explicitly to get the warnings if we regress.
Prompted by #7389 .
2017-11-20 12:14:47 +01:00
Zbigniew Jędrzejewski-Szmek
f9753b0c79
Merge pull request #7373 from poettering/analyze-calendar
...
add nifty little "systemd-analyze calendar" command
2017-11-20 11:25:55 +01:00
Lennart Poettering
021723c63e
systemctl: elapsation → elapse
2017-11-20 10:57:41 +01:00
Lennart Poettering
4154ce8a85
update TODO
2017-11-20 10:57:41 +01:00
Lennart Poettering
6d86f4bd11
analyze: add new "calendar" command
...
This little new command can parse, validate, normalize calendar events,
and calculate when they will elapse next. This should be useful for
anyone writing calendar events and who'd like to validate the expression
before running them as timer units.
2017-11-20 10:57:41 +01:00
John Lin
e79eabdb1b
man: Requires= stops this unit when dependencies get deactivated ( #7391 )
...
Fixes : #7372
2017-11-20 10:55:52 +01:00
Lennart Poettering
9a9a4f10e9
util: add new helper in_utc_timezone()
...
As the name suggests it checks whether we are running in an UTC
timezone.
2017-11-20 10:53:26 +01:00
Lennart Poettering
7c123d49fc
calendarspec: rework destructor to return its own type
...
Let's make it more alike most of our other destructors.
2017-11-20 10:34:43 +01:00
Zbigniew Jędrzejewski-Szmek
86ea8d70fc
meson: bump required meson version to 0.41 ( #7385 )
...
We need data_dirs argument for i18n.merge_file, added in 0.40.1-11-g82492f5d76.
2017-11-20 08:08:43 +01:00
Yu Watanabe
3000f85014
core/swap: load() should fail when neither of corresponding unit file nor /proc/swap entry does not exist
...
It is not necessary to label as loaded to a swap unit when neither of
corresponding unit file nor entry in /proc/swap does not exist.
This makes swap_load() to fail such a case.
Partially fixes #7370 .
2017-11-20 09:35:35 +09:00
Yu Watanabe
4a78b63780
core/automount: load() should fail when the unit file does not exist
...
It is not necessary to label as loaded to automount unit when its unit
file does not exist. So, let's make automount_load() to fail when the
unit file does not exist.
Partially fixes #7370 .
2017-11-20 09:35:30 +09:00
Lennart Poettering
0e74bad141
Merge pull request #7376 from keszybz/simplify-root-options
...
Simplify root configuration options
2017-11-19 19:50:03 +01:00
Lennart Poettering
0133d5553a
Merge pull request #7198 from poettering/stdin-stdout
...
Add StandardInput=data, StandardInput=file:... and more
2017-11-19 19:49:11 +01:00
Lennart Poettering
0b252fc0be
Merge pull request #7379 from yuwata/follow-up-7309
...
networkd: small fixes
2017-11-19 19:47:24 +01:00
Lennart Poettering
3219f05c1d
Merge pull request #7386 from keszybz/spdx
...
Add some missing license headers and add SPDX identifiers
2017-11-19 19:46:52 +01:00
Zbigniew Jędrzejewski-Szmek
3a726fcd08
Add license headers and SPDX identifiers to meson.build files
...
So far I avoided adding license headers to meson files, but they are pretty
big and important and should carry license headers like everything else.
I added my own copyright, even though other people modified those files too.
But this is mostly symbolic, so I hope that's OK.
2017-11-19 19:08:15 +01:00
Zbigniew Jędrzejewski-Szmek
7059062c2f
Add SPDX license headers to shell completion scripts
2017-11-19 19:08:15 +01:00
Zbigniew Jędrzejewski-Szmek
d9215cd838
Add SPDX license headers to various assorted files
2017-11-19 19:08:15 +01:00
Zbigniew Jędrzejewski-Szmek
f48f7543ca
Add missing headers and SPDX identifiers to man pages
2017-11-19 19:08:15 +01:00
Zbigniew Jędrzejewski-Szmek
a7df2d1e43
Add SPDX license headers to unit files
2017-11-19 19:08:15 +01:00
Zbigniew Jędrzejewski-Szmek
35df744355
Add SPDX license headers to python scripts
2017-11-19 19:08:15 +01:00
Zbigniew Jędrzejewski-Szmek
d74a9adf93
Add SPDX indentifier to hwdb/parse_hwdb.py
2017-11-19 19:08:15 +01:00
Zbigniew Jędrzejewski-Szmek
572eb058cf
Add SPDX license identifiers to man pages
2017-11-19 19:08:15 +01:00
Zbigniew Jędrzejewski-Szmek
f0465e73f8
Add SPDX license identifiers to catalog and po files
2017-11-19 19:08:15 +01:00
Zbigniew Jędrzejewski-Szmek
e7145211c7
Add SPDX license identifiers to source files under the GPL
2017-11-19 19:08:15 +01:00
Zbigniew Jędrzejewski-Szmek
53e1b68390
Add SPDX license identifiers to source files under the LGPL
...
This follows what the kernel is doing, c.f.
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=5fd54ace4721fc5ce2bb5aef6318fcf17f421460 .
2017-11-19 19:08:15 +01:00
Lennart Poettering
5c856d1e6c
Merge pull request #7388 from keszybz/doc-tweak
...
Add link to kernel docs about no_new_privs and drop note about CPU controller
2017-11-19 17:50:35 +01:00
Lennart Poettering
d3590acede
machined: support "machinectl bind" on non-directories ( #7349 )
...
Fixes : #7195
2017-11-19 14:23:29 +01:00
Zbigniew Jędrzejewski-Szmek
c12ad58c41
man: remove note about CPU controller being unmerged
...
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=0d5936344f30aba0f6ddb92b030cb6a05168efe6
In principle we shouldn't merge this until after 4.15 is released, but the
chances of a revert upstream are low, and in that unlikely scenario we can just
revert this patch, it's a trivial documentation update after all.
2017-11-19 14:15:42 +01:00
Zbigniew Jędrzejewski-Szmek
34b3f471f8
Merge pull request #7365 from poettering/nspawn-bind-userns
...
nspawn: document --bind= and --private-users relationship, and make recursive chown()ing safe
2017-11-19 14:01:39 +01:00
Zbigniew Jędrzejewski-Szmek
906bbac474
test: do not hardcode location of EFI partition
2017-11-19 12:36:20 +01:00
Zbigniew Jędrzejewski-Szmek
30b5047762
bootctl: add a convenient way to print the path to EFI
2017-11-19 12:36:20 +01:00
Zbigniew Jędrzejewski-Szmek
46fb255b0d
bootctl: rename r2 and r to r and k
...
r2 was assigned first despite the name. This scheme is different than
what is used elsewhere in the code. Rename to make it easier to read.
2017-11-19 12:35:50 +01:00
Zbigniew Jędrzejewski-Szmek
4bb2e9d466
systemctl: make sure the kernel is loaded before kexec'ing
...
We just load the same kernel that would be loaded by default by sd-boot, with
the same options. Changing the kernel or initramfs or options is left for
later.
Now we will refuse to continue if loading fails. This makes 'systemctl kexec'
more predictable: it will not fall back to normal reboot if the kernel is
not loaded.
2017-11-19 12:33:35 +01:00
Zbigniew Jędrzejewski-Szmek
a6fabe384d
man: add link to kernel docs about no_new_privs
2017-11-19 11:58:45 +01:00
Yu Watanabe
7b872092d9
networkd: fix indentation
2017-11-18 01:24:41 +09:00
Yu Watanabe
4a3b54fd3c
networkd: remove debug message and unref when error
...
Follow-up for 8006aa32ee
.
2017-11-18 01:22:38 +09:00
Lennart Poettering
f56e7bfe2b
core: be more defensive if we can't determine per-connection socket peer ( #7329 )
...
Let's handle gracefully if a client disconnects very early on.
This builds on #4120 , but relaxes the condition checks further, since we
getpeername() might already fail during ExecStartPre= and friends.
Fixes : #7172
2017-11-17 15:22:11 +01:00
John Lin
c37b4f3f9f
man: rescue.target could be seen as single-user.target ( #7323 )
2017-11-17 15:20:48 +01:00
Lennart Poettering
b94f4313e8
man: document that start limiting of GC'ed units doesn't work ( #7337 )
...
Fixes : #7139
2017-11-17 15:18:30 +01:00
Zbigniew Jędrzejewski-Szmek
a53dbb34ff
Merge pull request #7360 from poettering/preset-fix
...
Some fixes for preset-all logic at boot, plus main.c reworking
2017-11-17 15:00:22 +01:00
Zbigniew Jędrzejewski-Szmek
f04c052025
Merge pull request #7338 from poettering/doc-restart-fix
...
improve unit restart documentation a bit
2017-11-17 14:51:51 +01:00
Zbigniew Jędrzejewski-Szmek
0c6e2702b6
meson: use absolute path for rpmmacrosdir
...
This only matter for the status display at the end of configure step.
Now it looks like:
RPM macros dir: /usr/lib/rpm/macros.d
2017-11-17 13:22:13 +01:00
Zbigniew Jędrzejewski-Szmek
ee4bfa21f6
meson: drop rootprefix option
...
rootprefixdir is now always set to /usr or /, based on the split-usr setting.
Anything else does not work anyway.
C.f. #7375 .
2017-11-17 13:08:00 +01:00
Lennart Poettering
2642122898
install: when we encounter a transient/generated unit while presetting all, skip over it silently
...
Fixes : #7100
2017-11-17 11:28:17 +01:00
Lennart Poettering
a68aef7a95
main: uid_to_name() might theoretically fail, handle that
2017-11-17 11:28:17 +01:00
Lennart Poettering
1e41242e11
core: shorten main() a bit, split out coredump initialization
...
No functional changes.
2017-11-17 11:28:17 +01:00