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

Bug#683309: Removal of /etc/mtab breaks auto-cleanup of loop devices

On Mon, Jul 30, 2012 at 06:47:25PM +0100, Roger Leigh wrote:
>reassign 683309 loop-aes-utils
>severity 683309 serious
>On Mon, Jul 30, 2012 at 05:57:42PM +0100, Steve McIntyre wrote:
>> Since the move to remove /etc/mtab and link it to /proc/mounts, loop
>> mounts no longer clean up the used loopback devices after unmount. It
>> seems the loopback code in mount/unmount needs the information in mtab
>> to do this automatically.
>After discussion with Steve on IRC, it turns out that this is due
>to using loop-aes-utils.  This package does not use libmount, and
>so breaks due to trying to modify /etc/mtab (which has been a
>symlink for some time).  All wheezy and later systems have /etc/mtab
>as a symlink, making libmount a requirement.  loop-aes-utils must
>use libmount for wheezy.
>Given that loop-aes-utils is a fork of util-linux-ng from (it appears)
>2009 from the NEWS file, it may be possible to merge in the subsequent
>util-linux-ng changes.  Which would be a good idea anyway.

I've looked at loop-aes-utils since, and it's *way* behind current
util-linux as you say. If we wanted to keep it in the archive, the
best way forwards would probably be to throw away the existing package
and re-patch util-linux. That would be a smaller diff than patching
forwards loop-aes-utils. However, I've worked out a way to replace my
own usage of loop-aes with cryptsetup and dmcrypt anyway; I'm not
going to spend any time saving loop-aes myself.

Steve McIntyre, Cambridge, UK.                                steve@einval.com
Into the distance, a ribbon of black
Stretched to the point of no turning back

Reply to: