I’m using a custom ubuntu core18 image for a headless installation on a nuc without display port.
For that I create an user with the brand store login with snap create-user over an cloud-init config.
The new user has the user id 1001 because of the ubuntu user which has already the id 1000.
This gets a conflict with the azure edgeAgent and edgeHub docker containers with local storage. Because the images map the permissions to the user id 1000.
Maybe the id 1000 can lead to additional problems in the future too.
The ubuntu user seems to be the default user. Has this user an other purpose? Can it be removed or replaced with my own user?
For security reasons: what’s the password for the user for login or ssh? Or is it deactivated?
There’s a prepare-device hook in the gadget, but doesn’t look suspicious to me:
#!/bin/sh
product_serial=$(ip link show eth0 | grep -oP ‘(?<=ether\s)[^\s]+\s’ | sed -r ‘s/://g’ | tr -d ‘[:space:]’)
# Set the serial number of the device (needed for the serial assertion)
snapctl set registration.proposed-serial=""${product_serial}""
snapctl set device-service.url=“https://serial-vault-partners.canonical.com/v1/”
snapctl set device-service.headers=’{“api-key”: “key”}’