Changing post-ks on client and preseeding to hopefully cope with curl and bash.

This commit is contained in:
Emiliano Vavassori 2015-10-03 03:55:58 +02:00
parent f72e6671d0
commit bef75210f5
2 changed files with 2 additions and 2 deletions

View File

@ -113,7 +113,7 @@ d-i preseed/late_command string in-target apt-get -y 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 \
in-target curl -sSL http://{{ ansible_local.domain.serverfqdn }}/ks/preseed/post-client-ks.sh | bash >/root/post-ks.log 2>&1
in-target curl -sSL http://{{ ansible_local.domain.serverfqdn }}/ks/preseed/post-client-ks.sh | in-target /bin/bash >/target/root/post-ks.log 2>&1
# Grub installation on MBR
d-i grub-installer/only_debian boolean true

View File

@ -6,4 +6,4 @@ echo $TARGETHOSTNAME > /etc/hostname
sed -i '' -e "s/kickseed/$TARGETHOSTNAME/g" /etc/hosts
# Installo i file necessari per ansible.
curl -sSL http://{{ ansible_local.domain.serverfqdn }}/ks/ansible-pull/init-ansible.sh | bash
curl -sSL http://{{ ansible_local.domain.serverfqdn }}/ks/ansible-pull/init-ansible.sh | /bin/bash