mirror of
https://git.yoctoproject.org/poky
synced 2026-03-06 15:29:40 +01:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
bd369f288d
commit
87943f2fe0
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user