Well, my approach was to treat CDs and USB removables in as much as possible the same way. But I guess that will need interface changes and rewrites to be perfect. And with Intrepid Beta around the corner this is not going to happen now.
I made a new revision, where I included the cdrom-detect/try-usb template. I chose to scan USB devices in addition to CDs. But then separating out the scan loop actually makes a cleaner patch, and I ended up doing pretty much what Colin suggested :)
Well, my approach was to treat CDs and USB removables in as much as possible the same way. But I guess that will need interface changes and rewrites to be perfect. And with Intrepid Beta around the corner this is not going to happen now.
I made a new revision, where I included the cdrom-detect/ try-usb template. I chose to scan USB devices in addition to CDs. But then separating out the scan loop actually makes a cleaner patch, and I ended up doing pretty much what Colin suggested :)
http:// bazaar. launchpad. net/~tormodvold en/cdrom- detect/ usb-drive- install/ revision/ 431?compare_ revid=426