From 43e1c150f1a61d7d48ad22c1cf34018f42c7d19b Mon Sep 17 00:00:00 2001 From: bill-auger Date: Sun, 29 Dec 2019 04:27:51 -0500 Subject: housekeeping --- configs/profile/build.sh | 30 ++++++++++++++---------------- 1 file changed, 14 insertions(+), 16 deletions(-) (limited to 'configs/profile/build.sh') diff --git a/configs/profile/build.sh b/configs/profile/build.sh index ede1748..3ae1a61 100755 --- a/configs/profile/build.sh +++ b/configs/profile/build.sh @@ -28,7 +28,6 @@ iso_version=$(date +%Y.%m.%d) iso_label="PARA_$(date +%Y%m)" iso_dirname='parabola' enable_offline_install='false' -offline_switch='' enable_tts_brltty='false' pacman_conf_in=${releng_dir}/pacman.conf work_dir=./work @@ -60,7 +59,7 @@ _usage () echo " -D Set the name of the directory inside the ISO" echo " Default: ${iso_dirname}" echo " -O Enable offline install." - echo " Default: '${enable_offline_install}'" + echo " Default: '' (net-install only)" echo " -S Enable speech and braille." echo " Default: '${enable_tts_brltty}'" echo " -C Specify the pacman.conf file used for chroot install." @@ -185,8 +184,8 @@ make_packages() { if [[ "$enable_offline_install" == 'true' ]]; then if [[ -n "${_cache_packages}" ]]; then # download any cache packages and prune obsolete packages - echo 'downloading "cach-only" packages' - setarch ${arch} mkparabolaiso ${verbose} -w ${work_dir}/${arch} -C ${pacman_conf} -D ${iso_dirname} -p "${_cache_packages}" ${offline_switch} cache + echo 'downloading "cache-only" packages' + setarch ${arch} mkparabolaiso ${verbose} -w ${work_dir}/${arch} -C ${pacman_conf} -D ${iso_dirname} -p "${_cache_packages}" cache fi # create 'isorepo' for offline install @@ -223,16 +222,15 @@ make_customize_root_image() { cp -af ${releng_dir}/root-image ${work_dir}/${arch} echo "Customizing root image" - ISO_TITLE="${iso_title}" \ - ISO_INIT="${iso_init}" \ - ISO_GUI="${iso_gui}" \ - ENABLE_OFFLINE_INSTALL="${enable_offline_install}" \ - ENABLE_TTS_BRLTTY="${enable_tts_brltty}" \ - setarch ${arch} mkparabolaiso ${verbose} -w ${work_dir}/${arch} \ - -C ${pacman_conf} \ - -D ${iso_dirname} \ - ${offline_switch} \ - -r /root/customize_root_image.sh \ + ISO_TITLE="${iso_title}" \ + ISO_INIT="${iso_init}" \ + ISO_GUI="${iso_gui}" \ + ENABLE_OFFLINE_INSTALL="${enable_offline_install}" \ + ENABLE_TTS_BRLTTY="${enable_tts_brltty}" \ + setarch ${arch} mkparabolaiso ${verbose} -w ${work_dir}/${arch} \ + -C ${pacman_conf} \ + -D ${iso_dirname} \ + -r /root/customize_root_image.sh \ run rm ${work_dir}/${arch}/root-image/root/customize_root_image* } @@ -365,7 +363,7 @@ make_aitab() { make_prepare() { cp -a -l -f ${work_dir}/${arch}/root-image ${work_dir}/ setarch ${arch} mkparabolaiso ${verbose} -w ${work_dir}/ -D ${iso_dirname} -C ${pacman_conf} pkglist - setarch ${arch} mkparabolaiso ${verbose} -w ${work_dir}/ -D ${iso_dirname} -C ${pacman_conf} ${offline_switch} prepare + setarch ${arch} mkparabolaiso ${verbose} -w ${work_dir}/ -D ${iso_dirname} -C ${pacman_conf} prepare rm -rf ${work_dir}/root-image # rm -rf ${work_dir}/${arch}/root-image (if low space, this helps) @@ -388,7 +386,7 @@ while getopts 'E:T:V:L:D:OSC:w:o:vh' arg; do V) iso_version="${OPTARG}" ;; L) iso_label="${OPTARG}" ;; D) iso_dirname="${OPTARG}" ;; - O) enable_offline_install='true' offline_switch='-O' ;; + O) enable_offline_install='true' ;; S) enable_tts_brltty='true' ;; C) pacman_conf_in="${OPTARG}" ;; w) work_dir="${OPTARG}" ;; -- cgit v1.2.2