FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian Development

 
 
LinkBack Thread Tools
 
Old 12-13-2011, 07:54 PM
Roger Leigh
 
Default Switching /etc/mtab to /proc/mounts and removing /lib/init/rw

Hi folks,

The above have been mentioned a few times during the course of the
year, but we're now at the point where all the prerequisites have
been satisfied, and there are no blockers present to proceed.

I've put a proposed set of packages at
http://people.debian.org/~rleigh/sysvinit/
which I plan to upload to experimental soon, and then to unstable
following some testing.

If you have a few minutes to spare, some testing of the packages
would be appreciated, so make sure there are no corner cases we've
missed. Upgrading initscripts should result in /etc/mtab being
switched to a symlink at the next reboot. /lib/init/rw will also
no longer mount a tmpfs on reboot, though the directory itself will
need to remain until wheezy+1, due to the upgrade ordering--packages
migrate after initscripts has run its postinst, requiring its
continued presence.

I'd be grateful for any feedback.


Thanks,
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.


--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20111213205414.GK17458@codelibre.net">http://lists.debian.org/20111213205414.GK17458@codelibre.net
 
Old 12-13-2011, 08:08 PM
"brian m. carlson"
 
Default Switching /etc/mtab to /proc/mounts and removing /lib/init/rw

On Tue, Dec 13, 2011 at 08:54:14PM +0000, Roger Leigh wrote:
> If you have a few minutes to spare, some testing of the packages
> would be appreciated, so make sure there are no corner cases we've
> missed. Upgrading initscripts should result in /etc/mtab being
> switched to a symlink at the next reboot. /lib/init/rw will also
> no longer mount a tmpfs on reboot, though the directory itself will
> need to remain until wheezy+1, due to the upgrade ordering--packages
> migrate after initscripts has run its postinst, requiring its
> continued presence.
>
> I'd be grateful for any feedback.

You probably want to handle the case where /etc/mtab is a symlink to
/proc/self/mounts as well, since it's equivalent, and I know some people
(read: at least me) have already made that change.

--
brian m. carlson / brian with sandals: Houston, Texas, US
+1 832 623 2791 | http://www.crustytoothpaste.net/~bmc | My opinion only
OpenPGP: RSA v4 4096b: 88AC E9B2 9196 305B A994 7552 F1BA 225C 0223 B187
 
Old 12-13-2011, 08:32 PM
Roger Leigh
 
Default Switching /etc/mtab to /proc/mounts and removing /lib/init/rw

On Tue, Dec 13, 2011 at 09:08:10PM +0000, brian m. carlson wrote:
> On Tue, Dec 13, 2011 at 08:54:14PM +0000, Roger Leigh wrote:
> > If you have a few minutes to spare, some testing of the packages
> > would be appreciated, so make sure there are no corner cases we've
> > missed. Upgrading initscripts should result in /etc/mtab being
> > switched to a symlink at the next reboot. /lib/init/rw will also
> > no longer mount a tmpfs on reboot, though the directory itself will
> > need to remain until wheezy+1, due to the upgrade ordering--packages
> > migrate after initscripts has run its postinst, requiring its
> > continued presence.
> >
> > I'd be grateful for any feedback.
>
> You probably want to handle the case where /etc/mtab is a symlink to
> /proc/self/mounts as well, since it's equivalent, and I know some people
> (read: at least me) have already made that change.

It does--it will switch to /proc/mounts unless /etc/mtab is already
a symlink to /proc/mounts. It will therefore correct any symlinks
which point to other places as well as the usual case of it being a
file.


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.


--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20111213213240.GO17458@codelibre.net">http://lists.debian.org/20111213213240.GO17458@codelibre.net
 
Old 12-13-2011, 08:34 PM
Roger Leigh
 
Default Switching /etc/mtab to /proc/mounts and removing /lib/init/rw

On Tue, Dec 13, 2011 at 09:32:40PM +0000, Roger Leigh wrote:
> On Tue, Dec 13, 2011 at 09:08:10PM +0000, brian m. carlson wrote:
> > On Tue, Dec 13, 2011 at 08:54:14PM +0000, Roger Leigh wrote:
> > > If you have a few minutes to spare, some testing of the packages
> > > would be appreciated, so make sure there are no corner cases we've
> > > missed. Upgrading initscripts should result in /etc/mtab being
> > > switched to a symlink at the next reboot. /lib/init/rw will also
> > > no longer mount a tmpfs on reboot, though the directory itself will
> > > need to remain until wheezy+1, due to the upgrade ordering--packages
> > > migrate after initscripts has run its postinst, requiring its
> > > continued presence.
> > >
> > > I'd be grateful for any feedback.
> >
> > You probably want to handle the case where /etc/mtab is a symlink to
> > /proc/self/mounts as well, since it's equivalent, and I know some people
> > (read: at least me) have already made that change.
>
> It does--it will switch to /proc/mounts unless /etc/mtab is already
> a symlink to /proc/mounts. It will therefore correct any symlinks
> which point to other places as well as the usual case of it being a
> file.

