File 0004-firstboot-make-sure-labelling-is-enabled.patch of Package systemd

From 8c352065b5d7e94b51910b6fa41e030722cb653c Mon Sep 17 00:00:00 2001
From: Lennart Poettering <lennart@poettering.net>
Date: Wed, 18 Jun 2025 10:29:15 +0200
Subject: [PATCH 4/4] 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 191da96c9a..5d234ab5e6 100644
--- a/src/firstboot/firstboot.c
+++ b/src/firstboot/firstboot.c
@@ -28,6 +28,7 @@
 #include "hostname-util.h"
 #include "kbd-util.h"
 #include "label.h"
+#include "label-util.h"
 #include "libcrypt-util.h"
 #include "locale-util.h"
 #include "lock-util.h"
@@ -1624,6 +1625,10 @@ static int run(int argc, char *argv[]) {
                 }
         }
 
+        r = mac_init();
+        if (r < 0)
+                return r;
+
         if (arg_image) {
                 assert(!arg_root);
 
-- 
2.43.0

openSUSE Build Service is sponsored by