[email protected]
[Top] [All Lists]

Bug#116288: marked as forwarded (mount: mount leaves type auto in /etc/m

Subject: Bug#116288: marked as forwarded mount: mount leaves type auto in /etc/mtab
From: Debian Bug Tracking System
Date: Tue, 14 Dec 2004 10:33:27 -0800
Your message dated Tue, 14 Dec 2004 19:18:05 +0100
with message-id <[email protected]>
has caused the Debian Bug report #116288,
regarding mount: mount leaves type auto in /etc/mtab
to be marked as having been forwarded to the upstream software
author(s) Andries Brouwer <[email protected]>.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

Received: (at 116288-forwarded) by bugs.debian.org; 14 Dec 2004 18:18:23 +0000
>From [email protected] Tue Dec 14 10:18:23 2004
Return-path: <[email protected]>
Received: from mnemosyne.csbnet.se [] (Debian-exim)
        by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
        id 1CeHFY-0003L2-00; Tue, 14 Dec 2004 10:18:16 -0800
Received: from kallisti.csbnet.se
        ([] helo=kallisti ident=Debian-exim)
        by mnemosyne.csbnet.se with esmtp (TLS-1.0:RSA_ARCFOUR_SHA:16)
        (Exim 4.34)
        id 1CeHFQ-0004Vh-QQ; Tue, 14 Dec 2004 19:18:08 +0100
Received: from weinholt by kallisti with local (Exim 4.34)
        id 1CeHFN-0004I6-Jh; Tue, 14 Dec 2004 19:18:05 +0100
Date: Tue, 14 Dec 2004 19:18:05 +0100
From: =?iso-8859-1?Q?G=F6ran?= Weinholt <[email protected]>
To: Andries Brouwer <[email protected]>
Cc: [email protected], Adam Lazur <[email protected]>
Subject: [util-linux] Patch to guess fstype in fake mode too
Message-ID: <[email protected]>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
        protocol="application/pgp-signature"; boundary="SkvwRMAIpAhPCcCJ"
Content-Disposition: inline
User-Agent: Mutt/1.5.6+20040907i
Sender: =?UTF-8?Q?G=C3=B6ran_Weinholt?= <[email protected]>
Delivered-To: [email protected]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-3.0 required=4.0 tests=BAYES_00 autolearn=no 

Content-Type: multipart/mixed; boundary="9jxsPFA5p3P2qPhR"
Content-Disposition: inline

Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hello Andries,

when /etc/init.d/checkroot.sh adds / to mtab it uses mount=A0-f to do
so. But if / has type auto in fstab, then it will have type auto in
mtab as well.

Here's a patch from Thomas Schoepf that seems to fix this problem. I
have tested it sucessfully with util-linux 2.12j and a ext3 fs on /.


G=F6ran Weinholt <[email protected]>
Debian developer, sysadmin, netadmin

Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="mount-auto.diff"
Content-Transfer-Encoding: quoted-printable

--- mount.c.orig        2004-12-11 01:20:55.000000000 +0100
+++ mount.c     2004-12-14 18:24:37.000000000 +0100
@@ -851,6 +851,10 @@
   if (!fake)
     mnt5_res =3D guess_fstype_and_mount (spec, node, &types, flags & ~MS_N=
+  else {
+    if (types && strcasecmp (types, "auto") =3D=3D 0)
+       types =3D guess_fstype (spec);
+  }
   if (fake || mnt5_res =3D=3D 0) {
       /* Mount succeeded, report this (if verbose) and write mtab entry.  =


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

Version: GnuPG v1.2.5 (GNU/Linux)



To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

<Prev in Thread] Current Thread [Next in Thread>
  • Bug#116288: marked as forwarded (mount: mount leaves type auto in /etc/mtab), Debian Bug Tracking System <=