Getting a product serial number in prepare-device for amd64 classic

I added this there (Gadget snaps):

If the device service (typically the serial-vault) requires to set registration.proposed-serial to use as the “serial number” (a string, not necessarly a number) part of the identification, then this must be set to a value that is unique across all devices of the brand and model. This also cannot contain /.