I have a hard drive with a Linux installation on it that I like to boot from different physical computers. My question is whether it's possible to programmatically detect which computer the drive is hooked up to. For example, I have tried calling
cat /proc/cpuinfo and piping that into
sha256sum in hopes to create a unique hash of hardware info for each workstation, but it seems like lists like those in /proc do not always maintain the same info after each reboot, because when I used that method, my hash kept changing.
Is there any easy way to do this?