You are here
Has anyone had success developing a patch? I am using a TKL Core VM to develop the patch and whenever I chroot or try running tklpatch on an iso, it fails because it can't resolve the ubuntu repositories.
I get errors like this when executing 'apt-get update':
Err http://archive.ubuntu.com hardy-security Release.gpg
Could not resolve 'archive.ubuntu.com'
Has anyone else run into this problem? I was following the drupal5 example and I did not see any code to initialize an internet connection before using apt-get, which leads me to believe it should work without me doing anything.
If I can get it working, I'd like to publish a tklpatch of TKL OpenVPN later tonight.
Note: I still can't figure out how to configure openvpn properly, but the server does seem to start so I'm blaming it on me misconfiguring it. I hope someone will be willing to test it once it's released.
Edit: So far even with the update to tklpatch, I still have a DNS issue. I am going to upload two files, the first is an unmodified patch, the second is an attempt at fixing the dns issue (remove overlay from the file name before use).
This patch needs to be applied to TKL Core and it will install openvpn and the webmin-openvpn module.
That is a DNS problem
The Count not resolve 'archive.ubuntu.com' problem means your DNS is not working.
Check your DNS configuration and that you can resolve names correctly.
My DNS works
I can ping various domain names. I can even ping and resolve from within the TKL Core virtual machine which I use to test the patch since my regular system is windows. However, once I chroot into the rootfs of the extracted iso, or if I try to apply the patch to the iso using tklpatch, it does not resolve. I would understand if I had to do something special when chrooting, but I beleive that tklpatch is supposed to "just work" when I apply a patch to the iso directly since I didn't see anything talking about this in the doc.
I don't know why, by basically DNS and internet works up until the point that I chroot and I think tklpatch might chroot internally also. Could it be a problem with my setup somehow? I am on a windows xp machine and use TKL Core in virtualbox. My router and dsl modem both are working without any problems right now.
Maybe I should release the patch file in the general forum and see if it works for someone else?
The chrooted filesystem has its own DNS resolver
That solves it
Thanks Liraz, that seemed to solve it. I will have my patch insert the Google DNS servers for now.
I'm stuck
When I chroot manually and add the Google servers to resolv.conf, it works. If I run 'tklpatch file.iso patch.tar.gz' it still has problems. I tried both adding the nameservers through script and including a resolv.conf file in /overlay/etc/
I was thinking, something that might help the developers since some packages make more sense to install with apt-get, have a 4th file that we can put a list of packages to install. Small stuff makes sense to put in /deb, but some stuff would be nice to have a 4th file instead of having to write our own code and having the DNS issue.
Any advice about what I should do? Upload what I have so far? Wait for a fix?
Upload the patch
So how about you upload your patch and We'll test it inside TurnKey Core. Once we can reproduce the issue it'll be easier to fix it. Note that you can upload your patch by editing the post and then adding a file to it.
New version of tklpatch improves usability, fixes DNS issue
I just patched tklpatch to solve the DNS issue and pushed the update to GitHub. In a TurnKey Core VM I tested that everything works like this:
I also updated the overview docs on the web site and improved usability a bit by making clean-ups more robust.
Uploaded
Please see the edit and attached files in the first post.
Good news
I decided to try this again and realized that tklpatch on github was updated, but the one in the repository was the version with the dns issue. I'm publishing the patch to the general forum since I noticed the attached files here were corrupted.
Can someone test this and let me know how it goes? I am still having trouble configuring openvpn the way I want it, but yesterday I was able to get a tunnel connection.
http://www.turnkeylinux.org/forum/general/20100116/tkl-openvpn-patch
Updated the package repository with new version of tklpatch
Add new comment