Problems with TKLPatch Ubuntu Lucid
Hi guys, I'm starting to work with TKLPatch, in an Ubuntu Lucid VM. I copied the iso inside the VM and did the following commands:
tklpatch-extract-iso turnkey-core-beta-lucid-x86.iso
tklpatch-chroot turnkey-core-beta-lucid-x86.rootfs/ apt-get update
But it seems that inside the rootfs of the extracted iso I can't get connection. I fix the issue "by hand" writing to /etc/resolv.conf to continue testing but then I'm stuck being unable to install mysql-server.
The errors I'm getting are the following during package instalation:
Unpacking mysql-server-5.1 (from .../mysql-server-5.1_5.1.41-3ubuntu12.3_i386.deb) ...
df: Warning: cannot read table of mounted file systems: No such file or directory
Setting up mysql-server-5.1 (5.1.41-3ubuntu12.3) ...
status: Unknown job: mysql
start: Unknown job: mysql
root@core ~# service mysql status
status: Unknown job: mysql
root@core ~# service mysql start
start: Unknown job: mysql
Any help will be appreciated. Thanks. The complete transcript of the session can be found at
Does this have anything to do
Does your first issue have anything to do with the networking errors other people have reported on the new beta? See http://www.turnkeylinux.org/blog/core-lucid-beta#comment-3182
Not exactly
I do have the problem mentioned on the refered post, not getting nameservers on first boot, and having to hit DHCP option in confconsole to resolve the problem. But once its solved, the VM has internet, I can ping and wget from console. It's just when I chroot to the extracted iso filesystem that I'm getting this error.
The mysql error is stranger than the first. Has anybody had this issue?
Argh! Upstart services cannot be run in a chroot
Unfortunately, upstart doesn't support chroots. This is a regression. Previously it was possible to start services inside a chroot environment, but not any more:
https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/430224
I'm looking for a workaround.
:(
This will delay the production of new turkeys based on 10.04 :( I already have my first patch ready to test. I hope there's a workaround for this.
Don't worry, I'll release the workaround today
New version of TKLPatch released
I pushed my changes to GitHub. Alon is updating the archive as we speak so you'll be able to update to the newest version of tklpatch by doing this:
Changes:
Other server services which are known to use upstart in Lucid are samba, vsftpd, squid. But I think for tklpatch we only need the ability to start mysql within the chroot (e.g., to manipulate the databases).
Geez you guys are clever :)
Nice work!
Thank Adrian... :)
Thanks!
I'll get it right now to test it and hopefully finish my first tklpatch :)
Everything went fine, only a little detail
Liraz, thanks for the update, everything worked as expected. But the final image gets (tklpatch) on the shell prompt. It's the only issue I found. I'm leaving tonight the final test of the patch running and tomorrow if everything went ok I'll publish it.
Post new comment