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

Re: 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.

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


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

Reply to: