Shall we support the autorun feature?

Michael Vogt michael.vogt at canonical.com
Tue Jan 4 10:42:08 CST 2005


On Tue, Jan 04, 2005 at 01:59:02PM +0000, Scott James Remnant wrote:
> On Tue, 2005-01-04 at 11:36 +0100, Martin Pitt wrote:
> > It should be noted that our only use case so far - automatic Ubuntu CD
> > upgrades - does not need this feature. This was solved by a hal script
> > that checks whether an inserted CD is an Ubuntu one.
> > 
> How does this solve the primary use-case?
> 
> lit. "warty user puts the hoary CD in their drive"

Here is a overview about the "automatic cd upgrade case" (how I see
it):

Warty:
------
IMHO we can't really automate this with warty (because there is too
much stuff missing). 

My idea is to add a python "upgrade" script in the root-dir of the
cd. My plan is: 
1.  present a nice gtk dialog explaining what's going on
    ("distro will be upgraded")
2. call apt-cdrom add -m
3. check if hoary is in sources.list and if not ask to add it
4. run "synaptic --dist-upgrade --non-interactive"

But the cd is mounted "noexec" so unfortunately the user can't just
click on it and be done with it.

Hoary (and post-hoary):
-----------------------
upgrade-notifer hook into libhal and asks for "hal_property_modified"
events. It then checks if a new medium is mounted and if it contains a
ubuntu directory/link and calls "apt-cdrom ident" and checks if the
cdrom is already found in /var/lib/apt/cdroms.list. If not it asks the
user if he want's to scan the cd and calls "synaptic --add-cdrom"
(with a optional "--non-interactive" and "--dist-upgrade"). 

This part of upgrade-notifier and synaptic is finished and should work
already (if not, please report it as a bug). I tested it with Kamions
hoary cds. It still needs some love/testing to support complettely
automatic upgrade from cd. My idea is to ask:
"New ubuntu cd found. 
 Do you want: 
 [fully automatic upgrade] [manually add] [cancel]"

I hope this clarifies the issue a bit. I'm open for suggestions (as
always :)

thanks,
 Michael

-- 
Linux is not The Answer. Yes is the answer. Linux is The Question. - Neo



More information about the ubuntu-devel mailing list