From 16d6ac8942441d08ed09bb54f265f3006d00033a Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Tue, 6 Jun 2017 18:38:15 +0200 Subject: [PATCH] Bis zum Installieren von Paketen gekommen --- bin/create-grml-image.sh | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/bin/create-grml-image.sh b/bin/create-grml-image.sh index ffbd251..d54b9db 100755 --- a/bin/create-grml-image.sh +++ b/bin/create-grml-image.sh @@ -49,6 +49,8 @@ TGT_ISO_IMAGE= BOOT_ARGS="-no-emul-boot -boot-load-size 4 -boot-info-table -b boot/isolinux/isolinux.bin -c boot/isolinux/boot.cat -input-charset utf-8" +PACKAGES="bc git libpcre3 mbuffer lsscsi bind9-host bind9utils megacli storcli lvm2" + #------------------------------------------------------------------- detect_color() { @@ -495,16 +497,23 @@ EOF #------------------------------------------------------------------------------ update_packages() { - empty_line info "Update aller Pakete." export DEBIAN_FRONTEND="noninteractive" - CHROOT apt-get dist-upgrade -y || true + CHROOT apt dist-upgrade -y || true empty_line info "Entfernen überflüssiger Pakete." CHROOT apt-get autoremove -y || true } +#------------------------------------------------------------------------------ +add_packages() { + empty_line + info "Installiere zusätzliche Pakete: ${PACKAGES}" + export DEBIAN_FRONTEND="noninteractive" + CHROOT apt install -y ${PACKAGES} +} + #------------------------------------------------------------------------------ unmounting_dirs() { @@ -666,7 +675,10 @@ main() { add_fb_repo update_packages + add_packages + sleep 2 + empty_line info "Finishing ..." trap - EXIT INT QUIT TERM unmangle_resolv_conf -- 2.39.5