Re: Remount failure without fstab or mtab

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
 http://karelzak.blogspot.com
--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux