Skip to content

Commit 681b8cd

Browse files
resolv permissions to write into proc
1 parent 49115b4 commit 681b8cd

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

udroid/src/proot-utils/proot-fixes.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ PROG_PRINT() {
2323

2424
fs=${root_fs_path}
2525

26+
# fix permission to write into proc
27+
[[ ! -d ${fs}/proc ]] && mkdir -p ${fs}/proc
28+
chmod 700 ${fs}/proc
29+
2630
# /proc/version
2731
PROG_PRINT "writing fake /proc/version"
2832
cat << EOF > ${fs}/proc/.version

udroid/src/udroid.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ fetch_distro_data() {
2222
gum_spin dot "Fetching distro data.." curl -L -s -o $_path $URL || {
2323
ELOG "[${0}] failed to fetch distro data"
2424
}
25-
25+
2626
if [[ -f $_path ]]; then
2727
LOG "set distro_data to $_path"
2828
distro_data=$_path

0 commit comments

Comments
 (0)