Comment 9 for bug 9184

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

Message-ID: <email address hidden>
Date: Fri, 15 Oct 2004 23:00:13 -0700
From: <email address hidden> (Joshua Kwan)
To: Farzad FARID <email address hidden>, <email address hidden>
Subject: Re: Bug#276722: discover1: "set -e" prevents cdrom mountpoint creation

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

On Fri, Oct 15, 2004 at 11:56:16PM +0200, Farzad FARID wrote:
> On my freshly installed Debian unstable, /etc/init.d/discover fails to
> create the symlinks in /dev and /media. I trace this down with "sh -x
> /etc/init.d/discover start" and found out that the script stopped on
> an error while grepping /proc/mounts, therefore never finishing its
> job.

Add set -e back, and does changing this line:

        mountsent=3D"$(grep " $CDMOUNT " /proc/mounts)"

to either

  mountsent=3D$(grep " $CDMOUNT " /proc/mounts)

or

  mountsent=3D$(grep " $CDMOUNT " /proc/mounts || true)

work as well?

Thanks for testing.

--=20
Joshua Kwan

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

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: http://triplehelix.org/~joshk/pubkey_gpg.asc

iQIVAwUBQXC47KOILr94RG8mAQKsCRAA7H7aOtv6ixcHNyEzmcOMlJau3y3PAJ36
KyBCp2IkzFvERKXBsiPhe6lqHewnYmOQ26tMXsguLQV64kPuFx61qepU/XLzHh1z
2ULlY3Ma2/UZ2WP8McuCt9igKE2audQeGKpULfOG1WQhWzdo7NTOPbT5ikYMYoR8
0qVb/hPwM5NhG+wRL7tn2Zj4og+SEwRqdorl9b+ND+fAQKINNS2aSznl29fLIvnv
kEar86S3QpqngW++iMzDyv2Tp1dTPBmqMvYaWrHBcBmlJSLu4h57TVSPAFDqpCwD
KFbhV2i81Pmzd+hkQA8Izg1r0aolsGtiTpgRw9F5Iu/ifyKTSOGYbgcwdx7Mh0gl
VrkrNbMod+4Jc1ClynuehFhzvFSkNu7Zosd9BcoTrzhPQvKljmNWBhECVAM5dDZK
QZd3DLjnX409Vs4lgjjkaP/hWDZHUJHari0EY7SVbSXpwQQ+DfEqyaYDulWF2P9n
qLsLhabC9xmBWdYwD15ZgD2NvwWQUBdHUC+TE1PphvxukzvXdUhRPEUjpgc0H1W/
c8RZAqma/8FreVDePgQcOuc9KkTWrWG5XYJEjXGRJy4ZZIeflVXlme3xqnW0D1Cc
NCll3zKKBHB6rdbXxTD2+4zvKCkrVMYkznr02RiHUkzwh0UyVBLTQm9oDyxW0Mle
gzky//zGoCk=
=4iRh
-----END PGP SIGNATURE-----

--z6Eq5LdranGa6ru8--