On Sat, Oct 6, 2012 at 11:25 PM, Axel Beckert <span dir="ltr"><<a href="mailto:abe@deuxchevaux.org" target="_blank">abe@deuxchevaux.org</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">
On Sat, Oct 06, 2012 at 08:02:21PM +0200, Bubba Sour wrote:<br>
> I try to install mysql-server and mysql-client in a role, but fail to do so<br>
> because the mysqld seem to be restarted during debian squeeze install, and<br>
> for some reason it start outside the chrooted environment rather than in<br>
> there.<br>
> This causes the whole xen-create-image process to fail at the end when one<br>
> try to umount the tmp folder.<br>
<br>
</div>Hrm, /usr/lib/xen-tools/debian.d/01-disable-daemons should prevent<br>
that. Not sure though if that stuff gets reverted before roles are<br>
executed. Will have a closer look later.<br></blockquote><div><br></div><div>Yeaps! You're right here Alex. I don't know if you missed this in my earlier post from my role:</div>
<p class="p1">PACKAGES="mysql-client mysql-server make php5-mysql php5-curl php5-gd php5-mcrypt php5-mhash php5-cli php5-dev"</p>
<p class="p1">chroot ${prefix} /bin/bash -x -e <<EOF</p>
<p class="p1">echo "mysql-server-5.0 mysql-server/root_password password p" >> /tmp/pre_install</p>
<p class="p1">echo "mysql-server-5.0 mysql-server/root_password_again password p" >> /tmp/pre_install</p>
<p class="p1">echo "mysql-server-5.0 mysql-server/root_password seen true" >> /tmp/pre_install</p>
<p class="p1">echo "mysql-server-5.0 mysql-server/root_password_again seen true" >> /tmp/pre_install</p>
<p class="p1">debconf-set-selections /tmp/pre_install</p><p class="p1">apt-get install -y ${PACKAGES} <--</p>
<div>EOF </div><div><br></div><div>Here apt-get was used instead of installDebianPackage, which does the start up blocking. I have changed my role back to installDebianPackage and it works. Sorry for this.</div></div>