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:40:08 +0100 |
commit | 7c6ba368006ca94ecc0daac7b1c5e0fbe4236daf (patch) | |
tree | 877764293c3ae07c46ac793cb1cda2c85639c163 /scripts | |
parent | 2539d7334cbe9693ebe68d33c7a97872a1645510 (diff) | |
download | openembedded-core-7c6ba368006ca94ecc0daac7b1c5e0fbe4236daf.tar.gz openembedded-core-7c6ba368006ca94ecc0daac7b1c5e0fbe4236daf.tar.bz2 openembedded-core-7c6ba368006ca94ecc0daac7b1c5e0fbe4236daf.zip |
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.
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.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): 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) |