Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit bec761ba authored by Robert Nelson's avatar Robert Nelson
Browse files

chroot: we might not have read access to ${tempdir}/opt/scripts/, bypass


Signed-off-by: default avatarRobert Nelson <robertcnelson@gmail.com>
parent 5dd7393f
No related merge requests found
...@@ -942,11 +942,15 @@ fi ...@@ -942,11 +942,15 @@ fi
#usually a qemu failure... #usually a qemu failure...
if [ ! "x${rfs_opt_scripts}" = "x" ] ; then if [ ! "x${rfs_opt_scripts}" = "x" ] ; then
if [ ! -f ${tempdir}/opt/scripts/.git/config ] ; then #we might not have read permissions:
pwd if [ -r ${tempdir}/ ] ; then
ls -lh ${tempdir}/opt/scripts/ if [ ! -f ${tempdir}/opt/scripts/.git/config ] ; then
echo "Log: ERROR: git clone of ${rfs_opt_scripts} failed.." if [ -r ${tempdir}/opt/scripts/.git/config ] ; then
exit 1 echo "Log: ERROR: git clone of ${rfs_opt_scripts} failed.."
exit 1
fi
else
echo "Log: unable to test /opt/scripts/.git/config no read permissions, assuming git clone success"
fi fi
fi fi
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment