Skip to content

Commit

Permalink
fix: Remove unneeded file checks from hardware setup
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleGospo committed Mar 15, 2024
1 parent 200543c commit 7133fc7
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions system_files/desktop/shared/usr/libexec/bazzite-hardware-setup
Expand Up @@ -241,33 +241,6 @@ if grep -qv "graphical.target" <<< "$(systemctl get-default)"; then
systemctl set-default graphical.target
fi

# Ensure files needed for topgrade are always present
if [[ ! -f "/etc/ublue-os/topgrade.toml" ]]; then
mkdir -p "/etc/ublue-os"
cp "/usr/etc/ublue-os/topgrade.toml" "/etc/ublue-os/topgrade.toml"
fi

if [[ ! -f "/etc/ublue-update/topgrade-system.toml" ]]; then
mkdir -p "/etc/ublue-update"
cp "/usr/etc/ublue-update/topgrade-system.toml" "/etc/ublue-update/topgrade-system.toml"
fi

if [[ ! -f "/etc/ublue-update/topgrade-user.toml" ]]; then
mkdir -p "/etc/ublue-update"
cp "/usr/etc/ublue-update/topgrade-user.toml" "/etc/ublue-update/topgrade-user.toml"
fi

if [[ ! -f "/etc/ublue-update/ublue-update.toml" ]]; then
mkdir -p "/etc/ublue-update"
cp "/usr/etc/ublue-update/ublue-update.toml" "/etc/ublue-update/ublue-update.toml"
fi

if [[ ! -f "/etc/ublue-update.d/system/00-system-update.py" ]]; then
mkdir -p "/etc/ublue-update.d/system"
cp "/usr/etc/ublue-update.d/system/00-system-update.py" "/etc/ublue-update.d/system/00-system-update.py"
fi


mkdir -p /etc/bazzite
echo $HWS_VER > $HWS_VER_FILE
echo $IMAGE_NAME > $KNOWN_IMAGE_NAME_FILE
Expand Down

0 comments on commit 7133fc7

Please sign in to comment.