summaryrefslogtreecommitdiff
path: root/functions/chroot.sh
diff options
context:
space:
mode:
authorRoland Clobus <rclobus@rclobus.nl>2020-09-02 12:11:27 +0200
committerLuca Boccassi <bluca@debian.org>2021-01-15 09:22:29 +0000
commit95cd662f4e91438cc179a282c31a8b71ceb49715 (patch)
treeb8a413aed09738faa45501d914409987a06f5f52 /functions/chroot.sh
parent4d7c8c35e3df4a1d8b3000a18acf8019fcee266e (diff)
downloadvyos-live-build-95cd662f4e91438cc179a282c31a8b71ceb49715.tar.gz
vyos-live-build-95cd662f4e91438cc179a282c31a8b71ceb49715.zip
Ensure that SOURCE_DATE_EPOCH is always set in all sub scripts.
When SOURCE_DATE_EPOCH was already set before 'lb config', also enable UTC timestamps.
Diffstat (limited to 'functions/chroot.sh')
-rwxr-xr-xfunctions/chroot.sh8
1 files changed, 1 insertions, 7 deletions
diff --git a/functions/chroot.sh b/functions/chroot.sh
index d62a4fad0..17a137ed7 100755
--- a/functions/chroot.sh
+++ b/functions/chroot.sh
@@ -29,13 +29,7 @@ Chroot ()
fi
done
- # Only pass SOURCE_DATE_EPOCH if its already set
- if [ "${SOURCE_DATE_EPOCH:-}" != "" ]
- then
- ENV="${ENV} SOURCE_DATE_EPOCH=${SOURCE_DATE_EPOCH}"
- fi
-
- ${_LINUX32} chroot "${CHROOT}" /usr/bin/env -i HOME="/root" PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin" TERM="${TERM}" DEBIAN_FRONTEND="${LB_DEBCONF_FRONTEND}" DEBIAN_PRIORITY="${LB_DEBCONF_PRIORITY}" DEBCONF_NONINTERACTIVE_SEEN="true" DEBCONF_NOWARNINGS="true" ${ENV} ${COMMANDS}
+ ${_LINUX32} chroot "${CHROOT}" /usr/bin/env -i HOME="/root" PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin" TERM="${TERM}" DEBIAN_FRONTEND="${LB_DEBCONF_FRONTEND}" DEBIAN_PRIORITY="${LB_DEBCONF_PRIORITY}" DEBCONF_NONINTERACTIVE_SEEN="true" DEBCONF_NOWARNINGS="true" SOURCE_DATE_EPOCH=${SOURCE_DATE_EPOCH} ${ENV} ${COMMANDS}
return ${?}
}