summaryrefslogtreecommitdiff
path: root/dracut.sh
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2013-08-05 11:22:21 +0200
committerHarald Hoyer <harald@redhat.com>2013-08-07 10:33:14 +0200
commit283c34fc2b0b3ecb06613e57163a88dc4ce53ff7 (patch)
tree3fa83b29b75219cb5e949ea18ed4d4a555840c38 /dracut.sh
parent1cb652491858464a1ce04f263bb78f313338aa68 (diff)
downloaddracut-283c34fc2b0b3ecb06613e57163a88dc4ce53ff7.tar.gz
dracut-283c34fc2b0b3ecb06613e57163a88dc4ce53ff7.tar.bz2
dracut-283c34fc2b0b3ecb06613e57163a88dc4ce53ff7.zip
dracut.sh: call find with -print0 and cpio with --null
Diffstat (limited to 'dracut.sh')
-rwxr-xr-xdracut.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/dracut.sh b/dracut.sh
index cf923976..3140b7ea 100755
--- a/dracut.sh
+++ b/dracut.sh
@@ -1259,7 +1259,7 @@ if [[ $early_microcode = yes ]]; then
fi
done
done
- (cd "$microcode_dir/d"; find . | cpio -o -H newc --quiet >../ucode.cpio)
+ (cd "$microcode_dir/d"; find . -print0 | cpio --null -o -H newc --quiet >../ucode.cpio)
fi
rm -f -- "$outfile"
@@ -1268,7 +1268,7 @@ if [[ $early_microcode = yes ]]; then
# The microcode blob is _before_ the initramfs blob, not after
mv $microcode_dir/ucode.cpio $outfile.$$
fi
-if ! ( umask 077; cd "$initdir"; find . |cpio -R 0:0 -H newc -o --quiet| \
+if ! ( umask 077; cd "$initdir"; find . -print0 | cpio --null -R 0:0 -H newc -o --quiet| \
$compress >> "$outfile.$$"; ); then
dfatal "dracut: creation of $outfile.$$ failed"
exit 1