Skip to content

Commit

Permalink
setup: don't retry hostnamectl if dbus is not installed
Browse files Browse the repository at this point in the history
  • Loading branch information
marcone committed Dec 22, 2024
1 parent 4666821 commit 8f66ee2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions setup/pi/setup-teslausb
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,10 @@ function configure_hostname () {
sed -i -e "s/$old_host_name/$new_host_name/g" /etc/hostname
while ! hostnamectl set-hostname "$new_host_name"
do
if [ ! -e /lib/systemd/system/dbus.service ]
then
break
fi
setup_progress "hostnamectl failed, retrying"
sleep 1
done
Expand Down

0 comments on commit 8f66ee2

Please sign in to comment.