Skip to content

Commit 3ab4291

Browse files
committed
Fix some typo
1 parent 18af329 commit 3ab4291

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

docs/adding_extra_mounts.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ In case you want to bind directories directly from host's file system to proot c
44

55
## How to apply
66

7-
You can use the traditional `proot-distro` method to use `--bind` argument with paths to bind in syntax `<path in host>:<path to bind in container>` before the name of the distribution. Or custom configuration file named `udroid_proot_mounts` in container root ( at `\`) with paths to bind in format `<path in host>:<path to bind in container>`
7+
You can use the traditional `proot-distro` method to use `--bind` argument with paths to bind in syntax `<path in host>:<path to bind in container>` before the name of the distribution. Or custom configuration file named `udroid_proot_mounts` in container root ( at `/`) with paths to bind in format `<path in host>:<path to bind in container>`
88

99
### By using argument
1010

@@ -19,7 +19,7 @@ udroid -l --bind /sdcard:/sdcard jammy:raw
1919
2020
### By creating config file
2121

22-
Those binds are written in a file named `udroid_proot_mounts` in the root of the container (at `\`).
22+
Those binds are written in a file named `udroid_proot_mounts` in the root of the container (at `/`).
2323

2424
> Note that for some udroid builds there may be pre-defined custom mounts points in `udroid_proot_mounts` file. If you want to add your own mounts, you should add them to the end of the file. ( carefull while using redirections to overwrite the file, you may lose the pre-defined mounts )
2525

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,9 @@ p_login() {
118118
PATH=/usr/local/sbin:/usr/local/bin:/bin:/usr/bin:/sbin:/usr/sbin \
119119
TERM=$TERM \
120120
LANG=C.UTF-8 \
121-
/bin/su -l $container_user \
122-
$cmd_string
121+
/bin/su \
122+
-l $container_user \
123+
-c "$cmd_string"
123124

124125
}
125126

0 commit comments

Comments
 (0)