hypriot / flash

Command line script to flash SD card images of any kind
MIT License
1k stars 176 forks source link

same MAC-ADDRESS & /var/lib/dbus/machine-id #92

Closed cescoferraro closed 7 years ago

cescoferraro commented 7 years ago
sudo -E flash -n athenas -s HACK-MEEE -p password https://downloads.hypriot.com/hypriotos-rpi-v1.0.0.img.zip

sudo -E flash -n esparta -s HACK-MEEE -p password https://downloads.hypriot.com/hypriotos-rpi-v1.0.0.img.zip

sudo -E flash -n zeus -s HACK-MEEE -p password https://downloads.hypriot.com/hypriotos-rpi-v1.0.0.img.zip

HypriotOS/armv7: pirate@athenas in ~
$ cat /var/lib/dbus/machine-id
9989a26f06984d6dbadc01770f018e3b

HypriotOS/armv7: pirate@esparta in ~
$ cat /var/lib/dbus/machine-id
9989a26f06984d6dbadc01770f018e3b

HypriotOS/armv6: pirate@zeus in ~
$ cat /var/lib/dbus/machine-id
9989a26f06984d6dbadc01770f018e3b

On debian machines there is a hash under cat /var/lib/dbus/machine-id that uniquely identifies each machine. My program depends on it, but the flash tool seems to bring its own from https://downloads.hypriot.com/hypriotos-rpi-v1.0.0.img.zip. Is there another way I can uniquely identify a machine under Hypriot?

StefanScherer commented 7 years ago

@cescoferraro Thanks for reporting this. I have opened an issue in hypriot/image-builder-rpi#143 for further steps. I'll close this one as the flash tool can't access or change this file.