diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/build/chroot_hacks | 14 |
1 files changed, 9 insertions, 5 deletions
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* |