-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bootchart_init=... does not nothing i.e. use /sbin/init instead of given init command #35
Comments
That's strange, which bootchart2 / kernel version are you using? Could you please add these lines before the loop: echo and then check dmesg | tail for messages. Related to this, Issue #27 suggests to completely remove the loop and it makes sense since it matches bootparam(7) :| |
I am using bootchart2 0.14.1, kernel 3.3.4 on archlinux 32 bits which uses an initrd so in dmesg, I see
which explains the bug I am reporting. then why it is that way,I don't know I can't find doc about the parameters passed to init |
There weren't changes in bootchartd from 0.14.1 to 0.14.2 so no need to test another version. The relevant bootparam documentation is this paragraph under "The Argument List" chapter: What does cat /proc/1/cmdline say? |
the output of echo |
The missing space is not a problem, will try to reproduce here |
This is still broken... I looked into it, and the current bootchart code tries to find However, I tried modifying the code in order to check for What did work is passing the real init as a normal argument ( |
@maleadt Isn't that what 130d775 is supposed to do? |
Hmm, most strange. I'm using Arch Linux, currently at 3.9.4. Booting the following
... with additional kernel arguments
|
I was trying to run /sbin/e4rat-preload as init just after bootchartd
So I used the kernel command line option bootchart_init=/sbin/e4rat-preload along side the other init=/sbin/bootchartd (...)
But it seems the usual /sbin/init was running. I was no mention of e4rat-preload in /var/log/bootchart.png
Looking at /sbin/bootchartd line 176, bootchartd assume that the kernel command line option are passed as arguments to the init process. Well, I don't know if it's the case but not here.
So I fixed it with using
for i in $(cat /proc/cmdline); do
It worked and used e4rat-preload as 2nd init process. I don't know if it has any side effect regarding other option or behavior
The text was updated successfully, but these errors were encountered: