summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
bf783d9)
the dlopen of libudev for automatic cdrom detection
the umount again
* methods/cdrom.cc:
- fixes in multi cdrom setup code
the umount again
* methods/cdrom.cc:
- fixes in multi cdrom setup code
+ - add new "Acquire::cdrom::AutoDetect" variable that enables/disables
+ the dlopen of libudev for automatic cdrom detection
-- Michael Vogt <michael.vogt@ubuntu.com> Fri, 18 Dec 2009 16:54:18 +0100
-- Michael Vogt <michael.vogt@ubuntu.com> Fri, 18 Dec 2009 16:54:18 +0100
+ // do auto detection of the cdrom mountpoint
+ AutoDetect "true";
+
+ // cdrom mountpoint (needs to be defined in fstab if AutoDetect is not used)
mount "/cdrom";
// You need the trailing slash!
mount "/cdrom";
// You need the trailing slash!
+ bool AutoDetect = _config->FindB("Acquire::cdrom::AutoDetect", true);
CDROM = _config->FindDir("Acquire::cdrom::mount","/cdrom/");
if (Debug)
clog << "Looking for CDROM at " << CDROM << endl;
CDROM = _config->FindDir("Acquire::cdrom::mount","/cdrom/");
if (Debug)
clog << "Looking for CDROM at " << CDROM << endl;
string NewID;
while (CurrentID.empty() == true)
{
string NewID;
while (CurrentID.empty() == true)
{
- if (CDROM == "apt-udev-auto/")
AutoDetectAndMount(Get, NewID);
if(!IsMounted(CDROM))
AutoDetectAndMount(Get, NewID);
if(!IsMounted(CDROM))