Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
howto pass arguments to init (inside INITRAMFS)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
flower1024
n00b
n00b


Joined: 04 Sep 2006
Posts: 7

PostPosted: Thu Sep 07, 2006 12:24 pm    Post subject: howto pass arguments to init (inside INITRAMFS) Reply with quote

hi there,

how can i pass arguments by grub cmdline to my init script inside initramfs?

take care of initramfs, cause its differs from initrd! (Description: /usr/src/linux/Documentation/filesystems/ramfs-rootfs-initramfs.txt )

even when i mount proc the /proc/cmdline which normally works is not there....

any hints?

regards
flower
Back to top
View user's profile Send private message
yabbadabbadont
Advocate
Advocate


Joined: 14 Mar 2003
Posts: 4791
Location: 2 exits past crazy

PostPosted: Sun Sep 10, 2006 9:13 am    Post subject: Reply with quote

I don't have a direct answer for your question, but I know that parameters are passed to the initramfs that is used by gensplash and is created by splashutils. You could install them and use them to generate an initramfs. (you don't have to actually use it) Then you could use cpio to extract the initramfs so that you can see how it handles the splash parameters that are passed on the grub kernel line.
Back to top
View user's profile Send private message
flower1024
n00b
n00b


Joined: 04 Sep 2006
Posts: 7

PostPosted: Sun Sep 10, 2006 9:55 am    Post subject: Reply with quote

i did that already.
the problem is when gensplash creates the initramfs there is no init. JUST the splash_helper which is called directly by the kernel :-(

good idea :-)
Back to top
View user's profile Send private message
yabbadabbadont
Advocate
Advocate


Joined: 14 Mar 2003
Posts: 4791
Location: 2 exits past crazy

PostPosted: Sun Sep 10, 2006 5:04 pm    Post subject: Reply with quote

Then extract the initramfs that is created by genkernel. I'm sure it has what your are looking for. Actually, you will probably need to search the forums about that. I believe that the initramfs created by genkernel is actually a series of cpio archives that are simply cat'ed together and then compressed. I found a tool here somewhere one time to split them apart.
Back to top
View user's profile Send private message
amne
Bodhisattva
Bodhisattva


Joined: 17 Nov 2002
Posts: 6377
Location: Graz / EU

PostPosted: Fri Nov 17, 2006 11:56 am    Post subject: Reply with quote

Moved from Portage & Programming to Duplicate Threads.
Seems to be the same question as here, please don't crosspost.
_________________
Dinosaur week! (Ok, this thread is so last week)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum