Raspberry Trixie Error with Guide (Pi 5, AI Hat 2)

Hi @TheRubbishRaider ,

Indeed the installation script determines host machine type, and in order to allow custom hostnames, it uses the following method which is hostname agnostic:

def is_raspberry_pi():
    try:
        with open('/proc/device-tree/model', 'r') as f:
            model = f.read()
            return "Raspberry Pi" in model
    except:
        return False
1 Like