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