Skip to content

Commit

Permalink
chore: remove steam layering option (secureblue#709)
Browse files Browse the repository at this point in the history
  • Loading branch information
RoyalOughtness authored Dec 28, 2024
1 parent 997f37a commit 630f343
Showing 1 changed file with 2 additions and 29 deletions.
31 changes: 2 additions & 29 deletions files/justfiles/utilities.just
Original file line number Diff line number Diff line change
Expand Up @@ -184,16 +184,14 @@ install-steam:
echo "Please select a method to install steam:"
echo " 1) Flatpak - will install the steam flatpak from flathub-unverified"
echo " 2) Distrobox - will set up steam via the bazzite-arch distrobox image"
echo " 3) Native layer - will install the steam rpm from negativo17"
while [[ "$valid_input" == "0" ]]; do
read -p "Selection [1-3]: " method_selection
if [[ "$method_selection" == [123]* ]]; then
read -p "Selection [1-2]: " method_selection
if [[ "$method_selection" == [12]* ]]; then
valid_input="1"
else
echo "That is not a valid selection."
fi
done
valid_input="0"

echo "" # blank space
case "$method_selection" in
Expand Down Expand Up @@ -224,22 +222,6 @@ install-steam:
echo "Exporting Steam from bazzite-arch distrobox."
distrobox-enter -n bazzite-arch -- distrobox-export --app steam
;;
3)
echo "Native layer method selected."
if [ -n "$(ujust semodule-check harden_userns)" ] ; then
echo "Steam rpm requires that secureblue's harden_userns module be disabled"
echo "Please run 'ujust toggle-unconfined-domain-userns-creation'"
unconfined_userns_now=""
read -p "Would you like to run 'ujust toggle-unconfined-domain-userns-creation' now? [Y/n] " unconfined_userns_now
unconfined_userns_now=${unconfined_userns_now:-y}
if [[ "$unconfined_userns_now" == [Yy]* ]]; then
echo "Running 'ujust toggle-unconfined-domain-userns-creation'"
ujust toggle-unconfined-domain-userns-creation
fi
fi
echo "Installing Steam."
rpm-ostree install steam
;;
esac

echo "Steam requires support for 32-bit processes/syscalls."
Expand All @@ -249,15 +231,6 @@ install-steam:
else
echo "Do not set the 'ia32_emulation=0' kernel argument."
fi
if [[ "$method_selection" == 3 ]]; then
echo "Steam native layer installed. Please reboot to access the new deployment"
reboot_now=""
read -p "Would you like to reboot now? [y/N] " reboot_now
if [[ "$reboot_now" == [Yy]* ]]; then
echo "Rebooting"
systemctl reboot
fi
fi

# Rebase to a different secureblue Desktop Environment/Atomic Desktop
rebase-secureblue:
Expand Down

0 comments on commit 630f343

Please sign in to comment.