Executing all commands for late_command as single istance.

This commit is contained in:
Emiliano Vavassori 2015-09-30 13:04:01 +02:00
parent da1be48040
commit d403e34b64
2 changed files with 10 additions and 12 deletions

View File

@ -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

View File

@ -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