From 8618786d5f303fe8e35cecc3be46f144d2aa2e53 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 16 Dec 2012 23:51:01 +0100 Subject: Marking loop-aes-utils related hack as squeeze only. --- scripts/build/chroot_hacks | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'scripts/build/chroot_hacks') diff --git a/scripts/build/chroot_hacks b/scripts/build/chroot_hacks index 1e7bce918..204cc4efe 100755 --- a/scripts/build/chroot_hacks +++ b/scripts/build/chroot_hacks @@ -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* -- cgit v1.2.3