Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Tom Yan
archiso
Commits
cbac95ec
Verified
Commit
cbac95ec
authored
Jun 22, 2021
by
nl6720
Browse files
mkarchiso: pass SOURCE_DATE_EPOCH to chroot
parent
9c44aeed
Changes
1
Hide whitespace changes
Inline
Side-by-side
archiso/mkarchiso
View file @
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 customize_airootfs.sh in '
${
pacstrap_dir
}
' chroot..."
_msg_warning
"customize_airootfs.sh is deprecated! Support for it will be removed in a future archiso version."
chmod
-f
--
+x
"
${
pacstrap_dir
}
/root/customize_airootfs.sh"
eval
--
env
-i
arch-chroot
"
${
pacstrap_dir
}
"
"/root/customize_airootfs.sh"
eval
--
env
-i
"SOURCE_DATE_EPOCH=
${
SOURCE_DATE_EPOCH
}
"
arch-chroot
"
${
pacstrap_dir
}
"
"/root/customize_airootfs.sh"
rm
--
"
${
pacstrap_dir
}
/root/customize_airootfs.sh"
_msg_info
"Done! customize_airootfs.sh run successfully."
fi
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment