From b7801812de8eab938d56347c0c2884d6cc6745ba Mon Sep 17 00:00:00 2001 From: Emiliano Vavassori Date: Wed, 30 Sep 2015 10:09:10 +0200 Subject: [PATCH] Trying to manage upgrade and removal from system. --- .../kickstart/files/preseed/edubuntu-nomirror.seed | 14 +++++++++++++- roles/kickstart/templates/preseed/edubuntu.seed | 14 +++++++++++++- 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/roles/kickstart/files/preseed/edubuntu-nomirror.seed b/roles/kickstart/files/preseed/edubuntu-nomirror.seed index 2025506..c2cec1e 100644 --- a/roles/kickstart/files/preseed/edubuntu-nomirror.seed +++ b/roles/kickstart/files/preseed/edubuntu-nomirror.seed @@ -90,8 +90,20 @@ popularity-contest popularity-contest/participate boolean false d-i pkgsel/language-pack-patterns string language-pack-gnome-$LL language-pack-kde-$LL kde-i18n-$LL libreoffice-help-$LL libreoffice-l10n-$LL firefox-locale-$LL gimp-help-$LL thunderbird-locale-$LL # Adding libreoffice and ansible -d-i pkgsel/include string openssh-server libreoffice ansible vim screen git curl virtualbox-guest-dkms +d-i pkgsel/include string openssh-server libreoffice ansible vim screen git curl cifs-utils ubuntu-edu-secondary libnss-myhostname virtualbox-guest-dkms + +# Post installation tasks +# Update system +d-i preseed/late_command string in-target apt-get -y upgrade +d-i preseed/late_command string in-target apt-get -y dist-upgrade + +# Removing unwanted packages +d-i preseed/late_command string in-target apt-get -yf purge libnss-mdns unity-webapps-common zeitgeist-core zeitgeist-datahub +d-i preseed/late_command string in-target apt-get -y autoremove # Grub installation on MBR d-i grub-installer/only_debian boolean true d-i grub-installer/bootdev string /dev/sda + +# No reboot message +d-i finish-install/reboot_in_progress note diff --git a/roles/kickstart/templates/preseed/edubuntu.seed b/roles/kickstart/templates/preseed/edubuntu.seed index 61ad48b..e1e4ffa 100644 --- a/roles/kickstart/templates/preseed/edubuntu.seed +++ b/roles/kickstart/templates/preseed/edubuntu.seed @@ -90,8 +90,20 @@ popularity-contest popularity-contest/participate boolean false d-i pkgsel/language-pack-patterns string language-pack-gnome-$LL language-pack-kde-$LL kde-i18n-$LL libreoffice-help-$LL libreoffice-l10n-$LL firefox-locale-$LL gimp-help-$LL thunderbird-locale-$LL # Adding libreoffice and ansible -d-i pkgsel/include string openssh-server libreoffice ansible vim screen git curl +d-i pkgsel/include string openssh-server libreoffice ansible vim screen git curl cifs-utils ubuntu-edu-secondary libnss-myhostname + +# Post installation tasks +# Update system +d-i preseed/late_command string in-target apt-get -y upgrade +d-i preseed/late_command string in-target apt-get -y dist-upgrade + +# Removing unwanted packages +d-i preseed/late_command string in-target apt-get -yf purge libnss-mdns unity-webapps-common zeitgeist-core zeitgeist-datahub +d-i preseed/late_command string in-target apt-get -y autoremove # Grub installation on MBR d-i grub-installer/only_debian boolean true d-i grub-installer/bootdev string /dev/sda + +# No reboot message +d-i finish-install/reboot_in_progress note