mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-25 07:31:01 +02:00
eclass/multibuild: Sync with Gentoo
It's from Gentoo commit 8f952fad8ad5152d7877944c537f469f25d0a7af.
This commit is contained in:
parent
41942b21eb
commit
42d4c79083
@ -170,8 +170,7 @@ multibuild_copy_sources() {
|
||||
|
||||
_multibuild_create_source_copy() {
|
||||
einfo "${MULTIBUILD_VARIANT}: copying to ${BUILD_DIR}"
|
||||
# enable reflinking if possible to make this faster
|
||||
cp -p -R --reflink=auto \
|
||||
cp -p -R \
|
||||
"${_MULTIBUILD_INITIAL_BUILD_DIR}" "${BUILD_DIR}" || die
|
||||
}
|
||||
|
||||
@ -190,8 +189,7 @@ multibuild_merge_root() {
|
||||
local src=${1}
|
||||
local dest=${2}
|
||||
|
||||
# enable reflinking if possible to make this faster
|
||||
cp -a --reflink=auto "${src}"/. "${dest}"/ || die "${MULTIBUILD_VARIANT:-(unknown)}: merging image failed"
|
||||
cp -a "${src}"/. "${dest}"/ || die "${MULTIBUILD_VARIANT:-(unknown)}: merging image failed"
|
||||
rm -rf "${src}" || die
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user