LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-30-2011, 10:54 AM   #1
joeldavis
LQ Newbie
 
Registered: Mar 2011
Posts: 28

Rep: Reputation: 1
Cobblerize the NT Password reset disc.


I'm attempting to cobblerize the nordahl NT password reset disc but I'm running into a problem with the initrd's. Basically it looks like the nordahl disc uses two initrd's. I tried just feeding two --initrd's to the "cobbler distro add" but it only took whichever one was the last one in the list, I tried separating with a comma and it said it couldn't find an initrd. However if I sync, manually copy the other initrd into the /images/passwordReset folder and modify the initrd= kernel option to point to both of them, then it loads. Two problems with this approach:
1) It seems like a workaround rather than a real solution, I'd rather figure out how to do this within the workflow cobbler wants me to go through rather than just manipulating the filesystem so that the desired result is reached.

2) If a "cobbler sync" is ran after this then it removes the unspecified initrd from the /images/passwordReset directory and I have to cp the other initrd into the directory to get the PXEboot to work again.
I'm interested in solving this one of two ways:
1) Finding a way to combine the scsi.cgz and initrd.cgz initrd's into a single initrd, so that I can just feed that into the distro and it all gets copied in one swing. I'm unable to find documentation on this and I'm wary to just extract the contents and then just have-at.

2) Finding a way to get cobbler to recognize that there are two initrd's so that when the CD is updated I won't need to do any extra work, I can just copy the new initrd's and kernel image off the disc and do another cobbler sync.
- Joel

Last edited by joeldavis; 10-30-2011 at 10:56 AM.
 
Old 10-30-2011, 11:28 AM   #2
joeldavis
LQ Newbie
 
Registered: Mar 2011
Posts: 28

Original Poster
Rep: Reputation: 1
This how I did solution 1 (I have no idea if this is technically correct and I'm still interested in solution 2):

Code:
# mkdir initrd initrd2
# cd initrd
# zcat ../initrd.cgz | cpio -id
# cd ../initrd2
# zcat ../scsi.cgz | cpio -id
# cd ../initrd
# cp -R ../initrd2/drivers/* drivers
# find . -print | cpio -o -H newc |gzip -9 -c - > ../newinitrd
# cd ..
# cobbler distro edit --name=passwordReset --initrd=$PWD/newinitrd
# cobbler sync
I then booted off it and it loads and seems to reset the password without issue, but I'm not sure how to verify that the scsi drivers load without issue. When I exit to the command line and do an ls on /drivers it shows up as empty. However when I do a ls on /lib/modules/`uname -r` or a modinfo on specific drivers only found in scsi.cgz it's able to locate them, so I'm assuming that's verification that it works but I don't have the equipment to test it. If anyone is reading this and has windows running on scsi raid or SAS something and can test it for me I'd like it, just so I know I'm on the right track.

But like I said earlier, I'd rather try to get this to work without having to extract/rebuild the initrd if it's just a matter of not passing the correct option to cobbler.

- Joel

Last edited by joeldavis; 10-30-2011 at 12:26 PM.
 
Old 10-30-2011, 01:01 PM   #3
joeldavis
LQ Newbie
 
Registered: Mar 2011
Posts: 28

Original Poster
Rep: Reputation: 1
I finally got a response on #cobbler on the possibility of solution #2:

Code:
<jimi_c> to answer your earlier question: no, not really. cobbler is really only designed to work with one kernel/initrd pair

Last edited by joeldavis; 10-30-2011 at 01:05 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How to reset password ? vibinlakshman Ubuntu 15 07-08-2012 10:13 AM
How to retrieve( or reset) root password in Mandrake Linux, as I forgot my password? Reghunath Linux - Software 4 05-08-2008 05:11 AM
reset password duki Linux - Newbie 5 09-05-2007 05:12 AM
Password reset hongman Linux - Newbie 2 07-11-2005 06:46 AM
reset the password ust Linux - General 1 02-11-2004 07:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:54 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