public inbox for util-linux@vger.kernel.org
 help / color / mirror / Atom feed
From: Matthias Schniedermeyer <ms@citd.de>
To: Karel Zak <kzak@redhat.com>
Cc: util-linux@vger.kernel.org
Subject: Re: What about a premount/postumount option for mount?
Date: Tue, 28 Feb 2012 15:44:26 +0100	[thread overview]
Message-ID: <20120228144426.GA5351@citd.de> (raw)
In-Reply-To: <20120228135918.GB22034@x2.net.home>

On 28.02.2012 14:59, Karel Zak wrote:
> On Sat, Feb 11, 2012 at 01:30:16PM +0100, Matthias Schniedermeyer wrote:
> > This solution would also make for e.g. "loop-aes" more easily usable, 
> > currently one has to use a patched version of mount/losetup. With a 
> 
>  Do you know that the latest cryptsetup is able to map loop-aes images
>  by dm-crypt?

Which is exactly the problem i'm trying to solve:
Moving from loop-aes to dm-crypt, without reencrypting the discs and 
retaining "autofs"ability.
The latter, as far as i can determine, is currently not possible without 
patching something.

On my test-machine i build a crude version of "premount/postumount". I 
did that by "diverting" (A Debian specific package-manager thing) 
/bin/mount to /bin/mount.orig (Same for umount) and putting a 
shell-script for /bin/mount that checks for /dev/mapper/... and sets it 
up on mount and then execs /bin/mount.orig. Same for umount, only it 
does the "loopaesClose" after running umount.orig.

This solution works more or less satisfactory, only the robustness isn't 
optimal.




Bis denn

-- 
Real Programmers consider "what you see is what you get" to be just as 
bad a concept in Text Editors as it is in women. No, the Real Programmer
wants a "you asked for it, you got it" text editor -- complicated, 
cryptic, powerful, unforgiving, dangerous.


  reply	other threads:[~2012-02-28 14:44 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-11 12:30 What about a premount/postumount option for mount? Matthias Schniedermeyer
2012-02-28 13:59 ` Karel Zak
2012-02-28 14:44   ` Matthias Schniedermeyer [this message]
2012-02-28 23:29   ` Matthias Schniedermeyer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120228144426.GA5351@citd.de \
    --to=ms@citd.de \
    --cc=kzak@redhat.com \
    --cc=util-linux@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox