]> git.ipfire.org Git - thirdparty/systemd.git/commit
env-file: port write_env_file() to label_ops_pre()
authorLennart Poettering <lennart@poettering.net>
Tue, 17 Jun 2025 12:58:36 +0000 (14:58 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 18 Jun 2025 08:21:26 +0000 (10:21 +0200)
commit3e5320e27d3e5f1bbbb7eb1c98dcec970d558017
treea6e4238082f58d105d9adb42aa37771672d9321f
parent9ea5a6e7d6b93dda35f7c9147bcbd44105032d6d
env-file: port write_env_file() to label_ops_pre()

Let's make more use of label_ops_pre()/label_ops_post(), and replace
write_env_file_label() by a flag to write_env_file().

This simplifies and normalizes the code.

This also makes one relevant change: it sets the new
WRITE_ENV_FILE_LABEL flag in firstboot.c when we write locale.conf,
where we previously did not (but should have). This should address one
detail of #37857.
src/basic/env-file.c
src/basic/env-file.h
src/firstboot/firstboot.c
src/hostname/hostnamed.c
src/locale/localed-util.c
src/shared/env-file-label.c [deleted file]
src/shared/env-file-label.h [deleted file]
src/shared/locale-setup.c
src/shared/meson.build
src/test/test-env-file.c
src/test/test-fileio.c