Luca Boccassi
f18886fe17
Merge pull request #28164 from poettering/replace-env-var-fixes
...
pid1: warn about unset+invalid env var names when resolving ExecStart= expressions and similar
2023-06-28 19:40:51 +01:00
Lennart Poettering
d1797c42cc
update TODO
2023-06-28 19:22:57 +02:00
Lennart Poettering
4d8eca03e5
Merge pull request #28146 from keszybz/ansi-seq-skip
...
Pass ANSI sequences through when ellipsizing output
2023-06-28 19:18:27 +02:00
Lennart Poettering
5e4c66450c
Merge pull request #27830 from 1awesomeJ/initrd
...
PID1: Detect battery level in initrd and if low refuse continuing to …
2023-06-28 19:18:03 +02:00
Lennart Poettering
76982d8944
update NEWS
2023-06-28 16:56:53 +02:00
Lennart Poettering
005bfe4e01
NEWS: add pcrs verb
2023-06-28 16:53:30 +02:00
Lennart Poettering
f70c90f5ca
analyze: add new "pcrs" verb
...
It shows the PCRs we know about along with their name strings and
current values.
2023-06-28 16:50:50 +02:00
Dmitry V. Levin
51c425dc93
pwquality: remove old built-in cracklib dictionary workaround
...
The first version of libpwquality with the required change was 1.4.1
released in 2019.
2023-06-28 15:56:38 +02:00
Luca Boccassi
b1ee7474f8
NEWS: typos
2023-06-28 14:51:35 +01:00
OMOJOLA JOSHUA
e3d4148d50
PID1: detect battery level in initrd and if low refuse continuing to boot, print message and shut down.
2023-06-28 14:48:54 +01:00
Luca Boccassi
198aff7663
NEWS: mention that sd_event_trim_memory can be overridden
2023-06-28 14:43:54 +01:00
Luca Boccassi
acf678deca
NEWS: mention addon<efi>.efi.stub
2023-06-28 14:42:18 +01:00
Luca Boccassi
02f5a2ffab
NEWS: do not make specific promises about future development, keep it vague
2023-06-28 14:34:12 +01:00
Luca Boccassi
e6da1e04c6
NEWS: move PrivateUsers= change at the top, as it changes behaviour
2023-06-28 14:33:48 +01:00
Lennart Poettering
d7b3c52cb1
NEWS: more updates for future v254
2023-06-28 15:21:49 +02:00
OMOJOLA JOSHUA
67ced44302
Remove battery level check at early boot from TODO
2023-06-28 13:32:38 +01:00
Lennart Poettering
5d97475b27
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
2023-06-28 10:39:06 +01:00
cunshunxia
556c674d6e
mute the memory recursiveprot log if version of kernel is low.
2023-06-28 10:59:00 +02:00
Lennart Poettering
1db8c86196
Merge pull request #28179 from poettering/sysvgendeprecated
...
make systemd-sysv-generator even more deprecated
2023-06-28 09:37:42 +02:00
Yu Watanabe
16e1e4b3e7
meson: drop doubled empty line
2023-06-27 22:34:25 -06:00
Zbigniew Jędrzejewski-Szmek
cb558ab222
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>
2023-06-27 16:55:02 -06:00
Lennart Poettering
7474097d51
NEWS: add comment about SysV script deprecation
2023-06-27 23:22:26 +02:00
Lennart Poettering
f4d4ca6e2b
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.
2023-06-27 23:21:03 +02:00
Lennart Poettering
fba84e121b
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.
2023-06-27 23:20:15 +02:00
Piotr Drąg
b6a3fe2666
catalog,po: update Polish translation
2023-06-27 21:53:32 +01:00
Lennart Poettering
a3e54ddf49
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.
2023-06-27 22:14:09 +02:00
Hoe Hao Cheng
123c0e24dd
hwdb: fix volume control keys on Lenovo IdeaPad Flex 5 (14ARE05)
2023-06-27 20:26:08 +01:00
Daan De Meyer
465261bfb0
repart: Fix HAVE_LIBCRYPTSETUP check
...
Fixes #28169
2023-06-27 16:06:48 +02:00
Lennart Poettering
f331434d13
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
2023-06-27 13:49:46 +02:00
Lennart Poettering
7658139c01
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()".
2023-06-27 13:49:46 +02:00
Lennart Poettering
d5ce24c99e
env-util: introduce proper flags type ReplaceEnvFlags for replace_env()
2023-06-27 13:49:46 +02:00
Lennart Poettering
10930fbb1c
env-util: add explicit size check before strndupa() in strv_env_get_n()
...
Let's better be safe than sorry.
2023-06-27 13:49:46 +02:00
Lennart Poettering
2b07147e9c
env-util: modernize env_name_is_valid_n() a bit
...
If the size is specified as SIZE_MAX, then imply strlen().
2023-06-27 13:49:46 +02:00
Lennart Poettering
6b9f600772
string-util: add strextendn() helper
2023-06-27 13:49:46 +02:00
Luca Boccassi
22900fa34b
NEWS: copy deprecation notices for cgroup v1 and unmerged-usr/split-usr
2023-06-27 12:38:27 +01:00
Luca Boccassi
aae9a150d1
NEWS: fix typos
2023-06-27 12:30:57 +01:00
Lennart Poettering
b0f0218553
start updating NEWS for 254
2023-06-27 13:17:37 +02:00
Steven Luo
b89531159a
replace basename() with path_extract_filename() in resolved-resolv-conf.c ( #28114 )
2023-06-27 10:11:38 +02:00
Luca Boccassi
8da88af877
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
2023-06-26 19:39:07 +01:00
Lennart Poettering
ccfeda0268
Merge pull request #28159 from poettering/bpf-foreign-warnings
...
bpf-foreign: tweaks
2023-06-26 18:02:47 +02:00
Lennart Poettering
11e2be3a19
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.
2023-06-26 17:24:35 +02:00
Antonio Alvarez Feijoo
c7c1edd680
firstboot: fix typo
2023-06-26 17:24:02 +02:00
Mike Yuan
7470b80763
sleep: refuse hibernation if there's no possible way to resume
...
Follow-up for 90efe8a6d4
Closes #19819
2023-06-26 17:23:36 +02:00
Daan De Meyer
12ab9ae8c6
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.
2023-06-26 14:14:40 +01:00
Lennart Poettering
a27e6fb71b
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.
2023-06-26 13:16:11 +02:00
Lennart Poettering
228459f5d7
bpf-foreign: add an explicit, explanatory message when reference BPF program is not loaded yet
2023-06-26 13:05:56 +02:00
Lennart Poettering
f81450f241
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.
2023-06-26 13:04:59 +02:00
Lennart Poettering
d512831a3e
bpf-foreign: remove duplicate various occasions of duplicate logging
2023-06-26 13:03:39 +02:00
Yu Watanabe
9f4522591e
test: skip if ldd command not found
...
Prompted by #28015 .
2023-06-26 11:27:08 +01:00
Daan De Meyer
846f5acdf2
Merge pull request #28117 from yuwata/copy-follow-ups
...
copy: several follow ups
2023-06-25 12:35:15 +01:00