Skip to content

Commit 2541f28

Browse files
authored
Merge pull request #32477 from DaanDeMeyer/fixes
Various fixes
2 parents 8e0bd95 + aa976d8 commit 2541f28

File tree

50 files changed

+110
-151
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+110
-151
lines changed

meson.build

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,7 @@ meson_build_sh = find_program('tools/meson-build.sh')
321321
want_tests = get_option('tests')
322322
slow_tests = want_tests != 'false' and get_option('slow-tests')
323323
fuzz_tests = want_tests != 'false' and get_option('fuzz-tests')
324+
integration_tests = want_tests != 'false' and get_option('integration-tests')
324325
install_tests = want_tests != 'false' and get_option('install-tests')
325326

326327
if add_languages('cpp', native : false, required : fuzzer_build)
@@ -2574,6 +2575,18 @@ endif
25742575
#####################################################################
25752576

25762577
mkosi = find_program('mkosi', required : false)
2578+
if integration_tests and not mkosi.found()
2579+
error('Could not find mkosi which is required to run the integration tests')
2580+
endif
2581+
2582+
mkosi_depends = public_programs
2583+
2584+
foreach executable : ['systemd-journal-remote', 'systemd-measure']
2585+
if executable in executables_by_name
2586+
mkosi_depends += [executables_by_name[executable]]
2587+
endif
2588+
endforeach
2589+
25772590
if mkosi.found()
25782591
custom_target('mkosi',
25792592
build_always_stale : true,
@@ -2588,13 +2601,9 @@ if mkosi.found()
25882601
'--build-dir', meson.current_build_dir() / 'mkosi.builddir',
25892602
'--force',
25902603
'--debug',
2591-
'build'
2592-
],
2593-
depends : public_programs + [
2594-
executables_by_name['systemd-journal-remote'],
2595-
executables_by_name['systemd-measure'],
2596-
ukify,
2604+
'build',
25972605
],
2606+
depends : mkosi_depends,
25982607
)
25992608
endif
26002609

mkosi.images/system/mkosi.conf.d/10-arch/mkosi.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ Packages=
4040
quota-tools
4141
sbsigntools
4242
shadow
43+
squashfs-tools
4344
tpm2-tss
4445
vim
4546

mkosi.images/system/mkosi.conf.d/10-centos-fedora/mkosi.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ Packages=
5252
selinux-policy
5353
selinux-policy-targeted
5454
setools-console
55+
squashfs-tools
5556
util-linux
5657
vim-common
5758

mkosi.images/system/mkosi.conf.d/10-debian-ubuntu/mkosi.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ Packages=
6161
psmisc
6262
quota
6363
sbsigntool
64+
squashfs-tools
6465
tzdata
6566
xxd
6667

mkosi.images/system/mkosi.conf.d/10-opensuse/mkosi.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ Packages=
6161
sbsigntools
6262
sed
6363
shadow
64+
squashfs
6465
timezone
6566
user(bin)
6667
user(daemon)

mkosi.images/system/mkosi.extra/usr/lib/systemd/system-preset/00-mkosi.preset

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ enable dbus-broker.service
1919
enable systemd-networkd.service
2020
enable systemd-networkd-wait-online.service
2121

22+
# systemd-resolved is disable by default on CentOS so make sure it is enabled.
23+
enable systemd-resolved.service
24+
2225
# We install dnf in some images but it's only going to be used rarely,
2326
# so let's not have dnf create its cache.
2427
disable dnf-makecache.*

src/ac-power/ac-power.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,7 @@ static int run(int argc, char *argv[]) {
8383
/* This is mostly intended to be used for scripts which want
8484
* to detect whether AC power is plugged in or not. */
8585

86-
log_parse_environment();
87-
log_open();
86+
log_setup();
8887

8988
r = parse_argv(argc, argv);
9089
if (r <= 0)

src/ask-password/ask-password.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -226,9 +226,7 @@ static int run(int argc, char *argv[]) {
226226
usec_t timeout;
227227
int r;
228228

229-
log_show_color(true);
230-
log_parse_environment();
231-
log_open();
229+
log_setup();
232230

233231
r = parse_argv(argc, argv);
234232
if (r <= 0)

src/boot/bless-boot.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -499,8 +499,7 @@ static int run(int argc, char *argv[]) {
499499

500500
int r;
501501

502-
log_parse_environment();
503-
log_open();
502+
log_setup();
504503

505504
r = parse_argv(argc, argv);
506505
if (r <= 0)

src/boot/boot-check-no-failures.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,7 @@ static int run(int argc, char *argv[]) {
7979
uint32_t n;
8080
int r;
8181

82-
log_parse_environment();
83-
log_open();
82+
log_setup();
8483

8584
r = parse_argv(argc, argv);
8685
if (r <= 0)

0 commit comments

Comments
 (0)