aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/make-boot-splash-raw
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/make-boot-splash-raw')
-rwxr-xr-xscripts/make-boot-splash-raw4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/make-boot-splash-raw b/scripts/make-boot-splash-raw
index fdd196e..e24cce2 100755
--- a/scripts/make-boot-splash-raw
+++ b/scripts/make-boot-splash-raw
@@ -27,8 +27,8 @@ if `/bin/zcat $initrd_file 2> /dev/null | /bin/cpio -t &> /dev/null`; then
# Avoid duplicate files, adding another copy of glibc each time makes
# initrd grow fast
/bin/zcat $initrd_file 2> /dev/null | \
- cpio-filter --exclude `/bin/find . -print | sed -e 's,\./,,g' | \
- sed -e 's,^\.$,,' | tr '\n' '|'` > $tmp_dir/initrd
+ cpio-filter --exclude `/bin/find . -type f -print | sed -e 's,\./,,g' | \
+ sed -e 's,^\.$,,' | tr '\n' '|' | sed -e 's/|$//'` > $tmp_dir/initrd
/bin/find . -print | sed -e 's,\./,,g' | sed -e 's,^\.$,,' | \
sort -u | cpio -o -c -L --quiet -O $tmp_dir/initrd --append 2>/dev/null