[Pkg-sysvinit-devel] Bug#494001: Bug#494001: Bug#494001: Processed: Re: Bug#494001: debian-installer: /etc/mtab must be a symlink to /proc/mounts with linux >= 2.6.26
Roger Leigh
rleigh at codelibre.net
Sun Oct 23 14:26:35 UTC 2011
tags 494001 + patch
thanks
On Tue, May 12, 2009 at 05:43:28AM +1000, Kel Modderman wrote:
> > Does checkroot.sh need to change at all with respect to what it does to
> > /etc/mtab?
[patch]
I've attached a new patch against the current sources to implement
this. Note that it only handles migration in one direction, that
it, it will not switch /back/ from a symlink in the absence of
/proc/mounts. While this could be added, is this a situation we
really need to cater for?
There are no OS checks--this permits kfreebsd support and future
Hurd support. The logic is in the shell function mtab_migrate
to permit the clean addition of special casing for e.g. Hurd.
This patch, like /dev/shm → /run/shm and /etc/network/ifstate →
/run/network/ifstate, does not preserve symlinks to places other
than /proc/* (the assumption being that symlinks to other files
were hacks to permit read-only root but still being static files).
Such hacks are no longer needed.
Regards,
Roger
--
.''`. Roger Leigh
: :' : Debian GNU/Linux http://people.debian.org/~rleigh/
`. `' Printing on GNU/Linux? http://gutenprint.sourceforge.net/
`- GPG Public Key: 0x25BFB848 Please GPG sign your mail.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Migrate-etc-mtab-to-symlink-to-proc-mounts-when-poss.patch
Type: text/x-diff
Size: 4236 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-sysvinit-devel/attachments/20111023/3993fa3f/attachment-0002.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Close-494001.patch
Type: text/x-diff
Size: 904 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-sysvinit-devel/attachments/20111023/3993fa3f/attachment-0003.patch>
More information about the Pkg-sysvinit-devel
mailing list