Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I would like to create an image of my existing CentOS from hard drive to a livecd.

I don't want to customize an installation cd, because I have many installed software which does not have RPM's. I kind of know how to do it Debian, but I am clueless in CentOS.

Can someone help with a starting point(s) ?

Thanks,

Oz

share|improve this question

1 Answer 1

up vote 3 down vote accepted

OK ... I hate answering my own questions :-) but here is what I found out ...

the script livecd-creator from the live-tools, has too very appealing options which are suppressed when calling the script with -h flag. I had to dig into the python code to find it ...

if you call the script with the option --shell, you will get a shell, so you could play and customize your cd - this is a chrooted shell..., before it is created...:

Therefore, to create a live-cd based on your system:

customize the following file: https://projects.centos.org/trac/livecd/browser/trunk/CentOS5/centos-livecd-minimal.ks?format=raw

add all your repositories, get a list of your packages from your system - don't forget vim and ssh. call the script like this: LANG=C livecd-creator --config=centos-livecd-minimal.ks -f --shell

this will give you a shell to play with:

edit all the files you want, if you have another server you can copy before hand all your configuration files, and then scp them from that server into your chroot.

when you finish type exit, this will pack your system into a livecd ...

if you are just testing and you want to save time, add the flag --skip-minimize for the above command.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.