Skip to content

Commit 7131005

Browse files
authored
fix(hardware-setup): Set default target to graphical, fixes rebase from base image (#568)
Fixes: ublue-os/main#423
1 parent 16acec2 commit 7131005

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

system_files/desktop/shared/usr/bin/bazzite-hardware-setup

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,11 @@ if (( $(hostname | wc -m) > 16 )); then
167167
hostnamectl set-hostname bazzite
168168
fi
169169

170+
# Set default target to graphical, fixes rebase from base image
171+
if grep -qv "graphical.target" <<< $(systemctl get-default); then
172+
systemctl set-default graphical.target
173+
fi
174+
170175
mkdir -p /etc/bazzite
171176
echo $HWS_VER > $HWS_VER_FILE
172177
echo $IMAGE_NAME > $KNOWN_IMAGE_NAME_FILE

0 commit comments

Comments
 (0)