Actually, /proc/self/mounts would be preserved; any symlink into
/proc is considered acceptable. Anything else would be changed.

--
.'`. 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.


--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20111213213430.GP17458@codelibre.net">http://lists.debian.org/20111213213430.GP17458@codelibre.net
 
Old 12-14-2011, 11:41 PM
Roger Leigh
 
Default Switching /etc/mtab to /proc/mounts and removing /lib/init/rw

On Tue, Dec 13, 2011 at 09:08:10PM +0000, brian m. carlson wrote:
> On Tue, Dec 13, 2011 at 08:54:14PM +0000, Roger Leigh wrote:
> > If you have a few minutes to spare, some testing of the packages
> > would be appreciated, so make sure there are no corner cases we've
> > missed. Upgrading initscripts should result in /etc/mtab being
> > switched to a symlink at the next reboot. /lib/init/rw will also
> > no longer mount a tmpfs on reboot, though the directory itself will
> > need to remain until wheezy+1, due to the upgrade ordering--packages
> > migrate after initscripts has run its postinst, requiring its
> > continued presence.
> >
> > I'd be grateful for any feedback.
>
> You probably want to handle the case where /etc/mtab is a symlink to
> /proc/self/mounts as well, since it's equivalent, and I know some people
> (read: at least me) have already made that change.

