Hi all,<div><br></div><div>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.</div>
<div>This causes the whole xen-create-image process to fail at the end when one try to umount the tmp folder.</div><div><br></div><div><div>PACKAGES="mysql-client mysql-server make php5-mysql php5-curl php5-gd php5-mcrypt php5-mhash php5-cli php5-dev"</div>
</div><div><br></div><div><div>chroot ${prefix} /bin/bash -x -e <<EOF</div><div>echo "mysql-server-5.0 mysql-server/root_password password p" >> /tmp/pre_install</div><div>echo "mysql-server-5.0 mysql-server/root_password_again password p" >> /tmp/pre_install</div>
<div>echo "mysql-server-5.0 mysql-server/root_password seen true" >> /tmp/pre_install</div><div>echo "mysql-server-5.0 mysql-server/root_password_again seen true" >> /tmp/pre_install</div><div>
debconf-set-selections /tmp/pre_install</div><div>apt-get install -y ${PACKAGES}</div></div><div>EOF</div><div><br></div><div>The log gives:</div><div><br></div><div><div>Setting up libmysqlclient16 (5.1.63-0+squeeze1) ...</div>
<div>Setting up libdbd-mysql-perl (4.016-1) ...</div><div>Setting up mysql-client-5.1 (5.1.63-0+squeeze1) ...</div><div>Setting up psmisc (22.11-1) ...</div><div>Setting up mysql-server-core-5.1 (5.1.63-0+squeeze1) ...</div>
<div>Setting up mysql-server-5.1 (5.1.63-0+squeeze1) ...</div><div>Stopping MySQL database server: mysqld.</div><div>121006 19:23:41 [Note] Plugin 'FEDERATED' is disabled.</div><div>121006 19:23:41  InnoDB: Initializing buffer pool, size = 8.0M</div>
<div>121006 19:23:41  InnoDB: Completed initialization of buffer pool</div><div>121006 19:23:41  InnoDB: Started; log sequence number 0 44233</div><div>121006 19:23:41  InnoDB: Starting shutdown...</div><div>121006 19:23:46  InnoDB: Shutdown completed; log sequence number 0 44233</div>
<div>df: Warning: cannot read table of mounted file systems: No such file or directory       <---?</div><div>Starting MySQL database server: mysqld.</div><div>Checking for corrupt, not cleanly closed and upgrade needing tables..</div>
</div><div><br></div><div>At the very end of the log I get:</div><div><br></div><div><div>Role script completed.</div><div>Creating Xen configuration file</div><div>Done</div><div>Setting up root password</div><div>Generating a password for the new guest.</div>
<div>All done</div><div>umount: /tmp/y0xvaEUOOn: device is busy.</div><div>        (In some cases useful info about processes that use</div><div>         the device is found by lsof(8) or fuser(1))</div><div>Running command 'umount /tmp/y0xvaEUOOn 2>&1' failed with exit code 256.</div>
<div>Aborting</div></div><div><br></div><div>For some reason three processes are now running on the dom0:</div><div><div>18887 pts/0    S      0:00 /bin/sh /usr/bin/mysqld_safe</div><div>18998 pts/0    Sl     0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysqld/mysqld.pid --soc</div>
<div>18999 pts/0    S      0:00 logger -t mysqld -p daemon.error</div></div><div>and one cannot umount the directory. The domU is not bootable since there are initramfs issues and kernel panic.</div><div><br></div><div>Is there any way to prevent the mysql from starting up during install, or other way working around this issue?</div>
<div><br></div><div>thanks a bunch!</div>