fix(linux/postins): allow running on rpm-ostree environments (#4963)

This commit is contained in:
Alex Shek
2026-04-11 03:19:30 +08:00
committed by GitHub
parent d3330d1c8d
commit 379242ec99
-7
View File
@@ -4,10 +4,6 @@
echo "Loading uhid kernel module for DS5 emulation."
modprobe uhid
# Check if we're in an rpm-ostree environment
if [ ! -x "$(command -v rpm-ostree)" ]; then
echo "Not in an rpm-ostree environment, proceeding with post install steps."
# Ensure Sunshine can grab images from KMS
path_to_setcap=$(which setcap)
path_to_sunshine=$(readlink -f "$(which sunshine)")
@@ -31,6 +27,3 @@ if [ ! -x "$(command -v rpm-ostree)" ]; then
else
echo "error: udevadm not found or not executable."
fi
else
echo "rpm-ostree environment detected, skipping post install steps. Restart to apply the changes."
fi