fix(hardware-setup): Set default target to graphical, fixes rebase from base image (#568)

Fixes: https://github.com/ublue-os/main/issues/423
This commit is contained in:
RJ Trujillo 2023-11-20 09:54:46 -07:00 committed by GitHub
parent 16acec22b9
commit 71310055ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -167,6 +167,11 @@ if (( $(hostname | wc -m) > 16 )); then
hostnamectl set-hostname bazzite
fi
# Set default target to graphical, fixes rebase from base image
if grep -qv "graphical.target" <<< $(systemctl get-default); then
systemctl set-default graphical.target
fi
mkdir -p /etc/bazzite
echo $HWS_VER > $HWS_VER_FILE
echo $IMAGE_NAME > $KNOWN_IMAGE_NAME_FILE