From d403e34b64d43c26d42556a34797678f77b1449f Mon Sep 17 00:00:00 2001 From: Emiliano Vavassori Date: Wed, 30 Sep 2015 13:04:01 +0200 Subject: [PATCH] Executing all commands for late_command as single istance. --- roles/kickstart/files/preseed/edubuntu-nomirror.seed | 11 +++++------ roles/kickstart/templates/preseed/edubuntu.seed | 11 +++++------ 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/roles/kickstart/files/preseed/edubuntu-nomirror.seed b/roles/kickstart/files/preseed/edubuntu-nomirror.seed index ba64949..f7bc0ef 100644 --- a/roles/kickstart/files/preseed/edubuntu-nomirror.seed +++ b/roles/kickstart/files/preseed/edubuntu-nomirror.seed @@ -97,12 +97,11 @@ d-i pkgsel/include string openssh-server libreoffice ansible vim screen git c # 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 +d-i preseed/late_command string in-target apt-get -y upgrade; \ + in-target apt-get -y dist-upgrade; \ + in-target apt-get -y purge libnss-mdns unity-webapps-common zeitgeist-core zeitgeist-datahub; \ + in-target apt-get -y autoremove; \ + in-target sed -i'' -e 's/ubuntu/gnome-fallback/g' /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf # Grub installation on MBR d-i grub-installer/only_debian boolean true diff --git a/roles/kickstart/templates/preseed/edubuntu.seed b/roles/kickstart/templates/preseed/edubuntu.seed index ad65217..a13cc6a 100644 --- a/roles/kickstart/templates/preseed/edubuntu.seed +++ b/roles/kickstart/templates/preseed/edubuntu.seed @@ -97,12 +97,11 @@ d-i pkgsel/include string openssh-server libreoffice ansible vim screen git c # 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 +d-i preseed/late_command string in-target apt-get -y upgrade; \ + in-target apt-get -y dist-upgrade; \ + in-target apt-get -y purge libnss-mdns unity-webapps-common zeitgeist-core zeitgeist-datahub; \ + in-target apt-get -y autoremove; \ + in-target sed -i'' -e 's/ubuntu/gnome-fallback/g' /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf # Grub installation on MBR d-i grub-installer/only_debian boolean true