I have a custom dracut module installed as a pre-mount hook (for Fedora 18). This shell script needs to echo some messages to the console, but I'm having no luck making that happen. I've tried: echo foo echo foo > /dev/console echo foo > /dev/kmsg . /lib/dracut-lib.sh info foo . /lib/dracut-lib.sh export DRACUT_QUIET="no" /bin/plymouth --hide-splash info foo
At various times, I've tried booting with rd.info=1, but my final solution needs to not require that. All of these things work as expected from the emergency_shell (reached by passing rd.break on the cmd-line). I've looked at that function and haven't seen what I'm missing. I'm starting to suspect the shell works because of the special setup in the dracut-emergency.service systemd unit, but haven't yet tried retooling things so that my hook scripts becomes not much more than a 'systemctl start mycustom.service', which in turn minics dracut-emergency.service but instead of a user shell, calls another shell script with the bulk of what's presenty in my hook script. Is there a simpler way or anybody know what I'm doing wrong or need to do differently? Given that I'm doing this all in a LiveOS image, my turn-around time for testing is rather slow and tedious. -- John Florian
-- livecd mailing list [email protected] https://admin.fedoraproject.org/mailman/listinfo/livecd
