[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#712433: Please add a way to disable the udev code in apt-cdrom



On Sun, Jun 16, 2013 at 09:19:07AM +0200, David Kalnischkies wrote:
>On Sun, Jun 16, 2013 at 12:26 AM, Steve McIntyre <steve@einval.com> wrote:
>> (a) if apt can't find a CD to add for some reason, please *say so*
>>     rather than just saying "Repeat this process..." It currently also
>>     returns 0, suggesting even more that everything worked fine.
>
>I will try to have a look later; unfortunately the code in apt-cdrom isn't
>really actively maintained by anyone…

ACK, I understand that. If it wasn't in C++ I'd be volunteering to
help. :-/

>> (b) add an option "Acquire::cdrom::UseUdev" or similar to allow people
>>     (me!) to disable the udev code and allow direct use of an
>>     already-mounted loopback ISO image or similar.
>
>"acquire::cdrom::autodetect=0" should disable udev usage.

Which isn't documented anywhere I can find, unfortunately. :-(

>Use "-o acquire::cdrom::mount=/path/to/media" (or -d) to specify
>the directory to look for the disk and call apt-cdrom with
>"-o APT::CDROM::NoMount=1" (or -m) to prevent it from trying to
>mount/unmount a disc at that location.

Yup. I was trying those, but the autodetect was causing it to fail.

>We have a small testcase covering some bits of apt-cdrom which uses
>all this, so have a look if you want to see it in "action":
>http://anonscm.debian.org/gitweb/?p=apt/apt.git;a=blob;f=test/integration/test-apt-cdrom;h=f1c4fd9d32daec40f912b3cea220724fd59c83f7;hb=HEAD
>(and the code "creating" a "CD-ROM" for the test)
>http://anonscm.debian.org/gitweb/?p=apt/apt.git;a=blob;f=test/integration/framework;h=31b12e8bfb90985310c65f531765c46763456fc4;hb=HEAD#l736

Right.

-- 
Steve McIntyre, Cambridge, UK.                                steve@einval.com
"Every time you use Tcl, God kills a kitten." -- Malcolm Ray


Reply to: