Skip to content

Commit

Permalink
charch: remove mount --make-slave
Browse files Browse the repository at this point in the history
* In Android 11, mount havent --make-slave
* They will error with:
  mount: bad /etc/fstab: No such file or directory

Signed-off-by: alanndz <[email protected]>
  • Loading branch information
alanndz committed Dec 18, 2020
1 parent 9cd213a commit 6680058
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions bin/charch
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ safe_mount_dir() {
then
mkdir -p "$guest_mount"
mount --rbind "$1" "$guest_mount"
mount --make-rslave "$guest_mount"
elif [[ -n "$2" ]]
then
mkdir -p "$guest_mount"
Expand All @@ -103,7 +102,6 @@ safe_mount_file() {
mkdir -p "${guest_mount%/*}"
[[ ! -f "$guest_mount" ]] && touch "$guest_mount"
mount --bind "$1" "$guest_mount"
mount --make-slave "$guest_mount"
fi
}

Expand Down

0 comments on commit 6680058

Please sign in to comment.