vector<CdromDevice>
pkgUdevCdromDevices::Scan()
{
- return ScanForRemovable(true);
+ bool CdromOnly = _config->FindB("APT::cdrom::CdromOnly", true);
+ return ScanForRemovable(CdromOnly);
};
/*}}}*/
/*{{{*/
to Thorsten Spindler (LP: #85590)
* apt-pkg/contrib/fileutl.cc, apt-pkg/deb/dpkgpm.cc:
- honor Dpkg::Chroot-Directory in the RunScripts*() methods
+ * apt-pkg/contrib/cdromutl.{cc,h}, apt-pkg/cdrom.{cc,h}:
+ - deal with missing FSTAB_DIR when using libudev to discover cdrom
+ - add experimental APT::cdrom::CdromOnly option (on by default).
+ When this is set to false apt-cdrom will handle any removable
+ deivce (like a usb-stick) as a "cdrom/dvd" source
-- Michael Vogt <michael.vogt@ubuntu.com> Thu, 10 Feb 2011 17:37:56 +0100
cdrom
{
// do auto detection of the cdrom mountpoint
- AutoDetect "true";
+ AutoDetect "true";
+ // when auto-detecting, only look for cdrom/dvd. when this is false
+ // it will support any removable device as a "cdrom" source
+ CdromOnly "true";
// cdrom mountpoint (needs to be defined in fstab if AutoDetect is not used)
mount "/cdrom";