summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorAlexandru Vasiu <alexandru.vasiu@ni.com>2018-08-27 14:31:03 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-08-29 09:42:48 (GMT)
commit87943f2fe0d091e83061fe94a800fba9b7a44175 (patch)
tree962eb7660e03917ba1de2572c3692a243575feb2 /scripts
parentbd369f288d3fb0f2ebee57e43eb7cd8731383788 (diff)
downloadpoky-87943f2fe0d091e83061fe94a800fba9b7a44175.tar.gz
isoimage-isohybrid: Fix creating initrd.cpio
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. (From OE-Core rev: 7c6ba368006ca94ecc0daac7b1c5e0fbe4236daf) Signed-off-by: Alexandru Vasiu <alexandru.vasiu@ni.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/lib/wic/plugins/source/isoimage-isohybrid.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/lib/wic/plugins/source/isoimage-isohybrid.py b/scripts/lib/wic/plugins/source/isoimage-isohybrid.py
index 0d4f50d..4a0a57e 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):
191 else: 191 else:
192 raise WicError("Couldn't find or build initrd, exiting.") 192 raise WicError("Couldn't find or build initrd, exiting.")
193 193
194 exec_cmd("cd %s && find . | cpio -o -H newc -R +0:+0 >./initrd.cpio " \ 194 exec_cmd("cd %s && find . | cpio -o -H newc -R root:root >./initrd.cpio " \
195 % initrd_dir, as_shell=True) 195 % initrd_dir, as_shell=True)
196 exec_cmd("gzip -f -9 -c %s/initrd.cpio > %s" \ 196 exec_cmd("gzip -f -9 -c %s/initrd.cpio > %s" \
197 % (cr_workdir, initrd), as_shell=True) 197 % (cr_workdir, initrd), as_shell=True)