| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
This reverts commit be266f49d6b7e3f021e2a07f937d39d1f14a283d.
Turns out we installed this because it's required by the bpf selftests
so let's keep it intact.
|
| |
|
|\
| |
| | |
sd-id128: introduce id128_get_machine() and _at()
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
If a root directory is specified, and e.g. /var under the root directory
is a symlink to the host's /var, then we wrongly read host's machine ID,
even if O_NOFOLLOW is set.
Let's chase the path with CHASE_NOFOLLOW to refuse such case.
Also, refuse null ID, otherwise we may setup machine ID with NULL.
|
| | |
|
| | |
|
| |
| |
| |
| | |
Then, use id128_get_machine().
|
| |
| |
| |
| |
| |
| |
| |
| | |
Previously, when the NULL (all zero) machine ID is configured in the
container, nspawn refused to execute.
Now id128_get_machine() is used, so NULL machine ID is refused with
-ENOMEDIUM, and fallback to specified UUID or randomly generated one.
|
| |
| |
| |
| |
| | |
This also makes that the seed is actually randomized when the read
machine ID is NULL.
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| | |
parse_boolean_argument() returns the same information via both the output
argument and normal return.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Fixes:
- Comment style
- Alignment style
- cleanup macro usage
- incorrect error message[1]
1. Thanks to tempusfugit991@gmail.com for pointing out the error
message mistake.
Signed-off-by: William Roberts <william.c.roberts@intel.com>
|
| | |
|
| |
| |
| |
| | |
As it turns out RuntimeDirectoryPreserve= already supports such a mode.
|
| | |
|
| | |
|
|\ \
| | |
| | | |
Improvements to man pages for systemd.service, sd-bus, and better error messages
|
| | |
| | |
| | |
| | |
| | | |
Also add definitions for a few names that didn't have them and update
the list in the man page.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
I was changing how some properties are appended to the StartTransientUnit call
and messed up the message contents. When something is wrong with how the
message is structed, we would return a very generic
"Failed to start transient service unit: No such device or address".
Mention that it was property setting that failed, and translate ENXIO to a
different message. bus_unit_set_properties() or any of the children it calls
may also return other errors, in particular EBADMSG or ENOMEM, but the error
message that is generated for those is understandable, so we don't need to
"translate" them explicitly.
bus_unit_set_properties() is called from two places, so it seems nicer to
generate the message internally, rather than ask the caller to do that. Also,
now bus_unit_set_properties() always sets <error>, which is nicer for the
callers.
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
The prefixes can be specified for any part of the command. The docs imply this,
but it's not entirely obvious. Let's add an example.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The description was split — part was under ExecStart= and part in "Command lines".
Now the whole generic part is moved to the separate section, and under ExecStart=
only the stuff that is specific to that option is described.
This just moves the text and removes some repetitions.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
After 'if (DEBUG_LOGGING)' is added, the two call sites are almost identical,
except that we forgot LOG_UNIT_INVOCATION_ID(unit).
I removed the handling of the log_oom(). It's a debug message only after all,
and it's unlikely to fail.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The function had a provision for NULL input, and would return NULL, but that
looks like an error and all callers pass in a non-NULL arg and report oom on
NULL. So assert that the input is non-NULL.
All callers specifed the output buffer, so we can simplify the logic to only
make an allocation if appropriate and change the return type to 'const *'.
No functional change.
|
| | | |
|
| |/
|/| |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
I was testing transient units and user@.service crashed. I restarted it, and
tried to create a transient unit. It failed because
/run/user/1000/systemd/transient/ remained after the previous aborted run:
Failed to start transient service unit: Unit run-u0.service was already loaded or has a fragment file.
Remove the directory during initial startup so we don't get confused by our own
files.
|
| | |
|
| | |
|
|\ \
| | |
| | | |
undefined
|
| | | |
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | | |
As the flag is not only for formatting.
|
| | | |
|
| | |
| | |
| | |
| | | |
This reverts commit 830e52caa2bf1a29f56cb93e7ed85acb1bda11c3.
|
|/ /
| |
| |
| | |
Fixes a bug introduced by 63bfd52f48a772c86ff84e3a1ba1fcd19e0008f8.
|
| |
| |
| |
| | |
TODO.
|
|\ \
| | |
| | | |
Trivial cleanups
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| | |
If we created the dir successfully, we let chmod_and_chown_at() do its thing
and shouldn't go into the part where we check if the existing directory has the
right permissions and ownership and possibly adjust them. The code was doing
that, by relying on the fact that chmod_and_chown_at() does not return -EEXIST.
That's probably true, but seems unnecessarilly complicated.
Follow-up for c1b1492a94b43ca636eb383c3b058feff27ff7b1.
|
| | |
|