libdevuansdk

common library for devuan's simple distro kits
git clone https://git.parazyd.org/libdevuansdk
Log | Files | Refs | Submodules | README | LICENSE

commit 8cec5f6c9d3bfedde1febf4ba15134395b4d3a86
parent b90aaecfb03b73ccae46a8d66f33bea07828f47f
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:
Mconfig | 3+++
Mzlibs/bootstrap | 10++++++----
2 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/config b/config @@ -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 @@ -62,6 +63,7 @@ core_packages=( sysvinit ) +base_packages_option=() base_packages=( apt-utils parted @@ -87,6 +89,7 @@ base_packages=( locales ) +purge_packages_option=() purge_packages+=( dbus ) diff --git a/zlibs/bootstrap b/zlibs/bootstrap @@ -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 "$@" @@ -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 @@ -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