]>
git.ipfire.org Git - thirdparty/systemd.git/log
Lennart Poettering [Tue, 27 Jun 2023 11:14:17 +0000 (13:14 +0200)]
tmpfiles: teach tmpfiles the new XDG_STATE_HOME variable too
Lennart Poettering [Tue, 27 Jun 2023 08:32:11 +0000 (10:32 +0200)]
man: properly close XML tags
Lennart Poettering [Tue, 27 Jun 2023 08:28:44 +0000 (10:28 +0200)]
man: rebreak lines in file-hierarchy(7) a bit
(Does not change a single word, just rebreaks a bunch of paragraphs
matching our current line breaking rules)
Franklin Yu [Fri, 26 May 2023 05:06:54 +0000 (22:06 -0700)]
man: mention the newly-added XDG_STATE_HOME
The description is copied from config-home.
Taken from: #27795
Lennart Poettering [Mon, 26 Jun 2023 21:23:21 +0000 (23:23 +0200)]
test: add test for new XDG_STATE_HOME handling
Lennart Poettering [Tue, 27 Jun 2023 09:19:47 +0000 (11:19 +0200)]
execute: don't bother with chowning StateDirectory= and friends in user mode
Lennart Poettering [Tue, 27 Jun 2023 09:19:31 +0000 (11:19 +0200)]
execute: shorten code by making use of laccess() return code properly
Lennart Poettering [Tue, 27 Jun 2023 09:19:12 +0000 (11:19 +0200)]
execute: shorten some code by using RET_NERRNO()
Lennart Poettering [Tue, 27 Jun 2023 09:16:01 +0000 (11:16 +0200)]
execute: associate logs from setup_exec_directory() with the unit name
Lennart Poettering [Mon, 26 Jun 2023 20:42:33 +0000 (22:42 +0200)]
execute: add support for XDG_STATE_HOME for placing service state data in --user mode
This adds support for the new XDG_STATE_HOME env var that was added to
the xdg basedir spec. Previously, because the basedir spec didn't know
the concept we'd alias the backing dir for StateDirectory= to the one
for ConfigurationDirectory= when runnin in --user mode. With this change
we'll make separate. This brings us various benefits, such as proper
"systemctl clean" support, where we can clear service state separately
from service configuration, now in user mode too.
This does not come without complications: retaining compatibility with
older setups is difficult, because we cannot possibly identitfy which
files in existing populated config dirs are actually "state" and which
one are true" configuration.
Hence let's deal with this pragmatically: if we detect that a service
that has both dirs configured only has the configuration dir existing,
then symlink the state dir to the configuration dir to retain
compatibility.
This is not great, but it's the only somewhat reasonable way out I can
see.
Fixes: #25739
Lennart Poettering [Tue, 27 Jun 2023 09:09:03 +0000 (11:09 +0200)]
execute: when recursively chowning StateDirectory= when spawning services, follow initial symlink
It should be OK to allow one level of symlink for the various types of
directories like StateDirectory=, LogsDirectory= and such.
Lennart Poettering [Mon, 26 Jun 2023 20:36:31 +0000 (22:36 +0200)]
execute: remove redundant assignment
Lennart Poettering [Mon, 26 Jun 2023 20:34:25 +0000 (22:34 +0200)]
execude: include RuntimeScope field in ExecParameters
Let's decouple execute.c a bit from the Manager object, let's pass the
runtime scope (i.e. the enum that discern invocation for user or system
context) as part of ExecParameters. This makes the scope available in
various functions without having to pass the Manager object in.
Lennart Poettering [Mon, 26 Jun 2023 16:55:52 +0000 (18:55 +0200)]
path tool: add some basic ansi highlighing
Lennart Poettering [Mon, 26 Jun 2023 16:55:39 +0000 (18:55 +0200)]
sd-path: bring spacing in sd-path.h and systemd-path tool in sync
Lennart Poettering [Mon, 26 Jun 2023 16:55:14 +0000 (18:55 +0200)]
sd-path: add support for XDG_STATE_HOME
Luca Boccassi [Wed, 28 Jun 2023 18:41:11 +0000 (19:41 +0100)]
Merge pull request #28178 from mrc0mmand/nss-tests
test: add a couple of tests for nss-myhostname & nss-mymachines
Luca Boccassi [Wed, 28 Jun 2023 18:40:51 +0000 (19:40 +0100)]
Merge pull request #28164 from poettering/replace-env-var-fixes
pid1: warn about unset+invalid env var names when resolving ExecStart= expressions and similar
Lennart Poettering [Wed, 28 Jun 2023 15:39:27 +0000 (17:39 +0200)]
update TODO
Lennart Poettering [Wed, 28 Jun 2023 17:18:27 +0000 (19:18 +0200)]
Merge pull request #28146 from keszybz/ansi-seq-skip
Pass ANSI sequences through when ellipsizing output
Lennart Poettering [Wed, 28 Jun 2023 17:18:03 +0000 (19:18 +0200)]
Merge pull request #27830 from 1awesomeJ/initrd
PID1: Detect battery level in initrd and if low refuse continuing to …
Frantisek Sumsal [Wed, 28 Jun 2023 07:53:13 +0000 (09:53 +0200)]
test: enable LSan for certain wrapped binaries
So we're able to detect memory leaks in our NSS modules.
An example after introducing a memory leak in nss-myhostname.c:
testsuite-71.sh[2881]: =================================================================
testsuite-71.sh[2881]: ==2880==ERROR: LeakSanitizer: detected memory leaks
testsuite-71.sh[2881]: Direct leak of 2 byte(s) in 1 object(s) allocated from:
testsuite-71.sh[2881]: #0 0x7fa28907243b in strdup (/usr/lib64/libasan.so.8.0.0+0x7243b)
testsuite-71.sh[2881]: #1 0x7fa286a7bc10 in gethostname_full ../src/basic/hostname-util.c:67
testsuite-71.sh[2881]: #2 0x7fa286a74af9 in gethostname_malloc ../src/basic/hostname-util.h:24
testsuite-71.sh[2881]: #3 0x7fa286a756f4 in _nss_myhostname_gethostbyname4_r ../src/nss-myhostname/nss-myhostname.c:79
testsuite-71.sh[2881]: #4 0x7fa288f17588 in getaddrinfo (/lib64/libc.so.6+0xf4588)
testsuite-71.sh[2881]: #5 0x7fa2890a4d93 in __interceptor_getaddrinfo.part.0 (/usr/lib64/libasan.so.8.0.0+0xa4d93)
testsuite-71.sh[2881]: #6 0x55a54b2b7159 in ahosts_keys_int.part.0 (/usr/bin/getent.orig+0x4159)
testsuite-71.sh[2881]: SUMMARY: AddressSanitizer: 2 byte(s) leaked in 1 allocation(s).
Frantisek Sumsal [Tue, 27 Jun 2023 20:34:59 +0000 (22:34 +0200)]
test: add a couple of tests for nss-mymachines
Lennart Poettering [Fri, 23 Jun 2023 19:48:05 +0000 (21:48 +0200)]
update NEWS
Lennart Poettering [Wed, 28 Jun 2023 14:53:30 +0000 (16:53 +0200)]
NEWS: add pcrs verb
Lennart Poettering [Tue, 27 Jun 2023 16:45:34 +0000 (18:45 +0200)]
analyze: add new "pcrs" verb
It shows the PCRs we know about along with their name strings and
current values.
Dmitry V. Levin [Tue, 27 Jun 2023 21:00:00 +0000 (21:00 +0000)]
pwquality: remove old built-in cracklib dictionary workaround
The first version of libpwquality with the required change was 1.4.1
released in 2019.
Luca Boccassi [Wed, 28 Jun 2023 13:51:35 +0000 (14:51 +0100)]
NEWS: typos
OMOJOLA JOSHUA [Wed, 28 Jun 2023 13:04:42 +0000 (14:04 +0100)]
PID1: detect battery level in initrd and if low refuse continuing to boot, print message and shut down.
Luca Boccassi [Wed, 28 Jun 2023 13:43:54 +0000 (14:43 +0100)]
NEWS: mention that sd_event_trim_memory can be overridden
Luca Boccassi [Wed, 28 Jun 2023 13:42:18 +0000 (14:42 +0100)]
NEWS: mention addon<efi>.efi.stub
Luca Boccassi [Wed, 28 Jun 2023 13:34:12 +0000 (14:34 +0100)]
NEWS: do not make specific promises about future development, keep it vague
Luca Boccassi [Wed, 28 Jun 2023 13:33:48 +0000 (14:33 +0100)]
NEWS: move PrivateUsers= change at the top, as it changes behaviour
Lennart Poettering [Tue, 27 Jun 2023 16:44:57 +0000 (18:44 +0200)]
NEWS: more updates for future v254
OMOJOLA JOSHUA [Wed, 28 Jun 2023 12:32:38 +0000 (13:32 +0100)]
Remove battery level check at early boot from TODO
Lennart Poettering [Wed, 28 Jun 2023 07:50:16 +0000 (09:50 +0200)]
sysv-generator: deprecate even more
Let's add a comment about the deprecation to the docs, and as comment to
the sources.
Follow-up for: #28179
Frantisek Sumsal [Tue, 27 Jun 2023 14:15:24 +0000 (16:15 +0200)]
test: add a couple of tests for nss-myhostname
cunshunxia [Mon, 26 Jun 2023 04:14:40 +0000 (04:14 +0000)]
mute the memory recursiveprot log if version of kernel is low.
Lennart Poettering [Wed, 28 Jun 2023 07:37:42 +0000 (09:37 +0200)]
Merge pull request #28179 from poettering/sysvgendeprecated
make systemd-sysv-generator even more deprecated
Yu Watanabe [Fri, 23 Jun 2023 02:16:47 +0000 (11:16 +0900)]
meson: drop doubled empty line
Zbigniew Jędrzejewski-Szmek [Sat, 24 Jun 2023 00:40:14 +0000 (18:40 -0600)]
string-util: pass ANSI sequences through unchanged
Cutting off in the middle may leave the terminal in a bad state, breaking
further output. But we don't know what a given ANSI sequence does, e.g.
ANSI_NORMAL should not be skipped. But it is also nice to keep various
sequences intact, so that if we had part of the string in blue, and we cut out
the beginning of the blue part, we still want to keep the remainder in color.
So let's just pass them through, stripping out the characters that take up
actual space.
Also, use memcpy_safe as we may end up copying zero bytes when ellipsizing at
the start/end of a string.
Fixes: #24502
This also fixes an ugliness where we would ellipsize string with ANSI
sequences too much, leading to output that was narrower on screen than the
requested length:
Starting
AAAAAAAAAAAAAAAAAAAAA .service
Starting
BBBBBBBBBBBBBBBBBBBBB .service
Starting LONG…ER.service
Co-authored-by: Jan Janssen <medhefgo@web.de>
Lennart Poettering [Tue, 27 Jun 2023 21:19:17 +0000 (23:19 +0200)]
NEWS: add comment about SysV script deprecation
Lennart Poettering [Tue, 27 Jun 2023 16:46:28 +0000 (18:46 +0200)]
sysv-generator: make sysv deprecation message a bit "louder"
Let's add a catalog entry, make the log record structured, and most
importantly, let's add warning emojis.
Just to underline that this stuff should really go away.
Lennart Poettering [Tue, 27 Jun 2023 21:15:27 +0000 (23:15 +0200)]
journalctl: read env vars that override compiled catalog database and source files
This makes it a bit easier to test catalog files without installing
systemd.
Piotr Drąg [Sun, 28 May 2023 11:35:31 +0000 (13:35 +0200)]
catalog,po: update Polish translation
Lennart Poettering [Tue, 27 Jun 2023 16:46:07 +0000 (18:46 +0200)]
tpm2: make PcrIndex an anonymous enum
It just gives names for things generally just handled as numeric
indexes, hence drop the type name, and make the enum anonymous. Nothing
is using the type name anyway.
Hoe Hao Cheng [Tue, 27 Jun 2023 13:29:57 +0000 (21:29 +0800)]
hwdb: fix volume control keys on Lenovo IdeaPad Flex 5 (14ARE05)
Daan De Meyer [Tue, 27 Jun 2023 11:54:22 +0000 (13:54 +0200)]
repart: Fix HAVE_LIBCRYPTSETUP check
Fixes #28169
Lennart Poettering [Mon, 26 Jun 2023 15:20:49 +0000 (17:20 +0200)]
env-file: when resolving env vars in command lines, collect list of unset/invalid ones
When resolving environment variables we currently silently resolve unset
and invalid environment variables to empty strings. Let's do this
slightly less silently: log about unset and invalid env vars, but still
resolve them to an empty string.
Fixes: #27036
Lennart Poettering [Mon, 26 Jun 2023 14:15:44 +0000 (16:15 +0200)]
env-util: make strv_env_get() a static inline wrapper around strv_env_get_n()
Let's make length = SIZE_MAX also mean "call strlen()".
Lennart Poettering [Mon, 26 Jun 2023 15:10:28 +0000 (17:10 +0200)]
env-util: introduce proper flags type ReplaceEnvFlags for replace_env()
Lennart Poettering [Mon, 26 Jun 2023 14:14:27 +0000 (16:14 +0200)]
env-util: add explicit size check before strndupa() in strv_env_get_n()
Let's better be safe than sorry.
Lennart Poettering [Mon, 26 Jun 2023 14:13:27 +0000 (16:13 +0200)]
env-util: modernize env_name_is_valid_n() a bit
If the size is specified as SIZE_MAX, then imply strlen().
Lennart Poettering [Mon, 26 Jun 2023 15:15:28 +0000 (17:15 +0200)]
string-util: add strextendn() helper
Luca Boccassi [Tue, 27 Jun 2023 11:38:27 +0000 (12:38 +0100)]
NEWS: copy deprecation notices for cgroup v1 and unmerged-usr/split-usr
Luca Boccassi [Tue, 27 Jun 2023 11:30:57 +0000 (12:30 +0100)]
NEWS: fix typos
Lennart Poettering [Tue, 27 Jun 2023 11:13:27 +0000 (13:13 +0200)]
start updating NEWS for 254
Steven Luo [Tue, 27 Jun 2023 08:11:38 +0000 (04:11 -0400)]
replace basename() with path_extract_filename() in resolved-resolv-conf.c (#28114)
Luca Boccassi [Mon, 26 Jun 2023 18:39:07 +0000 (19:39 +0100)]
Merge pull request #28064 from bluca/test_oomd_swap
TEST-55-OOMD: use 'stress' to create high pressure, ensure swap is set up correctly on Ubuntu CI
Lennart Poettering [Mon, 26 Jun 2023 16:02:47 +0000 (18:02 +0200)]
Merge pull request #28159 from poettering/bpf-foreign-warnings
bpf-foreign: tweaks
Lennart Poettering [Mon, 26 Jun 2023 10:52:22 +0000 (12:52 +0200)]
mount-util: use inode_type_to_string() in mode_to_inaccessible_inode()
Let's reuse the inode type name table here and shorten/simplify the code
a bit.
Antonio Alvarez Feijoo [Mon, 26 Jun 2023 14:01:13 +0000 (16:01 +0200)]
firstboot: fix typo
Mike Yuan [Fri, 23 Jun 2023 21:49:21 +0000 (05:49 +0800)]
sleep: refuse hibernation if there's no possible way to resume
Follow-up for
90efe8a6d4c0035c6a01d42805be87d99fb12f9a
Closes #19819
Frantisek Sumsal [Mon, 26 Jun 2023 13:54:01 +0000 (15:54 +0200)]
test: fix test service unit description
Daan De Meyer [Mon, 26 Jun 2023 12:08:49 +0000 (14:08 +0200)]
mkosi: Update to latest
mkosi now prebuilds the hwdb during image build which should hopefully
get rid of the CentOS 8 failures we're seeing in CI.
Lennart Poettering [Mon, 26 Jun 2023 11:16:11 +0000 (13:16 +0200)]
man: rework BPFForeign= documentation a bit
Various assorted changes, among them make clear that a missing BPF
program is not reason to abort unit activation.
Lennart Poettering [Mon, 26 Jun 2023 11:05:56 +0000 (13:05 +0200)]
bpf-foreign: add an explicit, explanatory message when reference BPF program is not loaded yet
Lennart Poettering [Mon, 26 Jun 2023 11:04:59 +0000 (13:04 +0200)]
bpf-foreign: if one program fails, still load the next
Let's make sure that if we load one program we don't prematurely fail,
and continue with the others still.
Lennart Poettering [Mon, 26 Jun 2023 11:03:39 +0000 (13:03 +0200)]
bpf-foreign: remove duplicate various occasions of duplicate logging
Yu Watanabe [Sun, 25 Jun 2023 05:53:02 +0000 (14:53 +0900)]
test: skip if ldd command not found
Prompted by #28015.
Daan De Meyer [Sun, 25 Jun 2023 11:35:15 +0000 (12:35 +0100)]
Merge pull request #28117 from yuwata/copy-follow-ups
copy: several follow ups
Luca Boccassi [Sun, 25 Jun 2023 11:01:30 +0000 (12:01 +0100)]
Merge pull request #28149 from mrc0mmand/test-machinectl-bump-container-size
test: bump the test container size to 64 MiB
김인수 [Sun, 25 Jun 2023 07:20:56 +0000 (09:20 +0200)]
po: Translated using Weblate (Korean)
Currently translated at 100.0% (193 of 193 strings)
Co-authored-by: 김인수 <simmon@nplob.com>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/master/ko/
Translation: systemd/main
Yu Watanabe [Sun, 25 Jun 2023 05:13:45 +0000 (14:13 +0900)]
Merge pull request #28147 from mrc0mmand/drop-workarounds
test: drop a couple of workarounds for recently fixed issues
Frantisek Sumsal [Sat, 24 Jun 2023 18:25:04 +0000 (20:25 +0200)]
test: bump the test container size to 64 MiB
As 32 MiB appears to be on the edge of barely enough on C8S:
[ 149.974689] testsuite-13.sh[601]: + dd if=/dev/zero of=/tmp/container.raw bs=1M count=32
[ 150.388423] testsuite-13.sh[1096]: 32+0 records in
[ 150.390721] testsuite-13.sh[1096]: 32+0 records out
[ 150.392450] testsuite-13.sh[1096]:
33554432 bytes (34 MB, 32 MiB) copied, 0.354336 s, 94.7 MB/s
[ 150.396422] testsuite-13.sh[601]: + mkfs.ext4 /tmp/container.raw
[ 150.472209] testsuite-13.sh[1097]: mke2fs 1.45.6 (20-Mar-2020)
[ 150.561303] testsuite-13.sh[1097]: Discarding device blocks: done
[ 150.565438] testsuite-13.sh[1097]: Creating filesystem with 32768 1k blocks and 8192 inodes
[ 150.568301] testsuite-13.sh[1097]: Filesystem UUID:
d8e3c43b -0f1f-4e89-8c26-
100e4a32b64f
[ 150.569777] testsuite-13.sh[1097]: Superblock backups stored on blocks:
[ 150.571135] testsuite-13.sh[1097]: 8193, 24577
[ 150.572751] testsuite-13.sh[1097]: Allocating group tables: done
[ 150.574294] testsuite-13.sh[1097]: Writing inode tables: done
[ 150.598696] testsuite-13.sh[1097]: Creating journal (4096 blocks): done
[ 150.604285] testsuite-13.sh[1097]: Writing superblocks and filesystem accounting information: done
[ 150.612309] testsuite-13.sh[601]: + mount -o loop /tmp/container.raw /tmp/mnt
[ 150.879736] testsuite-13.sh[601]: + cp -r /var/lib/machines/container1/bin ... /tmp/mnt
[ 152.347545] testsuite-13.sh[1104]: cp: cannot create directory '/tmp/mnt/var/log': No space left on device
[ 152.351739] testsuite-13.sh[1104]: cp: cannot create directory '/tmp/mnt/var/tmp': No space left on device
Frantisek Sumsal [Sat, 24 Jun 2023 18:43:26 +0000 (20:43 +0200)]
test: show the subtest name together with the failing code
To make debugging slightly easier.
François Rigault [Sat, 24 Jun 2023 08:44:54 +0000 (10:44 +0200)]
test: don't assume yum is a script
on Rawhide at the moment yum is a symlink to dnf5 which is a binary.
Luca Boccassi [Fri, 23 Jun 2023 22:19:31 +0000 (23:19 +0100)]
TEST-55-OOMD: use swap file instead of partition
The partition seems not to work on Ubuntu for some reason, use a
swap file instead
Luca Boccassi [Fri, 16 Jun 2023 23:07:32 +0000 (00:07 +0100)]
TEST-55-OOMD: use 'stress' to create high pressure
The test fails on my machine, running Debian stable, because
testsuite-55-testbloat.service just swaps and never goes over the
limit, so it's not killed. Use 'stress' instead which seems to be
able to overwhelm the swap too.
Frantisek Sumsal [Sat, 24 Jun 2023 08:35:12 +0000 (10:35 +0200)]
test: drop timeout when running portablectl
The deadlock should be resolved by #28123, so let's check if it's indeed
the case.
Frantisek Sumsal [Sat, 24 Jun 2023 08:33:14 +0000 (10:33 +0200)]
test: test the /boot endpoint under nspawn as well
Since #28144 should be now resolved by
fb0e106 .
Zbigniew Jędrzejewski-Szmek [Fri, 23 Jun 2023 23:24:11 +0000 (17:24 -0600)]
test-gunicode: add new test to show that unichar_iswide() is borked
I discovered this while looking at the tests with wide characters in the next
patch. It's something to fix, but not directly relevant to the issue of
skipping ANSI in ellipsization. We will generate output that is wider than
expected in some cases, but wide characters are used very rarely so this isn't
such a big problem.
Zbigniew Jędrzejewski-Szmek [Fri, 23 Jun 2023 17:10:42 +0000 (11:10 -0600)]
basic/utf8: make utf8_encoded_to_unichar() return length of the codepoint
Lennart Poettering [Fri, 23 Jun 2023 21:03:32 +0000 (23:03 +0200)]
Merge pull request #27330 from YHNdnzj/hibernate-resume-auto
sleep/hibernate-resume: pass hibernate location through efivar for resume without kernel cmdline
Lennart Poettering [Fri, 23 Jun 2023 21:03:15 +0000 (23:03 +0200)]
Merge pull request #27843 from yuwata/usleep_safe
time-util: introduce usleep_safe()
Lennart Poettering [Fri, 23 Jun 2023 20:53:25 +0000 (22:53 +0200)]
Merge pull request #28144 from poettering/procfs-submounts-move
pid1: when setting up a new procfs instance for a service, mount submounts from host into it
Lennart Poettering [Fri, 23 Jun 2023 14:06:29 +0000 (16:06 +0200)]
execute: don't honour PrivateNetwork() if we lack CAP_NET_ADMIN
Somehow the Linux kernel allows us to allocate a network namespace if we
possess CAP_SYS_ADMIN but doesn't allow us to configure it, unless we
also have CAP_NET_ADMIN.
Taking that into consideration let's avoid allocating a network
namespace we cannot even configure "lo" in.
This is common case if nspawn is invoked without userns and without
netns, because in that case it will have CAP_SYS_ADMIN but no
CAP_NET_ADMIN.
This also takes down a notch the messages about the automatic
downgrading. These have been LOG_WARNING so far, and I downgraded them
to LOG_NOTICE, since in an environment where CAP_NET_ADMIN is not
available this is really not something to be concerned about, but still
noticable. With that it's still more priorized than regular LOG_INFO.
Fixes: #27292
Luca Boccassi [Fri, 23 Jun 2023 18:56:28 +0000 (19:56 +0100)]
Merge pull request #28140 from mrc0mmand/more-coverage
test: test transactions with cycles
Lennart Poettering [Fri, 23 Jun 2023 16:27:45 +0000 (18:27 +0200)]
test: ensure ProtectProc=invisible retains host submounts
Lennart Poettering [Fri, 23 Jun 2023 15:50:39 +0000 (17:50 +0200)]
namespace: when mounting new proc instance, bind mount submounts of source over
Fixes: #28059
Lennart Poettering [Fri, 23 Jun 2023 15:50:17 +0000 (17:50 +0200)]
mount-util: add helper that can bind mount submounts of one dir to another
Lennart Poettering [Fri, 23 Jun 2023 15:52:31 +0000 (17:52 +0200)]
mount-util: don't claim maybe-uninitialized was false that is valid
Lennart Poettering [Fri, 23 Jun 2023 15:49:36 +0000 (17:49 +0200)]
tmpfile-util: drop spurious double newline
Zbigniew Jędrzejewski-Szmek [Fri, 23 Jun 2023 16:28:08 +0000 (10:28 -0600)]
journal-remote: fix syntax in error message
Prompted by
2411e990a480affe30bd99a2a33ab6b94a3fe5dd .
Mike Yuan [Mon, 24 Apr 2023 16:34:19 +0000 (00:34 +0800)]
hibernate-resume: support resuming through efivar HibernateLocation
Mike Yuan [Mon, 24 Apr 2023 16:32:03 +0000 (00:32 +0800)]
sleep: write hibernate location to efivar HibernateLocation
Mike Yuan [Tue, 18 Apr 2023 17:21:55 +0000 (01:21 +0800)]
hibernate-resume: rework to follow the logic of sleep.c and use
main-func.h
Preparation for #27247
Mike Yuan [Fri, 23 Jun 2023 14:52:17 +0000 (22:52 +0800)]
bootctl: log correct error about device_path_make_canonical()
Mike Yuan [Tue, 18 Apr 2023 16:09:08 +0000 (00:09 +0800)]
sleep: always write resume_offset if possible
There's no need to conditionalize this.
Setting resume_offset=0 doesn't harm, and can even help
by overriding potentially existing half-written settings.
Antonio Alvarez Feijoo [Fri, 23 Jun 2023 14:34:55 +0000 (16:34 +0200)]
man: fix references to gethostname/sethostname