]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
terminfo/module-setup.sh: speedup install() of all terminfo
authorHarald Hoyer <harald@redhat.com>
Fri, 22 Jun 2012 13:29:04 +0000 (15:29 +0200)
committerHarald Hoyer <harald@redhat.com>
Fri, 29 Jun 2012 10:41:26 +0000 (12:41 +0200)
modules.d/95terminfo/module-setup.sh

index 32a3fe902c2e1fb7287f283851a23380c1aa17e9..e1914a5aed0fe1dc4966d8b635c9c5bf1a659dc3 100755 (executable)
@@ -10,9 +10,7 @@ install() {
     done
 
     if [ -d ${_terminfodir} ]; then
-        for f in ${_terminfodir}/*/*; do
-            inst_simple $f
-        done
+        inst_dir "$_terminfodir"
+        cp --reflink=auto --sparse=auto -prfL -t "${initdir}/${_terminfodir%/*}" "$_terminfodir"
     fi
 }
-