Marking loop-aes-utils related hack as squeeze only.

This commit is contained in:
Daniel Baumann 2012-12-16 23:51:01 +01:00
parent 18c8ece239
commit 8618786d5f
1 changed files with 9 additions and 5 deletions

View File

@ -104,11 +104,15 @@ case "${LB_INITRAMFS_COMPRESSION}" in
;;
esac
# Ensure readable permissions on initramfs. loop-aes-utils sets umask to
# protect GPG keys, which live-build does not support.
# Note: Use find rather than chmod on the wildcard, one never knows what
# people might do in local hooks, and there might be no initrds at all.
find chroot/boot -name 'initrd*' -print0 | xargs -r -0 chmod go+r
case "${LB_PARENT_DISTRIBUTION}" in
squeeze)
# Ensure readable permissions on initramfs. loop-aes-utils sets umask to
# protect GPG keys, which live-build does not support.
# Note: Use find rather than chmod on the wildcard, one never knows what
# people might do in local hooks, and there might be no initrds at all.
find chroot/boot -name 'initrd*' -print0 | xargs -r -0 chmod go+r
;;
esac
# Remove cruft
rm -f chroot/boot/initrd*bak*