From 6ad8966224fc422db06e31733141dae99dbd82f1 Mon Sep 17 00:00:00 2001 From: Jocelyn Le Sage Date: Sun, 9 Oct 2022 21:25:35 -0400 Subject: [PATCH] Generate the machine-id once. --- rootfs/etc/cont-init.d/55-firefox.sh | 4 ++-- rootfs/etc/machine-id | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) create mode 120000 rootfs/etc/machine-id diff --git a/rootfs/etc/cont-init.d/55-firefox.sh b/rootfs/etc/cont-init.d/55-firefox.sh index 1d8b721..8f4c73d 100755 --- a/rootfs/etc/cont-init.d/55-firefox.sh +++ b/rootfs/etc/cont-init.d/55-firefox.sh @@ -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. diff --git a/rootfs/etc/machine-id b/rootfs/etc/machine-id new file mode 120000 index 0000000..b39a3fd --- /dev/null +++ b/rootfs/etc/machine-id @@ -0,0 +1 @@ +/config/machine-id \ No newline at end of file