Commit cdc4b5b 1 parent b9d359f commit cdc4b5b Copy full SHA for cdc4b5b
File tree 1 file changed +5
-0
lines changed
1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -883,13 +883,18 @@ mkdir_build_root() {
883
883
if test -z " $RUNNING_IN_VM " -a \! -O " $BUILD_ROOT " -a " ` stat -c %u $BUILD_ROOT ` " -ne 0 ; then
884
884
cleanup_and_exit 1 " BUILD_ROOT=$BUILD_ROOT must be owned by root. Exit..."
885
885
fi
886
+
887
+ if test -z " $RUNNING_IN_VM " -a -O " $BUILD_ROOT " -a " ` stat -c %u $BUILD_ROOT ` " -ne 0 ; then
888
+ chmod u+w " $BUILD_ROOT "
889
+ fi
886
890
else
887
891
test " $BUILD_ROOT " ! = " ${BUILD_ROOT%/* } " && mkdir -p " ${BUILD_ROOT%/* } "
888
892
if ! mkdir $BUILD_ROOT ; then
889
893
cleanup_and_exit 1 " can not create BUILD_ROOT=$BUILD_ROOT . Exit..."
890
894
fi
891
895
fi
892
896
897
+ # For VM based builds as user, the root needs to be writeable
893
898
if test ! -w " $BUILD_ROOT " ; then
894
899
cleanup_and_exit 1 " Error: BUILD_ROOT=$BUILD_ROOT not writable, try --clean."
895
900
fi
You can’t perform that action at this time.
0 commit comments