mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-01-26 18:35:30 +00:00
fix: Add hostname reset to bazzite-hardware-setup if the hostname is too long for distrobox to reliably function
This commit is contained in:
parent
1ea8a5f61d
commit
3fa0d5ddac
@ -180,6 +180,14 @@ else
|
||||
echo "No fstab param adjustments needed"
|
||||
fi
|
||||
|
||||
# HOSTNAME FIX
|
||||
# If the hostname is too long Distrobox will fail during setup
|
||||
# Additonally, Anaconda likes to set the hostname to be the ipv6 address
|
||||
# Let's check the length and reset it to something sensible if that happens.
|
||||
if hostname | wc -m > 15; then
|
||||
hostnamectl set-hostname bazzite
|
||||
fi
|
||||
|
||||
echo $HWS_VER > $HWS_VER_FILE
|
||||
echo $IMAGE_NAME > $KNOWN_IMAGE_NAME_FILE
|
||||
echo $IMAGE_FLAVOR > $KNOWN_IMAGE_FLAVOR_FILE
|
||||
|
Loading…
x
Reference in New Issue
Block a user