mirror of
https://github.com/Kron4ek/Conty
synced 2024-12-27 09:58:25 +01:00
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.
This commit is contained in:
parent
672a4da42f
commit
2ed0ca2ead
2 changed files with 4 additions and 2 deletions
|
@ -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 \
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue