Merge pull request #161 from doraskayo/local-bootstrap-config

Don't export variables from bootstrap.cfg
This commit is contained in:
Andrius Štikonas 2022-05-19 20:45:35 +01:00 committed by GitHub
commit 081912058f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 7 deletions

View file

@ -71,6 +71,8 @@ if [ -z "${CHROOT}" ]; then
echo "or not. Is it? (yes/no answer)"
ask_chroot
echo
echo "CHROOT=${CHROOT}" >> "${SOURCES}/bootstrap.cfg"
fi
ask_timestamps() {
@ -91,15 +93,13 @@ if [ -z "${FORCE_TIMESTAMPS}" ]; then
echo "fully reproducible disk image. (yes/no answer)"
ask_timestamps
echo
echo "FORCE_TIMESTAMPS=${FORCE_TIMESTAMPS}" >> "${SOURCES}/bootstrap.cfg"
fi
echo "Thank you! All done."
# Write to bootstrap.cfg
rm "${SOURCES}/bootstrap.cfg"
for var in CHROOT FORCE_TIMESTAMPS DISK ARCH UPDATE_CHECKSUMS; do
echo "export ${var}=${!var}" >> "${SOURCES}/bootstrap.cfg"
done
echo "ARCH=${ARCH}" >> "${SOURCES}/bootstrap.cfg"
mkdir -p "${DESTDIR}" "${REPO}" /dev