upstart, plymouth and boot

Goh Lip g.lip at gmx.com
Mon May 31 13:16:00 UTC 2010


On 05/31/2010 08:13 PM, Merwin wrote:
> Hello,
>
> Introduction
> ============
>
> I'm working on a computer where / is crypted using cryptsetup. The
> passphrase is stored on an external USB key.
>
> When I boot my computer, a script placed in the initramfs mounts usb
> keys and try to find a key.key file. if found, it will be used to unlock
> the main disk.
>
> Problem
> ============
>
> I want to write a script that "pause" the boot until the usb key has
> been removed. The script part is my problem and not the subject of my
> mail. I'm using Ubuntu 10.04, and so, upstart.
>
> I would like to write a message during the splash screen, showing
> "Please remove the USB key and press enter..." until the usb key has
> been removed.
>
> What I did
> ============
>
> I wrote a file.conf in /etc/init with this:
>
> start on started plymouth-splash
> task
> script
> echo "JUST BEFORE"
> /bin/plymouth ask-question --command="echo" --prompt="It works?"
> sleep 5
> end script
>
> Nothing happended during boot. So, if somebody could show me an example
> of how to show a message using plymouth during the boot with upstart, I
> will be very happy !
>
> Thanks for your help and sorry for my english, I'm French.


Not sure if it helps, but have you tried editing /etc/init/plymouth.conf/ ?

of course, back up first.


Regards - Goh Lip




More information about the ubuntu-users mailing list