Make hacks not break if there are no initrds.
Even if it's likely that initrds will be present at this stage, it might be that they went away because of local hooks, and hacks shouldn't break just because of missing initrds.
This commit is contained in:
parent
f5cb9b046b
commit
4652d65411
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue