Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 1/3] isoimage-isohybrid: Fix creating initrd.cpio
@ 2018-08-27 14:31 Alexandru Vasiu
  2018-08-27 14:31 ` [PATCH 2/3] isoimage-isohybrid: Fix variable names Alexandru Vasiu
  2018-08-27 14:31 ` [PATCH 3/3] image_types_wic: Add variable WIC_EXTENSION Alexandru Vasiu
  0 siblings, 2 replies; 5+ messages in thread
From: Alexandru Vasiu @ 2018-08-27 14:31 UTC (permalink / raw)
  To: openembedded-core

Only bsdcpio works with numbers for option -R to specify user:group,
while GNU cpio doesn't. Debian use GNU cpio so without this change,
you cannot create ISO images without installing bsdcpio.

Signed-off-by: Alexandru Vasiu <alexandru.vasiu@ni.com>
---
 scripts/lib/wic/plugins/source/isoimage-isohybrid.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/lib/wic/plugins/source/isoimage-isohybrid.py b/scripts/lib/wic/plugins/source/isoimage-isohybrid.py
index 0d4f50d1f7..4a0a57ef9e 100644
--- a/scripts/lib/wic/plugins/source/isoimage-isohybrid.py
+++ b/scripts/lib/wic/plugins/source/isoimage-isohybrid.py
@@ -191,7 +191,7 @@ class IsoImagePlugin(SourcePlugin):
             else:
                 raise WicError("Couldn't find or build initrd, exiting.")
 
-            exec_cmd("cd %s && find . | cpio -o -H newc -R +0:+0 >./initrd.cpio " \
+            exec_cmd("cd %s && find . | cpio -o -H newc -R root:root >./initrd.cpio " \
                     % initrd_dir, as_shell=True)
             exec_cmd("gzip -f -9 -c %s/initrd.cpio > %s" \
                     % (cr_workdir, initrd), as_shell=True)
-- 
2.18.0



^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-08-28  9:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-27 14:31 [PATCH 1/3] isoimage-isohybrid: Fix creating initrd.cpio Alexandru Vasiu
2018-08-27 14:31 ` [PATCH 2/3] isoimage-isohybrid: Fix variable names Alexandru Vasiu
2018-08-27 14:31 ` [PATCH 3/3] image_types_wic: Add variable WIC_EXTENSION Alexandru Vasiu
2018-08-27 23:00   ` Richard Purdie
2018-08-28  9:17     ` Ioan-Adrian Ratiu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox