Skip to content
This repository has been archived by the owner on Oct 1, 2021. It is now read-only.

Commit

Permalink
do not mount binderfs if /dev/binder exists
Browse files Browse the repository at this point in the history
Signed-off-by: Akihiro Suda <[email protected]>
  • Loading branch information
AkihiroSuda committed Apr 10, 2020
1 parent 81294c4 commit f6de7de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/anbox-container-manager.service
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ Wants=network.target
[Service]
ExecStartPre=/sbin/modprobe ashmem_linux
ExecStartPre=/sbin/modprobe binder_linux
ExecStartPre=mkdir -p /dev/binderfs
ExecStartPre=mount -t binder none /dev/binderfs
# newer kernel uses /dev/binderfs directory instead of /dev/binder file
ExecStartPre=sh -exc "[ -f /dev/binder ] || (mkdir -p /dev/binderfs && mount -t binder none /dev/binderfs)"
ExecStartPre=/usr/local/share/anbox/anbox-bridge.sh start
ExecStart=/usr/local/bin/anbox container-manager --daemon --data-path=/var/lib/anbox --android-image=/android.img --use-rootfs-overlay
ExecStopPost=/usr/local/share/anbox/anbox-bridge.sh stop
Expand Down

0 comments on commit f6de7de

Please sign in to comment.