[go: nahoru, domu]

Skip to content

Commit

Permalink
Remount more things symfollow
Browse files Browse the repository at this point in the history
Hopefully fixes dnschneid#4837 and others
  • Loading branch information
dnschneid committed Oct 26, 2022
1 parent 9eaac08 commit 97e64d9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions host-bin/enter-chroot
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,7 @@ bindmount() {
fi
mkdir -p "$target"
mount --bind $bindopts "$1" "$target"
mount -i -o 'remount,symfollow' "$target" 2>/dev/null || true
if [ -n "$3" ]; then
mount -i -o "remount,$3" "$target"
fi
Expand All @@ -336,6 +337,7 @@ tmpfsmount() {
fi
mkdir -p "$target"
mount -i -t tmpfs -o "rw${2:+,}$2" tmpfs "$target"
mount -i -o 'remount,symfollow' "$target" 2>/dev/null || true
}

# If /var/run isn't mounted, we know the chroot hasn't been started yet.
Expand Down

0 comments on commit 97e64d9

Please sign in to comment.