Actually fix initrd-related breakage in chroot hacks.
To actually handle the case where there are no initrds, one has to tell xargs not to run the chmod command if there are no parameters.
This commit is contained in:
parent
4652d65411
commit
6193ef2285
|
@ -78,7 +78,7 @@ fi
|
||||||
# protect GPG keys, which live-helper does not support.
|
# protect GPG keys, which live-helper does not support.
|
||||||
# Note: Use find rather than chmod on the wildcard, one never knows what
|
# 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.
|
# 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
|
find chroot/boot -name 'initrd*' -print0 | xargs -r -0 chmod go+r
|
||||||
|
|
||||||
# Remove build systems clock drift
|
# Remove build systems clock drift
|
||||||
echo "0.0 0 0.0" > chroot/etc/adjtime
|
echo "0.0 0 0.0" > chroot/etc/adjtime
|
||||||
|
|
Loading…
Reference in New Issue