Generate the machine-id once.

This commit is contained in:
Jocelyn Le Sage 2022-10-09 21:25:35 -04:00
parent a50bede41a
commit 6ad8966224
2 changed files with 3 additions and 2 deletions

View File

@ -9,9 +9,9 @@ mkdir -p /config/log/firefox
mkdir -p /config/profile
# Generate machine id.
if [ ! -f /etc/machine-id ]; then
if [ ! -f /config/machine-id ]; then
echo "generating machine-id..."
cat /proc/sys/kernel/random/uuid | tr -d '-' > /etc/machine-id
cat /proc/sys/kernel/random/uuid | tr -d '-' > /config/machine-id
fi
# Copy default preferences.

1
rootfs/etc/machine-id Symbolic link
View File

@ -0,0 +1 @@
/config/machine-id