From: Harald Hoyer Date: Fri, 2 Sep 2011 07:01:47 +0000 (+0200) Subject: dracut: cp with sparse X-Git-Tag: 014~105 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=59f288ce631a7793755d16ee26fef0355098d33a;p=thirdparty%2Fdracut.git dracut: cp with sparse --- diff --git a/dracut b/dracut index fd36805b7..0e930c76f 100755 --- a/dracut +++ b/dracut @@ -650,7 +650,7 @@ if strstr "$modules_loaded" " fips " && command -v prelink >/dev/null; then done fi -if ! ( cd "$initdir"; find . |cpio -R 0:0 -H newc -o --quiet | \ +if ! ( cd "$initdir"; find . |cpio -R 0:0 -H newc -o --quiet| \ $compress > "$outfile"; ); then dfatal "dracut: creation of $outfile failed" exit 1 diff --git a/dracut-functions b/dracut-functions index 507f0c3a6..b11e37c0e 100755 --- a/dracut-functions +++ b/dracut-functions @@ -317,7 +317,7 @@ inst_simple() { inst "${_src%/*}/.${_src##*/}.hmac" "${target%/*}/.${target##*/}.hmac" fi ddebug "Installing $_src" - cp -pfL "$_src" "${initdir}$target" + cp --sparse=always -pfL "$_src" "${initdir}$target" } # find symlinks linked to given library file