Verified Commit e2649140 authored by David Runge's avatar David Runge
Browse files

Merge remote-tracking branch 'nl6720/env-i-SOURCE_DATE_EPOCH'

* nl6720/env-i-SOURCE_DATE_EPOCH:
  mkarchiso: pass SOURCE_DATE_EPOCH to chroot
parents 9c44aeed cbac95ec
......@@ -320,7 +320,7 @@ _make_custom_airootfs() {
# Install desired packages to airootfs
_make_packages() {
local envvars_in_chroot=()
local envvars_in_chroot=("SOURCE_DATE_EPOCH=${SOURCE_DATE_EPOCH}")
_msg_info "Installing packages to '${pacstrap_dir}/'..."
if [[ -n "${gpg_key}" ]]; then
......@@ -373,7 +373,7 @@ _make_customize_airootfs() {
_msg_info "Running in '${pacstrap_dir}' chroot..."
_msg_warning " is deprecated! Support for it will be removed in a future archiso version."
chmod -f -- +x "${pacstrap_dir}/root/"
eval -- env -i arch-chroot "${pacstrap_dir}" "/root/"
eval -- env -i "SOURCE_DATE_EPOCH=${SOURCE_DATE_EPOCH}" arch-chroot "${pacstrap_dir}" "/root/"
rm -- "${pacstrap_dir}/root/"
_msg_info "Done! run successfully."
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment