deploy: Ensure sysroot is initialized for kargs in place
authorColin Walters <walters@verbum.org>
Wed, 13 Jul 2022 19:32:05 +0000 (15:32 -0400)
committerColin Walters <walters@verbum.org>
Wed, 13 Jul 2022 19:32:05 +0000 (15:32 -0400)
Even without a mount namespace set up.

src/libostree/ostree-sysroot-deploy.c

index a9d41258f820f7121bda68292f42961d6a992c86..47c70c43662ff41f71a36d5b213820784d41b795 100644 (file)
@@ -3606,6 +3606,10 @@ ostree_sysroot_deployment_set_kargs_in_place (OstreeSysroot     *self,
                                               GCancellable      *cancellable,
                                               GError           **error)
 {
+  if (!ostree_sysroot_initialize (self, error))
+    return FALSE;
+  if (!_ostree_sysroot_ensure_boot_fd (self, error))
+    return FALSE;
   if (!_ostree_sysroot_ensure_writable (self, error))
     return FALSE;