mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-25 03:01:36 +01:00
8e53feeaf65de52c408591f7e16dec8d8b5ca16d
This commit is contained in:
@@ -473,14 +473,6 @@ pre{ white-space:pre }
|
||||
<p>This just counts every second forever and does not give you a shell.</p>
|
||||
</div>
|
||||
<div class="paragraph">
|
||||
<p>And to pass command line arguments to the program, you can use <code>--kernel-cli-after-dash</code>:</p>
|
||||
</div>
|
||||
<div class="literalblock">
|
||||
<div class="content">
|
||||
<pre>./run --kernel-cli 'init=/bin/sh' --kernel-cli-after-dash '-c "echo asdf; pwd; ls"'</pre>
|
||||
</div>
|
||||
</div>
|
||||
<div class="paragraph">
|
||||
<p>This method is not very flexible however, as it is hard to reliably pass multiple commands and command line arguments to the init with it, as explained at: <a href="init-environment.html">Section 7.4, “Init environment”</a>.</p>
|
||||
</div>
|
||||
<div class="paragraph">
|
||||
|
||||
Reference in New Issue
Block a user