summaryrefslogtreecommitdiffstats
path: root/modules.d/slx-uuid/hooks/copy-system-uuid-to-newroot.sh
diff options
context:
space:
mode:
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