diff options
author | Alexandru Vasiu <alexandru.vasiu@ni.com> | 2018-08-27 17:31:03 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-08-29 10:42:48 +0100 |
commit | 87943f2fe0d091e83061fe94a800fba9b7a44175 (patch) | |
tree | 962eb7660e03917ba1de2572c3692a243575feb2 /scripts/lib/wic/plugins | |
parent | bd369f288d3fb0f2ebee57e43eb7cd8731383788 (diff) | |
download | poky-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/lib/wic/plugins')
-rw-r--r-- | scripts/lib/wic/plugins/source/isoimage-isohybrid.py | 2 |
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 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): | |||
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) |