This is an old revision of the document!


Unique machine ID for nfs root systems

machineid
#!/bin/sh -e
 
PREREQS=""
 
prereqs() { echo "$PREREQS"; }
 
case "$1" in
    prereqs)
    prereqs
    exit 0
    ;;
esac
 
# write sanitized motherboard UUID to /run/machine-id
sed 's/-//g' /sys/class/dmi/id/product_uuid > /run/machine-id
 
# requires the following symbolic links:
# ln -sf /run/machine-id /etc/machine-id
# ln -sf /run/machine-id /var/lib/dbus/machine-id