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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
08-12-2004, 03:41 PM
|
#1
|
|
Member
Registered: Nov 2002
Distribution: Libranet 2.8 Debian Solaris 9
Posts: 118
Rep:
|
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?
|
|
|
|
08-12-2004, 09:44 PM
|
#2
|
|
Member
Registered: Jul 2004
Location: Rio de Janeiro - Brazil
Distribution: Conectiva 10 - Conectiva 8 - Slackware 9 - starting with LFS
Posts: 519
Rep:
|
Hi mindcry,
Initrd is created using the command "mkinitrd". See "man mkinirtd" for proper syntax details.
Good luck!
|
|
|
|
08-12-2004, 09:47 PM
|
#3
|
|
Member
Registered: Nov 2002
Distribution: Libranet 2.8 Debian Solaris 9
Posts: 118
Original Poster
Rep:
|
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.
|
|
|
|
08-12-2004, 10:02 PM
|
#4
|
|
Member
Registered: Jul 2004
Location: Rio de Janeiro - Brazil
Distribution: Conectiva 10 - Conectiva 8 - Slackware 9 - starting with LFS
Posts: 519
Rep:
|
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.
|
|
|
|
08-12-2004, 10:06 PM
|
#5
|
|
Member
Registered: Nov 2002
Distribution: Libranet 2.8 Debian Solaris 9
Posts: 118
Original Poster
Rep:
|
yeah me neiter. I usually use make install and it does everything for me 
|
|
|
|
08-12-2004, 10:20 PM
|
#6
|
|
Member
Registered: Jul 2004
Location: Rio de Janeiro - Brazil
Distribution: Conectiva 10 - Conectiva 8 - Slackware 9 - starting with LFS
Posts: 519
Rep:
|
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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 10:01 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|