Comment 13 for bug 7866

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Wed, 9 Feb 2005 01:55:37 +0100
From: martin f krafft <email address hidden>
To: Matt Zimmerman <email address hidden>
Cc: <email address hidden>
Subject: Re: Bug#282344: apt-cdrom: please change default CD-ROM mountpoint

--mhOzvPhkurUs4vA9
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

also sprach Matt Zimmerman <email address hidden> [2005.02.09.0140 +0100]:
> Not exactly; it would need to parse /etc/fstab to know which one to use.

True, although I wonder how many systems have a /media/cdrom
directory and continue to use /cdrom.

Anyway, parsing /etc/fstab should not be that hard, no?

if grep -q '[[:space:]]/media/cdrom' /etc/fstab; then
  if grep -q '[[:space:]]/cdrom' /etc/fstab; then
    # use /cdrom
  else
    # use /media/cdrom
  fi
else
  # use /cdrom
fi

This is conservative...

--=20
 .''`. martin f. krafft <email address hidden>
: :' : proud Debian developer, admin, user, and author
`. `'`
  `- Debian - when you have better things to do than fixing a system
=20
Invalid/expired PGP subkeys? Use subkeys.pgp.net as keyserver!

--mhOzvPhkurUs4vA9
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQFCCV+JIgvIgzMMSnURArtkAJ0UPhunEUBOsI2/CJY5c8um8uc6xQCgiywl
buuOgPV6Zpq18AKNEpqhb68=
=Orue
-----END PGP SIGNATURE-----

--mhOzvPhkurUs4vA9--