summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2010-05-21 07:19:15 +0200
committerDaniel Baumann <daniel@debian.org>2010-05-23 12:30:51 +0200
commit9f6b203a253d5c17abbdf66087b384233207c7ac (patch)
tree9a5baba478e340b68b1b70d517745857812e3a6e
parentbf9cfa4dad052eec0fd9360985d6015d9e6a12af (diff)
downloadvyos-live-build-9f6b203a253d5c17abbdf66087b384233207c7ac.tar.gz
vyos-live-build-9f6b203a253d5c17abbdf66087b384233207c7ac.zip
Generalizing uuid handling so that we can enable it in debian later too.
-rwxr-xr-xhelpers/chroot_hacks12
1 files changed, 11 insertions, 1 deletions
diff --git a/helpers/chroot_hacks b/helpers/chroot_hacks
index f3cdb3ca3..dfad9d11c 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.