event based initramfs

Phillip Susi psusi at ubuntu.com
Sat May 12 19:09:45 UTC 2012


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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?

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJPrrV5AAoJEJrBOlT6nu75T2wIALKA4BgGM84uToKXVK/WU20r
2etcH8ho9ztuEwJ5uoVeJ0U4cgLHT+FXxC5JNz7SoQAKtvH21hgg+/V01t+Vx3K2
TGNQLyJDCaqLotZvCP/8vhmzTzwlT5CUbokNh3S1nOvT/0J/hfjODCZuNtC6xaH2
WEKztAdTa++9ziEwywU7Rfyt2RPLWPqKyT1SzbHMfjh0+AOPxJ2/bKvpPUubQce/
iFeUa+TOcadnjqxz+JWE/OwrrFWjFoSaDy8lRTsnLREVAQTLV8Wuz5RjgGx9e+OQ
RiLyZP6XOzJqDy+fs+Qza3dHyqoS68/DyPS6cTg6kmU2huttFKvkCC2wUHtWVkU=
=spS5
-----END PGP SIGNATURE-----



More information about the ubuntu-devel mailing list