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:
Cyril Brulebois 2009-01-23 22:21:18 +01:00 committed by Daniel Baumann
parent 4652d65411
commit 6193ef2285
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ fi
# protect GPG keys, which live-helper 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 -0 chmod go+r
find chroot/boot -name 'initrd*' -print0 | xargs -r -0 chmod go+r
# Remove build systems clock drift
echo "0.0 0 0.0" > chroot/etc/adjtime