From caf4ec860a4a36dd2006338a9705b5144ebfa740 Mon Sep 17 00:00:00 2001
From: Daniel Baumann <daniel@debian.org>
Date: Fri, 21 May 2010 07:19:15 +0200
Subject: Generalizing uuid handling so that we can enable it in debian later
too.
---
helpers/chroot_hacks | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/helpers/chroot_hacks b/helpers/chroot_hacks
index f3cdb3c..dfad9d1 100755
--- a/helpers/chroot_hacks
+++ b/helpers/chroot_hacks
@@ -142,7 +142,17 @@ EOF
esac
# Update initramfs (always, because of udev rules in initrd)
-Chroot chroot "CASPER_GENERATE_UUID=1 update-initramfs -k all -t -u"
+case "${LH_INITRAMFS}" in
+ live-initramfs)
+ #UPDATE_INITRAMFS_OPTIONS="LIVE_GENERATE_UUID=1"
+ ;;
+
+ casper)
+ UPDATE_INITRAMFS_OPTIONS="CASPER_GENERATE_UUID=1"
+ ;;
+esac
+
+Chroot chroot "${UPDATE_INITRAMFS_OPTIONS} update-initramfs -k all -t -u"
# Ensure readable permissions on initramfs. loop-aes-utils sets umask to
# protect GPG keys, which live-helper does not support.
--
cgit v1.0