<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Since my distro is based on Archlinux I
might go for the initrd-way.<br>
Currently I'm testing the shutdown-script way ...<br>
<br>
Am 15.09.2012 10:24, schrieb Philip Müller:<br>
</div>
<blockquote cite="mid:50543B2B.8020706@manjaro.org" type="cite">Yes
it is the root-disk. I managed it by overwritting all messages
with attached script.
<br>
No issues at all. It displays my message and reacts as wanted. No
hangups etc.
<br>
<br>
Am 14.09.2012 19:20, schrieb Lennart Poettering:
<br>
<blockquote type="cite">On Fri, 14.09.12 00:14, Philip Müller
(<a class="moz-txt-link-abbreviated" href="mailto:philm@manjaro.org">philm@manjaro.org</a>) wrote:
<br>
<br>
<blockquote type="cite">So, seems to work. I attached my current
scripts and two picutes
<br>
with error messages.
<br>
Also I added now *read -t 30* and fixed hanging by pressing
the
<br>
Enter-key. Is there any way
<br>
to hide those error messages (seems the system still tries to
read
<br>
from CD after it got ejected),
<br>
so my message gets displayed clean? Maybe there is a way to
get it cleaner.
<br>
</blockquote>
You are ejecting the root disk? Well, that's difficult to get
right.
<br>
<br>
You could transition back into an initrd of some kind and print
the
<br>
message there:
<br>
<br>
<a class="moz-txt-link-freetext" href="http://www.freedesktop.org/wiki/Software/systemd/InitrdInterface">http://www.freedesktop.org/wiki/Software/systemd/InitrdInterface</a>
<br>
<br>
Or you could print this message from a script in
<br>
/usr/lib/systemd/system-shutdown and hope for the best. (And
turn off
<br>
console printk output via /proc/sys/kernel/printk first). Since
the
<br>
systemd-shutdown binary (which runs at the very end) locks
itself into
<br>
memory you might be able to get away with that. That said, the
initrd
<br>
thing is the only fix that would really get this right.
<br>
<br>
Lennart
<br>
<br>
</blockquote>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
systemd-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:systemd-devel@lists.freedesktop.org">systemd-devel@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freedesktop.org/mailman/listinfo/systemd-devel">http://lists.freedesktop.org/mailman/listinfo/systemd-devel</a>
</pre>
</blockquote>
<br>
</body>
</html>