diff options
author | Cyril Brulebois <cyril.brulebois@kerlabs.com> | 2009-01-23 22:21:18 +0100 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 19:09:40 +0100 |
commit | 6193ef2285f90e23b28fae5c1a43f7ffaa710f21 (patch) | |
tree | c88639e852559e0281a13cb311fc638c3aa2ec73 /helpers/lh_chroot_hacks | |
parent | 4652d65411e39b3431fa852dcab1fcdc9948b860 (diff) | |
download | vyos-live-build-6193ef2285f90e23b28fae5c1a43f7ffaa710f21.tar.gz vyos-live-build-6193ef2285f90e23b28fae5c1a43f7ffaa710f21.zip |
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.
Diffstat (limited to 'helpers/lh_chroot_hacks')
-rwxr-xr-x | helpers/lh_chroot_hacks | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/helpers/lh_chroot_hacks b/helpers/lh_chroot_hacks index c635909f6..2c971111b 100755 --- a/helpers/lh_chroot_hacks +++ b/helpers/lh_chroot_hacks @@ -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 |