Regarding the issue with booting, this was due to a problem with
startpar and should now be fixed (#652097). Fixed packages are
at http://people.debian.org/~rleigh/sysvinit/ and it will hit
experimental shortly. I'd be grateful to know if this fixes the
issue for you as well.


Thanks,
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.


--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20111215004100.GZ17458@codelibre.net">http://lists.debian.org/20111215004100.GZ17458@codelibre.net
 
Old 12-15-2011, 07:35 PM
Vincent Danjean
 
Default Switching /etc/mtab to /proc/mounts and removing /lib/init/rw

Le 13/12/2011 22:32, Roger Leigh a écrit :

On Tue, Dec 13, 2011 at 09:08:10PM +0000, brian m. carlson wrote:

On Tue, Dec 13, 2011 at 08:54:14PM +0000, Roger Leigh wrote:

If you have a few minutes to spare, some testing of the packages
would be appreciated, so make sure there are no corner cases we've
missed. Upgrading initscripts should result in /etc/mtab being
switched to a symlink at the next reboot. /lib/init/rw will also
no longer mount a tmpfs on reboot, though the directory itself will
need to remain until wheezy+1, due to the upgrade ordering--packages
migrate after initscripts has run its postinst, requiring its
continued presence.

I'd be grateful for any feedback.


I tried to make a symlink /etc/mtab -> /proc/mounts on my laptop.
Now, I get this:
root@eyak:# mount /srv/crypt/
BIG FAT WARNING: This version of mount.crypt does not support unmounting crypto volumes through umount(8) on systems with read-only mtab yet.
Password:

I have this line in /etc/fstab:
/dev/mapper/group-crypt /srv/crypt crypt defaults,relatime,noauto 0 2

If I remove /etc/mtab, recreate it from a copy of /proc/mounts,
run "mount /srv/crypt", and run "diff -u /etc/mtab /proc/mounts",
I get:
--- /etc/mtab 2011-12-15 21:31:50.851308910 +0100
+++ /proc/mounts 2011-12-15 21:32:14.386314020 +0100
@@ -14,5 +14,4 @@
rpc_pipefs /var/lib/nfs/rpc_pipefs rpc_pipefs rw,relatime 0 0
fusectl /sys/fs/fuse/connections fusectl rw,relatime 0 0
binfmt_misc /proc/sys/fs/binfmt_misc binfmt_misc rw,nosuid,nodev,noexec,relatime 0 0
-/dev/mapper/_dev_dm_3 /srv/crypt ext3 rw,relatime 0 0
-/dev/dm-3 /srv/crypt crypt rw,noauto,relatime 0 0
+/dev/mapper/_dev_dm_3 /srv/crypt ext3 rw,relatime,errors=continue,barrier=1,data=ordered 0 0

So mount.crypt add (and use for umount) the line:
/dev/dm-3 /srv/crypt crypt rw,noauto,relatime 0 0

Regards,
Vincent

--
Vincent Danjean GPG key ID 0x9D025E87 vdanjean@debian.org
GPG key fingerprint: FC95 08A6 854D DB48 4B9A 8A94 0BF7 7867 9D02 5E87
Unofficial pkgs: http://moais.imag.fr/membres/vincent.danjean/deb.html
APT repo: deb http://people.debian.org/~vdanjean/debian unstable main


--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 4EEA5A05.6070508@free.fr">http://lists.debian.org/4EEA5A05.6070508@free.fr
 
Old 12-15-2011, 11:11 PM
Roger Leigh
 
Default Switching /etc/mtab to /proc/mounts and removing /lib/init/rw

On Thu, Dec 15, 2011 at 09:35:17PM +0100, Vincent Danjean wrote:
> Le 13/12/2011 22:32, Roger Leigh a écrit :
> >On Tue, Dec 13, 2011 at 09:08:10PM +0000, brian m. carlson wrote:
> >>On Tue, Dec 13, 2011 at 08:54:14PM +0000, Roger Leigh wrote:
> >>>If you have a few minutes to spare, some testing of the packages
> >>>would be appreciated, so make sure there are no corner cases we've
> >>>missed. Upgrading initscripts should result in /etc/mtab being
> >>>switched to a symlink at the next reboot. /lib/init/rw will also
> >>>no longer mount a tmpfs on reboot, though the directory itself will
> >>>need to remain until wheezy+1, due to the upgrade ordering--packages
> >>>migrate after initscripts has run its postinst, requiring its
> >>>continued presence.
> >>>
> >>>I'd be grateful for any feedback.
>
> I tried to make a symlink /etc/mtab -> /proc/mounts on my laptop.
> Now, I get this:
> root@eyak:# mount /srv/crypt/
> BIG FAT WARNING: This version of mount.crypt does not support unmounting crypto volumes through umount(8) on systems with read-only mtab yet.
> Password:
>
> I have this line in /etc/fstab:
> /dev/mapper/group-crypt /srv/crypt crypt defaults,relatime,noauto 0 2

Possibly related: #622693
Fixed upstream, but needs the utab patch integrating.


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.


--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20111216001127.GK17458@codelibre.net">http://lists.debian.org/20111216001127.GK17458@codelibre.net
 
Old 12-24-2011, 12:27 AM
 
Default Switching /etc/mtab to /proc/mounts and removing /lib/init/rw

Forty years of pleasant df(1) and mount(1) reading shattered in one day,
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=653073


--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 87d3beahdx.fsf@jidanni.org">http://lists.debian.org/87d3beahdx.fsf@jidanni.org
 
Old 01-18-2012, 01:05 PM
Goswin von Brederlow
 
Default Switching /etc/mtab to /proc/mounts and removing /lib/init/rw

jidanni@jidanni.org writes:

> Forty years of pleasant df(1) and mount(1) reading shattered in one day,
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=653073

Any update on why the root filesystem is listed by UUID? Is that a
problem of busybox mount reporting the long device name to the kernel
why real mount uses the short one?

MfG
Goswin


--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 87obu19kc9.fsf@frosties.localnet">http://lists.debian.org/87obu19kc9.fsf@frosties.localnet
 
Old 01-18-2012, 01:18 PM
Roger Leigh
 
Default Switching /etc/mtab to /proc/mounts and removing /lib/init/rw

clone 653073 -1
retitle -1 df: [patch] Please ignore rootfs in df output
reassign -1 coreutils
thanks

On Wed, Jan 18, 2012 at 03:05:58PM +0100, Goswin von Brederlow wrote:
> jidanni@jidanni.org writes:
>
> > Forty years of pleasant df(1) and mount(1) reading shattered in one day,
> > http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=653073
>
> Any update on why the root filesystem is listed by UUID? Is that a
> problem of busybox mount reporting the long device name to the kernel
> why real mount uses the short one?

This needs to be investigated by Dan, as I requested in the report.
It's just a matter of looking at what is really happening in the
initramfs with e.g. break=init-bottom.

I'll clone this into a separate bug against df/coreutils for Joey's
rootfs patch. The bug is not a bug in initscripts; it should be
reassigned to klibc, busybox or initramfs-tools as appropriate.


Thanks,
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.


--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20120118141836.GY9330@codelibre.net">http://lists.debian.org/20120118141836.GY9330@codelibre.net
 

Thread Tools




All times are GMT. The time now is 10:32 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org