deploy: Fix overriding kernel args for staged deployments
authorColin Walters <walters@verbum.org>
Mon, 9 Jul 2018 16:22:10 +0000 (12:22 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Mon, 9 Jul 2018 18:04:57 +0000 (18:04 +0000)
This is the inverse of https://github.com/ostreedev/ostree/pull/1558
aka commits cadece6c4f398ca61d21e497bd6e3fbb549f9cf6 and
3358698c86d80821d81443c906621c92672f99fb

Needed to fix `rpm-ostree kargs` test suite with default staging; skipping
a test here for now as eventually what we'll do is turn on the rpm-ostree
suite fully here.

Closes: #1677
Approved by: jlebon

src/libostree/ostree-sysroot-deploy.c

index a4387ab264b3c4a423480baa6ced4620c90664f1..8198e191eaa5e7eaf22b1cfc996b6cbc36551be5 100644 (file)
@@ -2853,7 +2853,7 @@ _ostree_sysroot_finalize_staged (OstreeSysroot *self,
   if (!glnx_unlinkat (AT_FDCWD, _OSTREE_SYSROOT_RUNSTATE_STAGED, 0, error))
     return FALSE;
 
-  if (!sysroot_finalize_deployment (self, self->staged_deployment, NULL, merge_deployment,
+  if (!sysroot_finalize_deployment (self, self->staged_deployment, kargs, merge_deployment,
                                     cancellable, error))
     return FALSE;