summaryrefslogtreecommitdiff
path: root/scripts/build/installer_debian-installer
diff options
context:
space:
mode:
authorRoland Clobus <rclobus@rclobus.nl>2021-01-01 16:51:02 +0000
committerLuca Boccassi <bluca@debian.org>2021-01-01 16:51:02 +0000
commit037e93fe37f8b5d974e3e6219fa6ee94ad5cf504 (patch)
treee69a07c5d4d2ccc5cfc9bcec3766f445c832deeb /scripts/build/installer_debian-installer
parent3f7dd00fcb83177e679e9f1449200dee11dc1531 (diff)
downloadvyos-live-build-037e93fe37f8b5d974e3e6219fa6ee94ad5cf504.tar.gz
vyos-live-build-037e93fe37f8b5d974e3e6219fa6ee94ad5cf504.zip
Preserve timestamps
Diffstat (limited to 'scripts/build/installer_debian-installer')
-rwxr-xr-xscripts/build/installer_debian-installer10
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/build/installer_debian-installer b/scripts/build/installer_debian-installer
index 6936666b6..b40b15c6e 100755
--- a/scripts/build/installer_debian-installer
+++ b/scripts/build/installer_debian-installer
@@ -178,7 +178,7 @@ Install_file() {
mkdir -p "${TARGET}"/"${LETTER}"/"${SOURCE}"
# Move files
- cp "${FILE}" "${TARGET}"/"${LETTER}"/"${SOURCE}"
+ cp -a "${FILE}" "${TARGET}"/"${LETTER}"/"${SOURCE}"
}
# Set absolute directory for caching; we require it when we call Download_file
@@ -215,7 +215,7 @@ Download_file () {
CP_OPTIONS="-l"
fi
- cp -f ${CP_OPTIONS} -- "${_LB_CACHE_FILE}" "${_LB_TARGET}"
+ cp -a -f ${CP_OPTIONS} -- "${_LB_CACHE_FILE}" "${_LB_TARGET}"
}
VMLINUZ_DI="vmlinuz"
@@ -550,7 +550,7 @@ EOF
# Copy from cache if available, otherwise download
if [ -f "${UDEB_CACHE_DIR}/${_UDEB_FILENAME}" ]; then
Echo_debug "Copying %s from cache" "${UDEB}"
- cp "${UDEB_CACHE_DIR}/${_UDEB_FILENAME}" ./
+ cp -a "${UDEB_CACHE_DIR}/${_UDEB_FILENAME}" ./
else
Echo_debug "Downloading %s" "${UDEB}"
wget ${WGET_OPTIONS} "${LB_PARENT_MIRROR_CHROOT}/${UDEB}"
@@ -566,7 +566,7 @@ EOF
# Copy from cache if available, otherwise download
if [ -f "${UDEB_CACHE_DIR}/${_UDEB_FILENAME}" ]; then
Echo_debug "Copying %s from cache" "${UDEB}"
- cp "${UDEB_CACHE_DIR}/${_UDEB_FILENAME}" ./
+ cp -a "${UDEB_CACHE_DIR}/${_UDEB_FILENAME}" ./
else
Echo_debug "Downloading %s" "${UDEB}"
wget ${WGET_OPTIONS} "${LB_MIRROR_CHROOT}/${UDEB}"
@@ -578,7 +578,7 @@ EOF
Echo_debug "Refreshing udeb cache"
rm -rf "${UDEB_CACHE_DIR}"
mkdir -p "${UDEB_CACHE_DIR}"
- cp *.udeb "${UDEB_CACHE_DIR}"
+ cp -a *.udeb "${UDEB_CACHE_DIR}"
Echo_debug "Including local udebs"