Generate the machine-id once.
This commit is contained in:
parent
a50bede41a
commit
6ad8966224
2 changed files with 3 additions and 2 deletions
|
@ -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
1
rootfs/etc/machine-id
Symbolic link
|
@ -0,0 +1 @@
|
|||
/config/machine-id
|
Loading…
Add table
Add a link
Reference in a new issue