From e10059ad3f5f97ae43d46eb5ef6386e3f561f14f Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Tue, 9 Oct 2007 00:29:15 +0200 Subject: Adjusting to live-initramfs. --- hooks/live | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'hooks') 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 -- cgit v1.2.3