From 374d7379aba675f404dfb79b41095fca3c98eb52 Mon Sep 17 00:00:00 2001 From: Alexey Min Date: Mon, 13 Sep 2021 14:34:18 +0300 Subject: [PATCH] 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. --- pmb/parse/bootimg.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pmb/parse/bootimg.py b/pmb/parse/bootimg.py index ff9257e5..a713d47d 100644 --- a/pmb/parse/bootimg.py +++ b/pmb/parse/bootimg.py @@ -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,