Skip to content

Commit

Permalink
Mount system-wide compatibilitytools.d for Steam
Browse files Browse the repository at this point in the history
Needed for Steam to be able to see compatibility tools (custom Proton builds, for example) installed in /usr/share/steam/compatibilitytools.d.
  • Loading branch information
Kron4ek committed Sep 12, 2021
1 parent 672a4da commit 2ed0ca2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions conty-start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ if [ $EUID = 0 ] && [ -z "$ALLOW_ROOT" ]; then
exit 1
fi

script_version="1.16"
script_version="1.16.1"

# Full path to the script
script_literal="${BASH_SOURCE[0]}"
Expand Down Expand Up @@ -43,7 +43,7 @@ mount_point="${working_dir}"/mnt
# a problem with mounting the image due to an incorrectly calculated offset.

# The size of this script
scriptsize=29094
scriptsize=29191

# The size of the utils.tar.gz archive
# utils.tar.gz contains bwrap, squashfuse and dwarfs binaries
Expand Down Expand Up @@ -635,6 +635,7 @@ run_bwrap () {
--bind-try /media /media \
--bind-try /run /run \
--bind-try /var /var \
--ro-bind-try /usr/share/steam/compatibilitytools.d /usr/share/steam/compatibilitytools.d \
--ro-bind-try /etc/resolv.conf /etc/resolv.conf \
--ro-bind-try /etc/hosts /etc/hosts \
--ro-bind-try /etc/nsswitch.conf /etc/nsswitch.conf \
Expand Down
1 change: 1 addition & 0 deletions create-arch-bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ rm -f "${bootstrap}"/var/cache/pacman/pkg/*
# This is needed for bubblewrap to be able to bind real files/dirs to them
# later in the conty-start.sh script
mkdir "${bootstrap}"/media
mkdir -p "${bootstrap}"/usr/share/steam/compatibilitytools.d
touch "${bootstrap}"/etc/asound.conf
touch "${bootstrap}"/etc/localtime
chmod 755 "${bootstrap}"/root
Expand Down

0 comments on commit 2ed0ca2

Please sign in to comment.