summaryrefslogtreecommitdiff
path: root/hooks
diff options
context:
space:
mode:
Diffstat (limited to 'hooks')
-rwxr-xr-xhooks/live13
1 files changed, 7 insertions, 6 deletions
diff --git a/hooks/live b/hooks/live
index e692690..8cfc360 100755
--- a/hooks/live
+++ b/hooks/live
@@ -57,6 +57,13 @@ then
cp /etc/console/boottime.kmap.gz "${DESTDIR}"/etc
fi
+# Configuration: Unique ID
+if [ -n "${LIVE_GENERATE_UUID}" ]
+then
+ mkdir -p "${DESTDIR}"/conf
+ uuidgen -r > "${DESTDIR}"/conf/uuid.conf
+fi
+
# Filesystem: cifs
if [ -x /sbin/mount.cifs ]
then
@@ -120,9 +127,3 @@ if [ -x /usr/bin/wget ]
then
copy_exec /usr/bin/wget /bin
fi
-
-if [ "$CASPER_GENERATE_UUID" ]; then
- # Unique ID
- mkdir -p $DESTDIR/conf
- uuidgen -r > $DESTDIR/conf/uuid.conf
-fi