Closed StefanScherer closed 8 years ago
This is what occi
did: https://github.com/adafruit/Adafruit-Occi/blob/master/usr/bin/occi#L188-L194
if hostname changed and avahi-daemon installed then restart avahi-daemon
@StefanScherer I know what occi did. I looked at it while I implemented device-init. I left out the avahi part intentionally as I was not sure if we would need it.
We would only need it if we have a running avahi daemon and are changing the hostname. As I understand it this is not related to the boot order of device-init, is it?
Fixed with fda11e97887.
I have added a
/boot/device-init.yaml
file on a running RPi2 withThen I rebooted with
sudo reboot
.After rebooting I couldn't ssh into the renamed machine with
ssh pirate@new.local
, but still withssh pirate@black-pearl.local
.Investigating the
/var/log/syslog
after the reboot withsudo grep 'avahi\|device-init' /var/log/syslog
shows that the device-init rename is too late:So we have to change service dependencies to change boot order.