Generalizing uuid handling so that we can enable it in debian later too.

This commit is contained in:
Daniel Baumann 2010-05-21 07:19:15 +02:00
parent bf9cfa4dad
commit 9f6b203a25
1 changed files with 11 additions and 1 deletions

View File

@ -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.