We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43a27f8 commit 34a5f67Copy full SHA for 34a5f67
buildroot-external/rootfs-overlay/usr/libexec/hassos-persists
@@ -30,7 +30,9 @@ elif [ -e /usr/bin/grub-editenv ]; then
30
else
31
if ! grep -q "systemd.machine_id=${MACHINE_ID}" /mnt/boot/cmdline.txt; then
32
echo "[INFO] set machine-id to ${MACHINE_ID}"
33
- sed -i "s/systemd.machine_id=[0-f]*/systemd.machine_id=${MACHINE_ID}/" /mnt/boot/cmdline.txt
+ if sed -i "s/systemd.machine_id=[0-f]*/systemd.machine_id=${MACHINE_ID}/" /mnt/boot/cmdline.txt; then
34
+ echo "systemd.machine_id=${MACHINE_ID}" > /mnt/boot/cmdline.txt
35
+ fi
36
37
echo "[INFO] machine-id is okay"
38
fi
0 commit comments