mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* A mount that follows a symlink at /etc/mtab
@ 2003-08-10  8:18 Thomas Hood
  0 siblings, 0 replies; only message in thread
From: Thomas Hood @ 2003-08-10  8:18 UTC (permalink / raw)
  To: linux-kernel

In the past wishes have been expressed here for a mount program
that would follow a symbolic link at /etc/mtab.  Then, if the root
filesystem is read-only, /etc/mtab can be made a symlink into a
filesystem that is writable.  (Of course, that would mean that the
mtab could not be written until the latter filesystem was mounted;
but this problem can be overcome with a "mount -n", "mount -f"
sequence.)

I have patched the latest mount release to follow a symlink at
/etc/mtab .  Unlike some earlier patches that have been posted
elsewhere, this one follows a symlink chain to the end and makes
mount create lockfiles and temporary files in the directory of
the link target.  The patch is available via this page:
    http://panopticon.csustan.edu/thood/readonly-root.html

The new version of the mount program (2.12pre) to which it applies
is available here:
    ftp://ftp.win.tue.nl/pub/home/aeb/linux-local/utils/util-linux/

If you are interested in seeing the mount program enhanced in this
way then please try it out and let me know whether or not there are
any problems.  If people can confirm that I haven't introduced any
bugs (I have tried to be careful) then I'll submit this patch
upstream.
--
Thomas Hood


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-08-10  8:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-10  8:18 A mount that follows a symlink at /etc/mtab Thomas Hood

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®