LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 03-07-2008, 06:51 PM   #1
fancylad
Member
 
Registered: Mar 2008
Distribution: slackware
Posts: 175

Rep: Reputation: 19
linuxrc won't execute in initrd


I'm trying to make my own live cd based on Debian etch. I won't bother to get into the details of how I am accomplishing this. My question has to do with the linuxrc script. According to the man page for initrd, that script is supposed to be executed if it exists. Then, after it has finished the real file system gets mounted. My problem is that my linuxrc script never gets executed. The system just boots as per usual. I know that my initrd works because if I call my script init then it does get executed. The only problem with this is that if I try to exit the busybox shell I get a kernel panic about trying to kill init. What is a way around this? Why is the linuxrc script never exectued? (I have made sure that the execute bit is set.) Any help would be appreciated.
 
Old 03-08-2008, 05:06 AM   #2
doc.nice
Member
 
Registered: Oct 2004
Location: Germany
Distribution: Debian
Posts: 274

Rep: Reputation: 34
maybe you find some Information here:

http://linuxwiki.de/LinuxRc
 
Old 03-09-2008, 08:44 AM   #3
fotoguy
Senior Member
 
Registered: Mar 2003
Location: Brisbane Queensland Australia
Distribution: KirraMail Live Email Server
Posts: 1,279

Rep: Reputation: 61
What are you using to boot the live disc, isolinux, grub etc?.. Could you include the lines on the config file that you are using to boot the live disc, it may not be pointing to the right location of the linuxrc file.
 
Old 03-09-2008, 06:10 PM   #4
fancylad
Member
 
Registered: Mar 2008
Distribution: slackware
Posts: 175

Original Poster
Rep: Reputation: 19
Thanks for your suggestions. As it turns out I was actually using an initramfs because of the way I was formatting the file. For an initrd all you need to do is use gzip. But with an initramfs you must create a cpio archive then gzip it. I was using the initramfs method because that's the way the initrd.img-2.6.18-5-686 file that's in /boot of my Debian install is formatted. I have learnt that this file is actually an initramfs file and not a true initrd. Now that I am using an actual initrd the linuxrc script is being executed.
 
Old 03-11-2008, 03:44 AM   #5
fotoguy
Senior Member
 
Registered: Mar 2003
Location: Brisbane Queensland Australia
Distribution: KirraMail Live Email Server
Posts: 1,279

Rep: Reputation: 61
Good to hear that you have it working now.
 
  


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
syslinux +initrd/linuxrc ronkkrop Linux - General 2 01-21-2008 11:50 PM
Failed to execute /linuxrc when boot livecd, HELP! adriano_nerazz08 Linux From Scratch 0 10-27-2007 06:23 AM
adding linuxrc to initrd tkmsr Linux - Software 10 10-26-2007 04:38 PM
Setting up an initrd, having probs with /linuxrc jtX Linux - Newbie 1 12-03-2003 09:30 PM
Dissecting linuxrc ( initrd ) nxny Linux - General 2 03-02-2003 03:32 AM


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