timplement arrays holding apt options for core/base/extra/purge packages - libdevuansdk - common library for devuan's simple distro kits (HTM) git clone https://git.parazyd.org/libdevuansdk (DIR) Log (DIR) Files (DIR) Refs (DIR) Submodules (DIR) README (DIR) LICENSE --- (DIR) commit 8cec5f6c9d3bfedde1febf4ba15134395b4d3a86 (DIR) parent b90aaecfb03b73ccae46a8d66f33bea07828f47f (HTM) Author: parazyd <parazyd@dyne.org> Date: Tue, 28 Nov 2017 19:50:52 +0100 implement arrays holding apt options for core/base/extra/purge packages Diffstat: M config | 3 +++ M zlibs/bootstrap | 10 ++++++---- 2 files changed, 9 insertions(+), 4 deletions(-) --- (DIR) diff --git a/config b/config t@@ -48,6 +48,7 @@ vm_name="${os}_${release}_${version}_${arch}_vagrant" rootcredentials="root:toor" usercredentials="devuan:devuan" +core_packages_option=() core_packages=( devuan-keyring debian-keyring t@@ -62,6 +63,7 @@ core_packages=( sysvinit ) +base_packages_option=() base_packages=( apt-utils parted t@@ -87,6 +89,7 @@ base_packages=( locales ) +purge_packages_option=() purge_packages+=( dbus ) (DIR) diff --git a/zlibs/bootstrap b/zlibs/bootstrap t@@ -18,6 +18,8 @@ # along with this source code. If not, see <http://www.gnu.org/licenses/>. vars+=(bootstrap_tgz_stage3 bootstrap_tgz_stage4 TAR_STAGE4) +arrs+=(base_packages_option core_packages_option extra_packages_option) +arrs+=(purge_packages_option) bootstrap_complete_base() { fn bootstrap_complete_base "$@" t@@ -121,9 +123,9 @@ sed -i -e 's/KERNEL\!=\"eth\*|/KERNEL\!=\"/' \ rm -f /etc/udev/rules.d/70-persistent-net.rules export DEBIAN_FRONTEND=noninteractive -apt-get --yes --force-yes install ${core_packages} -apt-get --yes --force-yes install ${base_packages} -apt-get --yes --force-yes purge ${purge_packages} +apt-get --yes --force-yes install ${core_packages_option} ${core_packages} +apt-get --yes --force-yes install ${base_packages_option} ${base_packages} +apt-get --yes --force-yes purge ${purge_packages_option} ${purge_packages} apt-get --yes --force-yes autoremove apt-get clean t@@ -202,7 +204,7 @@ done } apt-get --yes --force-yes upgrade -apt-get --yes --force-yes install ${extra_packages} +apt-get --yes --force-yes install ${extra_packages_option} ${extra_packages} apt-get --yes --force-yes autoremove apt-get clean