File tree Expand file tree Collapse file tree 3 files changed +11
-0
lines changed
Expand file tree Collapse file tree 3 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -84,6 +84,7 @@ options:
8484 --name: Allows the user to specify a custom name for the filesystem to install
8585 --bind or -b: Allows the user to specify extra mount points for the filesystem.
8686 --isolated: Creates an isolated environment for the filesystem.
87+
8788 --fix-low-ports: Fixes low ports for the filesystem.
8889 --no-shared-tmp: Disables shared tmp for the filesystem.
8990 --no-link2symlink: Disables link2symlink for the filesystem.
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ help_login() {
1717 echo " --name: Allows the user to specify a custom name for the filesystem to install"
1818 echo " --bind or -b: Allows the user to specify extra mount points for the filesystem."
1919 echo " --isolated: Creates an isolated environment for the filesystem."
20+ echo " --ashmem-memfd | --memfd enable support for memfd emulation through ashmem ( experimental )"
2021 echo " --fix-low-ports: Fixes low ports for the filesystem."
2122 echo " --no-shared-tmp: Disables shared tmp for the filesystem."
2223 echo " --no-link2symlink: Disables link2symlink for the filesystem."
Original file line number Diff line number Diff line change @@ -280,6 +280,7 @@ login() {
280280 local no_cap_last_cap=false
281281 local no_pulseserver=false
282282 local no_android_shmem=false
283+ local ashmem_memfd=false
283284 local no_fake_root_id=false
284285 local fix_low_ports=false
285286 local make_host_tmp_shared=true # its better to run with shared tmp
@@ -369,6 +370,9 @@ login() {
369370 --no-android-shmem)
370371 no_android_shmem=true; shift
371372 ;;
373+ --ashmem-memfd | --memfd)
374+ ashmem_memfd=true; shift
375+ ;;
372376 --no-kill-on-exit)
373377 no_kill_on_exit=true; shift
374378 ;;
@@ -627,6 +631,11 @@ login() {
627631 --exit-idle-time=-1
628632 fi
629633
634+ # android shmem memfd
635+ if $ashmem_memfd ; then
636+ set -- " --ashmem-memfd" " $@ "
637+ fi
638+
630639 exec proot " $@ "
631640 else
632641 ELOG " ERROR: $distro not found or installed"
You can’t perform that action at this time.
0 commit comments