Skip to content

Commit c9f52dc

Browse files
feat: add checks for sys and proc folders
1 parent 6e35417 commit c9f52dc

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

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

2424
fs=${root_fs_path}
2525

26+
# check for <fs>/dev
27+
[[ ! -d ${fs}/dev ]] && mkdir -p ${fs}/dev
28+
29+
# check for <fs>/sys
30+
[[ ! -d ${fs}/sys ]] && mkdir -p ${fs}/sys
31+
2632
# fix permission to write into proc
2733
[[ ! -d ${fs}/proc ]] && mkdir -p ${fs}/proc
2834
chmod 700 ${fs}/proc

0 commit comments

Comments
 (0)