- if (UnmountCdrom(CDROM) == false)
- return _error->Error("Unable to unmount the CD-ROM in %s, it may still be in use.",
+ if (_config->FindB("APT::CDROM::NoMount",false) == false &&
+ UnmountCdrom(CDROM) == false)
+ return _error->Error(_("Unable to unmount the CD-ROM in %s, it may still be in use."),