View previous topic :: View next topic |
Author |
Message |
flower1024 n00b
Joined: 04 Sep 2006 Posts: 7
|
Posted: Thu Sep 07, 2006 12:24 pm Post subject: howto pass arguments to init (inside INITRAMFS) |
|
|
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 |
|
|
yabbadabbadont Advocate
Joined: 14 Mar 2003 Posts: 4791 Location: 2 exits past crazy
|
Posted: Sun Sep 10, 2006 9:13 am Post subject: |
|
|
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. _________________
Bones McCracker wrote: | On the other hand, regex is popular with the ladies. |
|
|
Back to top |
|
|
flower1024 n00b
Joined: 04 Sep 2006 Posts: 7
|
Posted: Sun Sep 10, 2006 9:55 am Post subject: |
|
|
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 |
|
|
yabbadabbadont Advocate
Joined: 14 Mar 2003 Posts: 4791 Location: 2 exits past crazy
|
Posted: Sun Sep 10, 2006 5:04 pm Post subject: |
|
|
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. _________________
Bones McCracker wrote: | On the other hand, regex is popular with the ladies. |
|
|
Back to top |
|
|
amne Bodhisattva
Joined: 17 Nov 2002 Posts: 6378 Location: Graz / EU
|
Posted: Fri Nov 17, 2006 11:56 am Post subject: |
|
|
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 |
|
|
|