event based initramfs

Steve Langasek steve.langasek at ubuntu.com
Sun May 13 00:54:45 UTC 2012


On Sat, May 12, 2012 at 03:09:45PM -0400, Phillip Susi wrote:
> On 05/12/2012 02:09 PM, Steve Langasek wrote:
> > Strawman (not something we discussed in the UDS session):

> >  - mountall runs as a job that waits indefinitely for the root filesystem
> >  - failsafe-recover is a job that sets a timeout; if the timeout is hit,
> >    it *deactivates* (but does not kill) plymouth and spawns a recovery
> >    shell.
> >  - if the device eventually arrives after the shell has been started,
> >    mountall emits an "I'm done" event that stops the shell job, restarts the
> >    plymouth splash, and pivots root.

> > This would be a useful usability improvement over what we have now.

> So the gain is the ability to abort the rescue shell if the root device
> shows up after the timeout?  Couldn't this be done instead with a small
> tweak the the existing scripts so they run the rescue shell in parallel
> with continuing wait-for-root without a timeout, and if it returns, kill
> the shell?

There are many ways that it could be done; using an event-based system that
matches the way things are done post-initramfs is probably the simplest and
most maintainable, however.

-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                    http://www.debian.org/
slangasek at ubuntu.com                                     vorlon at debian.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 828 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-devel/attachments/20120512/01f12fe0/attachment.pgp>


More information about the ubuntu-devel mailing list