pmb.parse.bootimg: make boot.img readable for all after copying (MR 2105)
This prevents rare errors when source file didn't have the correct permissions.
This commit is contained in:
parent
bf02c72da7
commit
374d7379ab
|
@ -87,7 +87,9 @@ def bootimg(args, path):
|
|||
bootimg_path = f"{args.work}/chroot_native{temp_path}/boot.img"
|
||||
|
||||
# Copy the boot.img into the chroot temporary folder
|
||||
# and make it world readable
|
||||
pmb.helpers.run.root(args, ["cp", path, bootimg_path])
|
||||
pmb.helpers.run.root(args, ["chmod", "a+r", bootimg_path])
|
||||
|
||||
file_output = pmb.chroot.user(args, ["file", "-b", "boot.img"],
|
||||
working_dir=temp_path,
|
||||
|
|
Loading…
Reference in New Issue