<tt><font size=2>&gt; From: &quot;Brian C. Lane&quot; &lt;bcl@redhat.com&gt;</font></tt>
<br><tt><font size=2>&gt; <br>
&gt; On Fri, Mar 08, 2013 at 02:55:40PM -0500, John.Florian@dart.biz wrote:<br>
&gt; &gt; I have a custom dracut module installed as a pre-mount hook (for
Fedora <br>
&gt; &gt; 18). &nbsp;This shell script needs to echo some messages to the
console, but <br>
&gt; &gt; I'm having no luck making that happen. &nbsp;I've tried:<br>
&gt; <br>
&gt; This is similar to what we ran into with checkisomd5, now that systemctl<br>
&gt; is being used by dracut you need to setup a service with access to
the<br>
&gt; console in order for anything to be output (or input).<br>
&gt; <br>
&gt; The service file for that looks like this:<br>
&gt; <br>
&gt; [Unit]<br>
&gt; Description=Media check on %f<br>
&gt; DefaultDependencies=no<br>
&gt; Before=shutdown.target<br>
&gt; <br>
&gt; [Service]<br>
&gt; Type=oneshot<br>
&gt; RemainAfterExit=no<br>
&gt; ExecStart=/bin/checkisomd5 --verbose %f<br>
&gt; StandardInput=tty-force<br>
&gt; StandardOutput=inherit<br>
&gt; StandardError=inherit<br>
&gt; TimeoutSec=0<br>
&gt; <br>
&gt; You can look at commits 040f3883 and 5204d1d3 in dracut to see how
it is<br>
&gt; setup.<br>
&gt; <br>
&gt; -- <br>
&gt; Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard,
<br>
&gt; WA (PST8PDT)<br>
</font></tt>
<br>
<br><tt><font size=2>Thanks for that Brian! &nbsp;I had pretty much came
to that conclusion before calling it a day on Friday, but it's very helpful
to know that the effort to go that route won't be wasted.</font></tt>
<br><font size=2 face="sans-serif"><br>
--<br>
John Florian</font>
<br>
<br>