eject from halt

Scott James Remnant scott at netsplit.com
Wed Jun 4 16:13:34 BST 2008


On Tue, 2008-06-03 at 22:59 -0400, Jeremy Katz wrote:

> Attached is a simple patch to add support to upstart's halt command for
> ejecting a given device.  This is really nice to make it so that you can
> eject a livecd on shutdown without having to do some of the contortions
> that are currently done on the shutdown of the Ubuntu livecd ;)
> 
> And while a little ugly, it's not any worse than having -h and -i there.
> And it makes the rest of the shutdown process substantially cleaner.
> Patch is  against current bzr trunk, although I've only tested atm with
> it applied to 0.3.19.  There's nothing to speak of changed, though, so
> should be fine.
> 
I'd actually planned to remove both -h and -i from reboot, since they're
poorly duplicating functionality that's better off handled elsewhere.

Could this not be better handled by a call to eject in the shutdown
scripts?

Scott
-- 
Have you ever, ever felt like this?
Had strange things happen?  Are you going round the twist?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/upstart-devel/attachments/20080604/d8fe4623/attachment.pgp 


More information about the upstart-devel mailing list