Blob Blame History Raw
From: Cole Robinson <>
Date: Wed, 3 Apr 2019 18:07:12 -0400
Subject: [PATCH virt-manager] initrdinject: Force added files to be owned as
 root (bz 1686464)

systemd in fedora30 has some new security restriction about non-root
owned directories. Initrd inject would tickle this because the cpio
archive would cause the root dir in the initrd to be owned by the
uid that launched virt-install.

Pass --owner=+0:+0 to cpio to force root ownership

Suggested-by: James Szinger <>
(cherry picked from commit c6b5f22fa61d87557b5fab23be080073d2f7906e)
 virtinst/ | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/virtinst/ b/virtinst/
index 9a09f20c..4032f9ba 100644
--- a/virtinst/
+++ b/virtinst/
@@ -31,7 +31,7 @@ def perform_initrd_injections(initrd, injections, scratchdir):
     cpio_proc = subprocess.Popen(['cpio', '--create', '--null', '--quiet',
-                                  '--format=newc'],
+                                  '--format=newc', '--owner=+0:+0'],