mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-18 09:15:23 +01:00
Merge pull request #161 from doraskayo/local-bootstrap-config
Don't export variables from bootstrap.cfg
This commit is contained in:
commit
081912058f
2 changed files with 7 additions and 7 deletions
10
sysa/run.sh
10
sysa/run.sh
|
|
@ -71,6 +71,8 @@ if [ -z "${CHROOT}" ]; then
|
||||||
echo "or not. Is it? (yes/no answer)"
|
echo "or not. Is it? (yes/no answer)"
|
||||||
ask_chroot
|
ask_chroot
|
||||||
echo
|
echo
|
||||||
|
|
||||||
|
echo "CHROOT=${CHROOT}" >> "${SOURCES}/bootstrap.cfg"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ask_timestamps() {
|
ask_timestamps() {
|
||||||
|
|
@ -91,15 +93,13 @@ if [ -z "${FORCE_TIMESTAMPS}" ]; then
|
||||||
echo "fully reproducible disk image. (yes/no answer)"
|
echo "fully reproducible disk image. (yes/no answer)"
|
||||||
ask_timestamps
|
ask_timestamps
|
||||||
echo
|
echo
|
||||||
|
|
||||||
|
echo "FORCE_TIMESTAMPS=${FORCE_TIMESTAMPS}" >> "${SOURCES}/bootstrap.cfg"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Thank you! All done."
|
echo "Thank you! All done."
|
||||||
|
|
||||||
# Write to bootstrap.cfg
|
echo "ARCH=${ARCH}" >> "${SOURCES}/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
|
|
||||||
|
|
||||||
mkdir -p "${DESTDIR}" "${REPO}" /dev
|
mkdir -p "${DESTDIR}" "${REPO}" /dev
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -53,14 +53,14 @@ ask_disk() {
|
||||||
if [ -z "${DISK}" ] || ! [ -e "/dev/${DISK}" ]; then
|
if [ -z "${DISK}" ] || ! [ -e "/dev/${DISK}" ]; then
|
||||||
echo "You did not provide a valid disk in the configuration file."
|
echo "You did not provide a valid disk in the configuration file."
|
||||||
ask_disk
|
ask_disk
|
||||||
|
|
||||||
|
echo "DISK=${DISK}" >> /usr/src/bootstrap.cfg
|
||||||
fi
|
fi
|
||||||
|
|
||||||
PREFIX=/usr
|
PREFIX=/usr
|
||||||
SOURCES="${PREFIX}/src"
|
SOURCES="${PREFIX}/src"
|
||||||
SYSC=/sysc
|
SYSC=/sysc
|
||||||
|
|
||||||
echo "export DISK=${DISK}" >> /usr/src/bootstrap.cfg
|
|
||||||
|
|
||||||
# Otherwise, add stuff from sysa to sysb
|
# Otherwise, add stuff from sysa to sysb
|
||||||
echo "Mounting sysc"
|
echo "Mounting sysc"
|
||||||
mkdir /sysc
|
mkdir /sysc
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue