Re: Script for loop-AES key generation

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

 



On Sat, Nov 18, 2006 at 03:35:47PM +0100, Max Vozeler wrote:
> Hi Jari,
> 
> On Tue, Nov 14, 2006 at 09:58:43AM +0200, Jari Ruusu wrote:
> > There have been few cases where v3 key file and v2 losetup/mount were
> > used to set up a file system, and after upgrade to v3 losetup/mount,
> > mounting the file system failed. There is a warning about this problem
> > in loop-AES README file, but not everyone reads README files.
> >
> > May I suggest adding a check that losetup is recent enough. Something
> > like this:
> 
> >     strings /sbin/losetup | grep -q -s multi-key-v3
> >     if [ $? != 0 ] ; then
> >         echo "too old losetup version"
> >     fi
> 
> Indeed, that's a useful check. Given that strings(1) is part
> of binutils, which may not be installed on all systems, I made it
> run only if strings can be found. Thanks for your suggestion.

why strings? "grep -a" works since ages and saves one command.

Richard

-
Linux-crypto:  cryptography in and on the Linux system
Archive:       http://mail.nl.linux.org/linux-crypto/


[Index of Archives]     [Kernel]     [Linux Crypto]     [Gnu Crypto]     [Gnu Classpath]     [Netfilter]     [Bugtraq]
  Powered by Linux