LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This 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


Reply
  Search this Thread
Old 06-04-2007, 08:05 PM   #1
hepburnenthorpe
Member
 
Registered: Jun 2006
Location: Sydney
Distribution: Gentoo + Debian
Posts: 132

Rep: Reputation: 15
CVS How?


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.
 
Old 06-04-2007, 08:50 PM   #2
alunduil
Member
 
Registered: Feb 2005
Location: San Antonio, TX
Distribution: Gentoo
Posts: 684

Rep: Reputation: 62
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.

Regards,

Alunduil
 
Old 06-04-2007, 09:52 PM   #3
hepburnenthorpe
Member
 
Registered: Jun 2006
Location: Sydney
Distribution: Gentoo + Debian
Posts: 132

Original Poster
Rep: Reputation: 15
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.
 
Old 06-05-2007, 03:52 AM   #4
hepburnenthorpe
Member
 
Registered: Jun 2006
Location: Sydney
Distribution: Gentoo + Debian
Posts: 132

Original Poster
Rep: Reputation: 15
Ok... so I'm thinking I might just be able to do this.

Code:
mkdir tmp
cd tmp
mkdir etc bin var
cvs import -m 'initial layout' mylinux thorpe r_1
cd
rm -fr tmp
Then...

Code:
cvs checkout -d / mylinux
commit only commits files Ive applied add on right? I just don't want my whole / directory added to cvs.

Would this work?
 
Old 06-06-2007, 08:39 AM   #5
hepburnenthorpe
Member
 
Registered: Jun 2006
Location: Sydney
Distribution: Gentoo + Debian
Posts: 132

Original Poster
Rep: Reputation: 15
Now to my next problem. The above, it seems will only work if I'm root. Obviously I want to be able to checkout and commit without being root.

Has anyone got ANY advice about what I'm trying to do here? I'm just not getting anywhere here.
 
Old 06-12-2007, 12:22 AM   #6
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 374Reputation: 374Reputation: 374Reputation: 374
I think you're living dangerously. My approach would be:
  1. have a regular user checkout the "environment" to their home directory
  2. make changes
  3. do a chroot into the changed environment to test the change
  4. commit the changes if the testing went well
  5. 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.
 
  


Reply

Tags
cvs, subversion



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Running CVS Server on Fedora Core 4 with pserver as "cvs" user rupak Fedora 2 09-17-2005 02:06 PM
Running CVS Server with pserver as "cvs" user on Fedora Core 4 rupak Linux - Software 2 09-17-2005 12:10 PM
create a cvs repository with existing files to cvs powah Linux - Software 1 08-19-2005 09:19 AM
Obtaining sources by CVS - no cvs access cybrjackle *BSD 0 01-18-2005 08:28 AM
cvs wine. Unable to download. Error "cvs: command not found" gonus Debian 5 08-03-2004 07:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 05:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration