summaryrefslogtreecommitdiffstats
path: root/modules.d/slx-uuid/hooks/copy-system-uuid-to-newroot.sh
diff options
context:
space:
mode:
authorSimon Rettberg2024-01-25 15:47:09 +0100
committerSimon Rettberg2024-01-29 09:53:08 +0100
commitabb148916593de63554ef58c53cb1dd8fbbb0ab1 (patch)
treed8c640c33f699f3abc567d9bbf111190c779b7d2 /modules.d/slx-uuid/hooks/copy-system-uuid-to-newroot.sh
parent[dnbd3-rootfs] Try optimized ext4 mount options if none are given (diff)
downloadsystemd-init-abb148916593de63554ef58c53cb1dd8fbbb0ab1.tar.gz
systemd-init-abb148916593de63554ef58c53cb1dd8fbbb0ab1.tar.xz
systemd-init-abb148916593de63554ef58c53cb1dd8fbbb0ab1.zip
Try to use more systemd services
Diffstat (limited to 'modules.d/slx-uuid/hooks/copy-system-uuid-to-newroot.sh')
-rwxr-xr-xmodules.d/slx-uuid/hooks/copy-system-uuid-to-newroot.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules.d/slx-uuid/hooks/copy-system-uuid-to-newroot.sh b/modules.d/slx-uuid/hooks/copy-system-uuid-to-newroot.sh
new file mode 100755
index 00000000..e451ce26
--- /dev/null
+++ b/modules.d/slx-uuid/hooks/copy-system-uuid-to-newroot.sh
@@ -0,0 +1,6 @@
+#!/bin/ash
+
+if [ -s "/run/system-uuid" ]; then
+ cp "/run/system-uuid" "$NEWROOT/etc/system-uuid"
+fi
+true