You are not logged in.

#1 2005-12-02 23:52:48

thorstenhirsch
Member
Registered: 2005-08-03
Posts: 102

[REQ] loop-aes

Hi,

might be a bit difficult, because the kernel's loop module must be patched and the util-linux package must be patched for loop-aes. However, I really need it - perhaps someone could help me building this package.

Thorsten

Offline

#2 2005-12-05 20:54:44

oscar
Member
From: Kiruna, Sweden
Registered: 2004-08-13
Posts: 457

Re: [REQ] loop-aes


To err is human... to really foul up requires the root password.

Offline

#3 2005-12-06 08:14:35

thorstenhirsch
Member
Registered: 2005-08-03
Posts: 102

Re: [REQ] loop-aes

No. aespipe encrypts data from stdin to stdout - that's also nice, but it can't be used to mount an encrypted block device or file.

Offline

#4 2005-12-22 20:14:31

thorstenhirsch
Member
Registered: 2005-08-03
Posts: 102

Re: [REQ] loop-aes

Well, I've got a workaround solution: I wrote a script in the good old days of Gentoo. To get it working under arch I had to remove the replacement of the man pages since the paths don't exist. Here it is:

#!/bin/bash
#################################
#
# install-aes-tools
#
# version 1.0a
#
# (c) Thorsten Hirsch, 2005
#
# This software is released under
# the terms of GPL v2.0 or later.
#
#################################

# which versions do we want to use?
UTIL_LINUX_VERSION="2.12r"
LOOP_AES_VERSION="3.1b"

# now let's download and extract them if they aren't already here
echo "This script installs patched versions of"
echo "the loop kernel module and some util-linux"
echo "programs in order to use loop-aes."
echo
echo "Press <RETURN> to continue..."
read
echo
echo "downloading sources..."
echo
if [ -e util-linux-$UTIL_LINUX_VERSION.tar.bz2 ]; then
  echo "  util-linux is already here :)"
else
  wget http://www.kernel.org/pub/linux/utils/util-linux/util-linux-$UTIL_LINUX_VERSION.tar.bz2
fi
if [ -e loop-AES-v$LOOP_AES_VERSION.tar.bz2 ]; then
  echo "  loop-AES is already here :)"
else
  wget http://loop-aes.sourceforge.net/loop-AES/loop-AES-v$LOOP_AES_VERSION.tar.bz2
fi

if [ -f util-linux-$UTIL_LINUX_VERSION.tar.bz2 ] && [ -f loop-AES-v$LOOP_AES_VERSION.tar.bz2 ]; then
  tar jxf util-linux-$UTIL_LINUX_VERSION.tar.bz2
  tar jxf loop-AES-v$LOOP_AES_VERSION.tar.bz2
else
  exit "download incomplete."
fi

# install the new kernel module and remove the old one
echo
echo "compiling & installing new loop module..."
echo
cd loop-AES*
make clean
make
rm /lib/modules/`uname -r`/kernel/drivers/block/loop.*
rm /lib/modules/`uname -r`/kernel/drivers/block/cryptoloop.*

# patching util-linux
echo
echo "patching util-linux..."
echo
cd ../util-linux*
patch -p1 < ../loop-AES*/util-linux*.diff

# install the patched programs we need
echo
echo "compiling some util-linux programs..."
echo
CFLAGS=-O2 ./configure
make SUBDIRS="lib mount"
echo
echo "installing the new util-linux programs..."
echo
cd mount
install -m 4755 -o root mount umount /bin
install -m 755 losetup swapon /sbin
rm -f /sbin/swapoff && ( cd /sbin && ln -s swapon swapoff )
rm -f /usr/share/man/man8/{mount,umount,losetup,swapon,swapoff}.8.gz
#install -m 644 mount.8 umount.8 losetup.8 /usr/share/man/man8 # not for arch
#install -m 644 swapon.8 swapoff.8 /usr/share/man/man8 # not for arch
rm -f /usr/share/man/man5/fstab.5.gz
#install -m 644 fstab.5 /usr/share/man/man5 # not for arch
cd ../..
rm -rf util-linux-$UTIL_LINUX_VERSION
rm -rf loop-AES-v$LOOP_AES_VERSION

# and remove the directories we used
echo
echo "Installation complete."
echo
echo "removing downloaded files"
echo "press <RETURN> to continue or <CTRL>+<C> to abort..."
read
rm util-linux-$UTIL_LINUX_VERSION.tar.bz2
rm loop-AES-v$LOOP_AES_VERSION.tar.bz2

Use with caution! Though it is working without problems for me, it may cause damage to your system, because it's not well tested and it has nothing to do with AUR or pacman - it's just the quick'n'dirty way!

Offline

Board footer

Powered by FluxBB