summaryrefslogtreecommitdiff
path: root/scripts/build/chroot_hacks
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2012-12-16 23:51:01 +0100
committerDaniel Baumann <daniel@debian.org>2012-12-16 23:51:07 +0100
commit8618786d5f303fe8e35cecc3be46f144d2aa2e53 (patch)
tree3ef7400999e798aa2e29557051882d82f33d93c5 /scripts/build/chroot_hacks
parent18c8ece239c6530224446264ef0827d07fe7f262 (diff)
downloadvyos-live-build-8618786d5f303fe8e35cecc3be46f144d2aa2e53.tar.gz
vyos-live-build-8618786d5f303fe8e35cecc3be46f144d2aa2e53.zip
Marking loop-aes-utils related hack as squeeze only.
Diffstat (limited to 'scripts/build/chroot_hacks')
-rwxr-xr-xscripts/build/chroot_hacks14
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*