From 611bb28dc34b0df2b52c4fbfc09008be3e7538a9 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 18 Jun 2025 10:29:15 +0200 Subject: [PATCH] firstboot: make sure labelling is enabled Preparation to address #37857. --- src/firstboot/firstboot.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/firstboot/firstboot.c b/src/firstboot/firstboot.c index 6bfc2dc1275..a7654ca6159 100644 --- a/src/firstboot/firstboot.c +++ b/src/firstboot/firstboot.c @@ -29,6 +29,7 @@ #include "image-policy.h" #include "kbd-util.h" #include "label.h" +#include "label-util.h" #include "libcrypt-util.h" #include "locale-util.h" #include "lock-util.h" @@ -1685,6 +1686,10 @@ static int run(int argc, char *argv[]) { } } + r = mac_init(); + if (r < 0) + return r; + if (arg_image) { assert(!arg_root); -- 2.47.3