summaryrefslogtreecommitdiff
path: root/configs/profile/build.sh
diff options
context:
space:
mode:
authorbill-auger <mr.j.spam.me@gmail.com>2017-11-19 21:32:20 -0500
committerbill-auger <mr.j.spam.me@gmail.com>2019-10-19 13:59:24 -0400
commit61026483d34cf7d3874e11f66abac19b9a416052 (patch)
tree7685560b10ad82a6de95b3b04227946257056353 /configs/profile/build.sh
parentcbe66ab9ab91480582282415961bbf817a1749f9 (diff)
extract skel files into 'parabola-laf' repo
Diffstat (limited to 'configs/profile/build.sh')
-rwxr-xr-xconfigs/profile/build.sh17
1 files changed, 10 insertions, 7 deletions
diff --git a/configs/profile/build.sh b/configs/profile/build.sh
index 6e82617..64e1375 100755
--- a/configs/profile/build.sh
+++ b/configs/profile/build.sh
@@ -137,15 +137,18 @@ make_packages() {
# create live environment local repo or stash package cache
if [[ "$enable_offline_install" == 'true' ]]; then
if [[ -n ${_cache_packages} ]]; then
- # cache packages
+ # download cache packages
setarch ${arch} mkparabolaiso ${verbose} -w ${work_dir}/${arch} -C ${pacman_conf} -D ${iso_dirname} -p "${_cache_packages}" -O install
fi
- pushd ${work_dir}/${arch}/root-image/isorepo > /dev/null
- setarch ${arch} repo-add --new isorepo.db.tar.gz ./*
- popd > /dev/null
else
+ # stash package cache for next build
mv ${work_dir}/${arch}/root-image/isorepo ${work_dir}/../isorepo-${arch}
+ mkdir ${work_dir}/${arch}/root-image/isorepo
fi
+ # create 'isorepo'
+ pushd ${work_dir}/${arch}/root-image/isorepo > /dev/null
+ setarch ${arch} repo-add --new isorepo.db.tar.gz ./*
+ popd > /dev/null
}
# Copy mkinitcpio parabolaiso hooks and build initramfs (root-image)
@@ -361,14 +364,14 @@ case "${target}" in
;;
esac
if [[ "$enable_offline_install" == 'true' ]]; then
- iso_arch="${iso_arch}-complete"
+ iso_type='complete'
launch_msg="${launch_msg} (net-install or offline install)"
else
- iso_arch="${iso_arch}-netinstall"
+ iso_type='netinstall'
launch_msg="${launch_msg} (net-install only)"
fi
iso_title="${iso_title} ${iso_edition} Edition ${iso_version}"
-iso_filename="parabola-${iso_edition}-${iso_arch}-${iso_version}.iso"
+iso_filename="parabola-${iso_edition}-${iso_arch}-${iso_type}-${iso_version}.iso"
iso_filename=$(echo ${iso_filename} | tr '[:upper:]/' '[:lower:]-')
iso_init=$(echo ${iso_edition} | cut -d '/' -f 1 | tr '[:upper:]' '[:lower:]')
iso_gui=$( echo ${iso_edition} | cut -d '/' -f 2 | tr '[:upper:]' '[:lower:]')