Creating a continuous 2cd custom installer using Centos?
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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.
Creating a continuous 2cd custom installer using Centos?
Hi,
I currently have a task to create a continuous installer with 2 or more CDs.
Anaconda installer does it and I think that there shouldn't be a problem to adopt it.
I guess the anaconda installer knows which cd is required according to the files located on the CDs set, and knows when a correct cd was inserted according to .discinfo...
My setup will be much simpler though:
I want the first cd to be the one that deploys the OS on a server using kickstart, and when it's done, the user will be asked to switch the cds.
Are there tools or system calls that I can use to be able to tell:
-) if a cd is in a tray,
-) when the tray changes it's state from closed to open,
-) when the tray changes it's state from open to closed ?
Wouldn't a check of /proc/ide/devicename/capacity return >0? Or else look in /proc/sys/dev/cdrom/ for disk or tray info? Or else figure something out with the CDROM_DRIVE_STATUS and CDROM_DISC_STATUS ioctls like 'eject' uses or else see example in /kernel source/Documentation/cdrom/ide-cd?
You mean create an install that has 2 CDs? Like CD1 is the boot/install 1 CD and CD2 has additional software? When you get this completed please post the steps. I might need to do this one day.
Oh and any chance you could just make it one DVD instead of 2 CDs? Or are you needing it for CDROMs only drives?
unSpawn, thank you for pointing me in those directions.
The capacity file does look like it can help,
I wondered what will happen is the cdrom will be scsi and the device block will change to sda, so the final line to check whether there's a cd inserted, looks like this:
One more thing left to do is to adopt the .discinfo file so the installer will know that's the right cd.
Looks like something that can be achieved, thanks again for your help.
ncsuapex,
I'll have to do both, DVD and split CD set.
I'll post the outcome when I'm done with this.
Last edited by infernal211283_; 12-18-2008 at 07:34 AM.
unSpawn, thank you for pointing me in those directions.
The capacity file does look like it can help,
I wondered what will happen is the cdrom will be scsi and the device block will change to sda, so the final line to check whether there's a cd inserted, looks like this:
One more thing left to do is to adopt the .discinfo file so the installer will know that's the right cd.
Looks like something that can be achieved, thanks again for your help.
ncsuapex,
I'll have to do both, DVD and split CD set.
I'll post the outcome when I'm done with this.
hi, Dan
what's your final solution about this problem? i also encounterred the same question
You should look at the post(s) date. infernal211283_ has not posted for over 2 years.
Do not resurrect such old threads. If you have a query then create a new thread and include complete information as to the query.
You should use descriptive titles for your threads. That way you will receive targeted responses.
FYI: I suggest that you look at 'How to Ask Questions the Smart Way' so in the future your queries provide information that will aid us in diagnosis of the problem or query.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.