From 2ed0ca2eada30132606319578aec95314c8a4407 Mon Sep 17 00:00:00 2001 From: Kron4ek Date: Sun, 12 Sep 2021 15:40:14 +0500 Subject: [PATCH] Mount system-wide compatibilitytools.d for Steam Needed for Steam to be able to see compatibility tools (custom Proton builds, for example) installed in /usr/share/steam/compatibilitytools.d. --- conty-start.sh | 5 +++-- create-arch-bootstrap.sh | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/conty-start.sh b/conty-start.sh index f031b73..dac1187 100755 --- a/conty-start.sh +++ b/conty-start.sh @@ -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]}" @@ -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 @@ -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 \ diff --git a/create-arch-bootstrap.sh b/create-arch-bootstrap.sh index e5c6d5b..cb10656 100755 --- a/create-arch-bootstrap.sh +++ b/create-arch-bootstrap.sh @@ -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