[xen-tools-discuss] Installing mysql-server and mysql-client in role
Bubba Sour
bubbasour at gmail.com
Sun Oct 7 12:17:38 CEST 2012
On Sat, Oct 6, 2012 at 11:25 PM, Axel Beckert <abe at deuxchevaux.org> wrote:
> On Sat, Oct 06, 2012 at 08:02:21PM +0200, Bubba Sour wrote:
> > I try to install mysql-server and mysql-client in a role, but fail to do
> so
> > because the mysqld seem to be restarted during debian squeeze install,
> and
> > for some reason it start outside the chrooted environment rather than in
> > there.
> > This causes the whole xen-create-image process to fail at the end when
> one
> > try to umount the tmp folder.
>
> Hrm, /usr/lib/xen-tools/debian.d/01-disable-daemons should prevent
> that. Not sure though if that stuff gets reverted before roles are
> executed. Will have a closer look later.
>
Yeaps! You're right here Alex. I don't know if you missed this in my
earlier post from my role:
PACKAGES="mysql-client mysql-server make php5-mysql php5-curl php5-gd
php5-mcrypt php5-mhash php5-cli php5-dev"
chroot ${prefix} /bin/bash -x -e <<EOF
echo "mysql-server-5.0 mysql-server/root_password password p" >>
/tmp/pre_install
echo "mysql-server-5.0 mysql-server/root_password_again password p" >>
/tmp/pre_install
echo "mysql-server-5.0 mysql-server/root_password seen true" >>
/tmp/pre_install
echo "mysql-server-5.0 mysql-server/root_password_again seen true" >>
/tmp/pre_install
debconf-set-selections /tmp/pre_install
apt-get install -y ${PACKAGES} <--
EOF
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://xen-tools.org/pipermail/xen-tools-discuss/attachments/20121007/7e2596d7/attachment.html>
More information about the xen-tools-discuss
mailing list