util-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Karel Zak <kzak@redhat.com>
To: Phillip Susi <psusi@ubuntu.com>
Cc: util-linux@vger.kernel.org
Subject: Re: Remount failure without fstab or mtab
Date: Thu, 18 Dec 2014 10:52:22 +0100	[thread overview]
Message-ID: <20141218095222.GD19904@x2.net.home> (raw)
In-Reply-To: <5491A048.3070103@ubuntu.com>

On Wed, Dec 17, 2014 at 10:24:56AM -0500, Phillip Susi wrote:
> I have a bug report in debian about "mount -o remount,rw /" failing
> because /etc/fstab does not contain an entry for the root fs, and
> /proc is not mounted ( booting with init=/bin/bash for recovery ).
> I'm not sure whether this is really a bug or not so I thought I'd ask.

This is bug, kernel does not require <source> for MS_REMOUNT, so the 
current mount(8) behavior is too restrictive.

For standard use-case we want to read mtab (/proc/self/mountinfo) to
gather all mount options for the mount syscall, but this behavior 
should be optional. 

Fixed by commit 01966ce852ac6c46e7e35a8e4f981dea88620ff8,

    Karel

-- 
 Karel Zak  <kzak@redhat.com>
 http://karelzak.blogspot.com

      parent reply	other threads:[~2014-12-18  9:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-17 15:24 Remount failure without fstab or mtab Phillip Susi
2014-12-17 23:02 ` Dale R. Worley
2014-12-18  9:52 ` Karel Zak [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20141218095222.GD19904@x2.net.home \
    --to=kzak@redhat.com \
    --cc=psusi@ubuntu.com \
    --cc=util-linux@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).