diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/make-boot-splash-raw | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/make-boot-splash-raw b/scripts/make-boot-splash-raw index 29d727a..fdd196e 100755 --- a/scripts/make-boot-splash-raw +++ b/scripts/make-boot-splash-raw @@ -23,6 +23,13 @@ if `/bin/zcat $initrd_file 2> /dev/null | /bin/cpio -t &> /dev/null`; then /usr/libexec/plymouth/plymouth-populate-initrd -t $tmp_dir/plymouth cd $tmp_dir/plymouth + + # 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 + /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 fi |