| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
| |
This variable (a.k.a. rootlibexecdir), was exposed through the .pc file, but
not as rpm macro.
The .pc file must be located in the package that provides libraries, which
pulls in a lot of dependencies. In Fedora, the macros are split out to a
separate package so that other packages which need to refer to some systemd
path but don't otherwise require it, can only pull in the (much smaller and
dependency-less) macros package. zram-generator uses the path to specify the
location of systemd-makefs, so by using the rpm macro we'll be able to use
a much smaller buildroot.
|
|
|
|
|
|
|
|
|
|
|
|
| |
Functions defined by us are supposed to return negative errno-style
errors on errors. laccess() is for access() what lstat() is for stat(),
but defined by us as a macro. This led to some confusion regarding error
handling.
Let's return a negative errno code just in case. This means callers can
it use either way: like access(), i.e. checking for a negative return
value + looking at errno, or like our own code, i.e. using the negative
errno code it returns.
|
|\
| |
| | |
Assorted small cleanups
|
| | |
|
| | |
|
|\ \
| |/
|/| |
systemctl-edit fixes
|
| |
| |
| |
| |
| |
| | |
find_paths_to_edit() makes 2 calls to unit_find_paths(), one of which is
a retry client-side. ret_dropin_paths should be passed the same in
both cases.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
After 85c5d313b5c92115f5c77663e736bcf21e99f02f, if you, for example,
create a drop-in for -.slice without a corresponding -.slice file, you will
get the following:
# put some valid stuff in /etc/systemd/system/-.slice.d/override.conf
[root@image ~]# systemctl daemon-reload
[root@image ~]# systemctl edit -- -.slice
Assertion 'path' failed at src/systemctl/systemctl-edit.c:425, function
find_paths_to_edit(). Aborting.
Aborted
The aforementioned commit sets the ret_dropin_paths argument for
unit_find_paths(). Thus, unit_find_paths() returns 1 in the example above
because it finds a relevant drop-in. However find_paths_to_edit() was written
to expect 1 only if the unit file itself exists (it does not in this example).
To make this behave more like the version of `systemctl edit` prior to
this commit, add an additional check so the code enters the
"unit file not found" code branch.
|
|\ \
| | |
| | | |
initrd: add an env variable to accept non-ramfs rootfs
|
| | |
| | |
| | |
| | | |
Signed-off-by: Kairui Song <kasong@redhat.com>
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Sometimes, non-ramfs initrd root are useful. Eg, for kdump, because
initramfs is memory consuming, so mount a compressed image in earlier
initrd, chroot into it then let systemd do the rest of job is a good
solution.
But systemd doesn't recognize the initrd environment if rootfs is not a
temporary fs. This is a reasonable check, because switch-root in initrd
will wipe the whole rootfs, will be a disaster if there are any
misdetect.
So extend SYSTEMD_IN_INITRD environment variable, now it accepts boolean
value and two extra keyword, "auto" and "lenient". "auto" is same as
before, and it's the default value. "lenient" will let systemd bypass
the rootfs check.
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | | |
This adds the ability to specify truncate:PATH for StandardOutput= and
StandardError=, similar to the existing append:PATH. The code is mostly
copied from the related append: code. Fixes #8983.
|
| | |
| | |
| | |
| | | |
in the caller
|
| | |
| | |
| | |
| | | |
on purpose
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | | |
In the other error paths unit_file_find_fragment() doesn't log beyond
debug level, i.e. is of the non-logging library-like kind. Make sure
this error path is handled the same, so that the caller can log.
|
| | | |
|
|\ \ \
| | | |
| | | | |
ci: assorted workarounds for recent flakes
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
It seems to suffer from the same issue as on Travis CI, where the test
randomly fails due to timeouts in its subtests.
See: https://github.com/systemd/systemd/issues/10696#issuecomment-758501797
|
| |_|/
|/| |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
configs
By default, systemd installs various sample configuration files
containing commented-out defaults. Systems seeking to minimize the
number of files in /etc may wish to install directories and
configuration files that have semantic effects, but not install not
commented-out sample configuration files.
Turn install-sysconfdir into a multi-valued option, with a "no-samples"
value to skip installing sample-only configuration files.
|
| | |
| | |
| | |
| | |
| | |
| | | |
Follow-up for 4fcc033b5476039a7a8030e1edc261d42cec028b.
Fixes CID#1442307.
|
|\ \ \
| | | |
| | | | |
network: introduce ManageTemporaryAddress= setting in [DHCPv6PrefixDelegation] section
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
[DHCPv6PrefixDelegation] section
The setting is enabled by default, as NDisc also enabled the flag by
default.
Closes #18208.
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | | |
localed: Run locale-gen if available to generate missing locale
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This change improves integration with distributions using locale-gen to
generate missing locale on-demand, like Debian-based distributions
(Debian/Ubuntu/PureOS/Tanglu/...) and Arch Linux.
We only ever enable new locales for generation, and never disable them.
Furthermore, we only generate UTF-8 locale.
This feature is only used if explicitly enabled at compile-time, and
will also be inert at runtime if the locale-gen binary is missing.
|
| | | | | |
|
|\ \ \ \ \
| |_|/ / /
|/| | | | |
udev: introduce TxQueueLength= setting
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Enable udev to set the transmit queue length of a device via a new directive to
be used in link files. The kernel stores this parameter as an unsigned 32 bit
integer. As typical values currently range in the order of 10 to a few 10,000
packets reduce the domain of valid values for this directive to 0..4294967294
and take the excluded 4294967295 == UINT32_MAX to indicate that the directive
is unset.
|
| |/ / /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This has been forgotten in pull request #17628 ("udev: Add support to
configure Generic Segment Offload"), see [1].
[1] https://github.com/systemd/systemd/pull/17628
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
As described in #2680, systemctl did ignore inhibitors if it is not
attached to a tty to allow scripts to ignore inhibitors automatically.
This pull request preserves this behavior but allows scripts to
explicit check inhibitors if required.
The new parameter '--check-inhibitors=yes' enables this feature.
The old parameter '-i'/'--ignore-inhibitors' was deprecated in favor
of '--check-inhibitors=no', the default behaviour can be specified
with '--check-inhibitors=auto'.
The new parameter is also described in the documentations and shell
completions found here.
|
|\ \ \ \
| |/ / /
|/| | | |
tmpfiles: fix documentation about quoting the "argument" field in tmpfiles.d snippets
|
| | | |
| | | |
| | | |
| | | | |
As it is common now in our tools.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
The `quote` char variable ectually contains a character, not a pointer
or boolean. hence do an explicit comparison rather than rely on C's
downgrade to bool feature, as per our coding style.
|
| |/ /
|/| |
| | |
| | |
| | |
| | | |
Follow-up for a66a402da471f6230ab8674fd2c1df6d918773b5.
Fixes #18059.
|
|/ /
| |
| |
| |
| |
| |
| | |
We do this for import-tar and import-fs, we should do it for pull-tar,
too.
Fixes: #17563
|
|\ \
| | |
| | | |
dhcp: length of each user class field must be positive
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
Also, fixes the maximum length of the vendor class to UINT16_MAX.
Moreover, a memory leak in sd_dhcp6_client_set_request_vendor_class().
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
This also fixes a memory leak when
sd_dhcp6_client_set_request_user_class() is called multiple times.
|
| | | |
|
| |/
| |
| |
| |
| | |
This also fixes an memory leak when sd_dhcp_client_set_user_class()
is called multiple times.
|
|\ \
| | |
| | | |
network: Allow to configure VLan egress qos maps
|
| | | |
|
| | | |
|
| | | |
|