dracut-functions.sh: cp with --reflink=auto and --sparse=auto
cp will use COW data copy most of the time. So, it's even better than hardlink, because we don't have to care about hardlinks, when modifying files in post.master
parent
f8be752874
commit
d5b5bb3103
|
|
@ -435,7 +435,7 @@ inst_simple() {
|
|||
inst "${_src%/*}/.${_src##*/}.hmac" "${target%/*}/.${target##*/}.hmac"
|
||||
fi
|
||||
ddebug "Installing $_src"
|
||||
cp --sparse=always -pfL "$_src" "${initdir}/$target"
|
||||
cp --reflink=auto --sparse=auto -pfL "$_src" "${initdir}/$target"
|
||||
}
|
||||
|
||||
# find symlinks linked to given library file
|
||||
|
|
|
|||
Loading…
Reference in New Issue