Linux From ScratchThis Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm currently playing around with my own custom LFS system. I would like to be able to commit any changes I make to a cvs repo (Ive already got a cvs server on another machine on my network)I'm just not too sure how I can go about it.
Basically what I want to do is make the / of my LFS the working directory. Of course however, I don't want to have to commit the entire OS to cvs, just any files I make changes too. This could be anything from config changes within /etc, right through to entire applications (scripts) I may write and place wherever.
How would a normal distro go about setting up a cvs as such? Ideally, Ide like to boot into LFS, checkout the project. Work on any file I like, when I'm done with that file, commit it.
Anyone else done anything like this?
Any pointers / tutorials would be most appreciated.
If you really want to go the CVS route there are plenty of howtos here, but I would recommend switching to subversion. They have an excellent book available online.
Um... I know how to use cvs. I'm just not exactly sure how to go about setting it up in such a way that the / of my LFS system becomes my working directory without having to import the entire OS.
I think you're living dangerously. My approach would be:
have a regular user checkout the "environment" to their home directory
make changes
do a chroot into the changed environment to test the change
commit the changes if the testing went well
execute a "publish" script that exports the cvs module to the root directory (via sudo permissions) -OR- do the export manually as root
It's the "safest" way of doing this that I've come up with. It can be a pain if the changes are not easily tested from a chroot environment (like Apache config changes), but there's certainly less risk of messing up the system because you're not working on top of a live system.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.