From 328179a17c470df1a43cc08938d78f2fed41c305 Mon Sep 17 00:00:00 2001 From: Pascal Terjan Date: Sun, 29 Nov 2009 11:30:01 +0000 Subject: Fix previous commit to not remove everything --- scripts/make-boot-splash-raw | 4 ++-- 1 file 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 -- cgit v1.2.1