LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 08-12-2004, 03:41 PM   #1
mindcry
Member
 
Registered: Nov 2002
Distribution: Libranet 2.8 Debian Solaris 9
Posts: 118

Rep: Reputation: 15
making kernel RPM. does not make initrd file


I am building a custom kernel and trying to make it into an rpm using "make rpm" for easy distribution to other machines. Well it seems to be doing everything correctly but the problem is that it doesn't seem to be creating an initrd file. Any ideas?
 
Old 08-12-2004, 09:44 PM   #2
osvaldomarques
Member
 
Registered: Jul 2004
Location: Rio de Janeiro - Brazil
Distribution: Conectiva 10 - Conectiva 8 - Slackware 9 - starting with LFS
Posts: 519

Rep: Reputation: 34
Hi mindcry,
Initrd is created using the command "mkinitrd". See "man mkinirtd" for proper syntax details.
Good luck!
 
Old 08-12-2004, 09:47 PM   #3
mindcry
Member
 
Registered: Nov 2002
Distribution: Libranet 2.8 Debian Solaris 9
Posts: 118

Original Poster
Rep: Reputation: 15
How can I get that into the RPM though, and have it extract to the right place when I install the RPM on another server.
 
Old 08-12-2004, 10:02 PM   #4
osvaldomarques
Member
 
Registered: Jul 2004
Location: Rio de Janeiro - Brazil
Distribution: Conectiva 10 - Conectiva 8 - Slackware 9 - starting with LFS
Posts: 519

Rep: Reputation: 34
Sorry, but this I don't know.
I think you always have to create the "initrd" in the target system after install the kernel, because it is a file system customized to that system. Mkinitrd needs to know the boot partition of that system to create the "/dev" directory. My best guess would be a post-install operation, if rpm creation permits it.
I never did an rpm creation.
 
Old 08-12-2004, 10:06 PM   #5
mindcry
Member
 
Registered: Nov 2002
Distribution: Libranet 2.8 Debian Solaris 9
Posts: 118

Original Poster
Rep: Reputation: 15
yeah me neiter. I usually use make install and it does everything for me
 
Old 08-12-2004, 10:20 PM   #6
osvaldomarques
Member
 
Registered: Jul 2004
Location: Rio de Janeiro - Brazil
Distribution: Conectiva 10 - Conectiva 8 - Slackware 9 - starting with LFS
Posts: 519

Rep: Reputation: 34
You can take a look into initrd. All you need is to uncompress it to a file and mount it using "-o loop". You will see a tiny root fs, containing the modules needed to mount the real root partition, the device used by your root partition and a "linuxrc" script which install the modules, check the root fs, mounts it and do a pivot to it.
 
  


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 make initrd.img for your kernel without boot disk? donaldtalbert Linux - Software 1 06-19-2005 10:30 PM
compiling kernel, initrd can't make image, 'loop devices busy' infamous41md Linux - Newbie 2 06-02-2004 11:59 AM
making an initrd file lyonsd Linux - General 4 03-14-2004 06:26 AM
New Kernel 2.4.22 won't make initrd jon1591 Linux - Newbie 3 12-13-2003 02:09 PM
How do you make a initrd and vmlinux file? britishnemesis Linux - General 10 11-03-2003 09:30 AM


All times are GMT -5. The time now is 08:53 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration