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

Re: loop-aes with loop=m in kernel?



commence  Iain quotation:

> Ok, I guess what my question boils down to is this. Debian has a number of 
> prebuilt kernels that include loopback support as a module. If I install one 
> of these then remove loop.o and replace it with the loop-aes module will I 
> have any problems? Assuming I have of course built loop-aes using the kernel 
> config from the prebuilt kernel. 

You could use dpkg-divert to add a local diversion so that dpkg will
never clobber the loop.o that you have installed with a loop.o
supplied by a package.

Something like this should do the trick:

dpkg-divert --local --rename --divert \
            /lib/modules/2.4.19/kernel/drivers/block/loop.o-diverted \
            /lib/modules/2.4.19/kernel/drivers/block/loop.o

Now any package that installs
/lib/modules/2.4.19/kernel/drivers/block/loop.o will instead install
it as loop.o-diverted.  This needs to be done as root, and you will
need to do this for each different kernel version you use.

-- 
 /                          |
[|] Sean Neakums            |  Questions are a burden to others;
[|] <sneakums@zork.net>     |      answers a prison for oneself.
 \                          |
-
Linux-crypto:  cryptography in and on the Linux system
Archive:       http://mail.nl.linux.org/linux-crypto/