diff options
Diffstat (limited to 'helpers/lh_chroot_hacks')
-rwxr-xr-x | helpers/lh_chroot_hacks | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/helpers/lh_chroot_hacks b/helpers/lh_chroot_hacks index 4737425..c635909 100755 --- a/helpers/lh_chroot_hacks +++ b/helpers/lh_chroot_hacks @@ -76,7 +76,9 @@ fi # Ensure readable permissions on initramfs. loop-aes-utils sets umask to # protect GPG keys, which live-helper does not support. -chmod go+r chroot/boot/initrd* +# 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 -0 chmod go+r # Remove build systems clock drift echo "0.0 0 0.0" > chroot/etc/adjtime |