BASH   15

loop aes

Guest on 11th June 2022 05:25:25 PM

  1. To patch the kernel with loop-AES :
  2.  
  3. 1) copy (hard link) a recent kernel to a new location, and remove the files
  4.   "drivers/block/loop.c" and "include/linux/loop.h" before patching.
  5.  
  6.    # cp -al linux-2.4.27 linux-2.4.27-loop-AES-v2.1c
  7.    # rm -vf linux-2.4.27-loop-AES-v2.1c/{drivers/block/loop.c,include/linux/loop.h}
  8.  
  9. 2) download the most recent version from the master site :
  10.  
  11.    http://loop-aes.sourceforge.net/loop-AES-latest.tar.bz2
  12.  
  13. 3) download potential updates from the same site, eg :
  14.  
  15.    http://loop-aes.sourceforge.net/updates/loop-AES-v2.1c-20040813.diff.bz2
  16.  
  17. 4) extract the package into a temporary directory. Let's say it will create
  18.   loop-AES-v2.1c. Check that a recent kernel patch is provided (eg:
  19.   kernel-2.4.27-rc3.diff). Then check if the update patch touches this file
  20.   or not. If it only touches loop.c-2.4.patched (most likely), it might be
  21.   interesting to check whether the kernel's loop.c will have to be patched
  22.    or not (probably by hand).
  23.  
  24.  
  25.    # tar jxf loop-AES-v2.1c.tar.bz2
  26.    # bzcat loop-AES-v2.1c-20040813.diff.bz2 | grep ^+++
  27.      +++ loop.c-2.4.patched  Tue Aug 10 17:27:18 2004
  28.  
  29.    # cd linux-2.4.27-loop-AES-v2.1c
  30.    # patch -p1 < ../loop-AES-v2.1c/kernel-2.4.27-rc3.diff
  31.  
  32.    apply a few fixes according to the update
  33.    # vi drivers/block/loop.c
  34.  
  35.    # make distclean
  36.  
  37. 5) diff the two kernel trees to rebuild the patch, then remove the directories.

Raw Paste


Login or Register to edit or fork this paste. It's free.