dracut: cp with sparse
parent
dffb93feaf
commit
59f288ce63
2
dracut
2
dracut
|
@ -650,7 +650,7 @@ if strstr "$modules_loaded" " fips " && command -v prelink >/dev/null; then
|
||||||
done
|
done
|
||||||
fi
|
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
|
$compress > "$outfile"; ); then
|
||||||
dfatal "dracut: creation of $outfile failed"
|
dfatal "dracut: creation of $outfile failed"
|
||||||
exit 1
|
exit 1
|
||||||
|
|
|
@ -317,7 +317,7 @@ inst_simple() {
|
||||||
inst "${_src%/*}/.${_src##*/}.hmac" "${target%/*}/.${target##*/}.hmac"
|
inst "${_src%/*}/.${_src##*/}.hmac" "${target%/*}/.${target##*/}.hmac"
|
||||||
fi
|
fi
|
||||||
ddebug "Installing $_src"
|
ddebug "Installing $_src"
|
||||||
cp -pfL "$_src" "${initdir}$target"
|
cp --sparse=always -pfL "$_src" "${initdir}$target"
|
||||||
}
|
}
|
||||||
|
|
||||||
# find symlinks linked to given library file
|
# find symlinks linked to given library file
|
||||||
|
|
Loading…
Reference in New Issue