lars
a2043742e0
changed default cipher to plain aes without essiv (otherwise it does not work with the uml-kernel)
23 lines
646 B
Bash
Executable file
23 lines
646 B
Bash
Executable file
#!/bin/sh
|
|
|
|
ROOT_IMG=/home/lars/devel-stuff/devel-chroots/cryptobox.img
|
|
TEST_IMG=test.img
|
|
TEST_SIZE=256
|
|
MEM_SIZE=128M
|
|
|
|
# Preparations:
|
|
# echo "tun" >>/etc/modules
|
|
# follow the instructions in /usr/share/doc/uml-utilities/README.Debian
|
|
# add your user to the group 'uml-net'
|
|
#
|
|
|
|
/sbin/ifconfig tap0 &>/dev/null || { echo "tap0 is not configured - read /usr/share/doc/uml-utilities/README.Debian for hints"; exit 1; }
|
|
|
|
|
|
if [ ! -e "$TEST_IMG" ]
|
|
then echo "Creating testing image file ..."
|
|
dd if=/dev/zero of="$TEST_IMG" bs=1M count=$TEST_SIZE
|
|
fi
|
|
|
|
linux ubd0="$ROOT_IMG" ubd1="$TEST_IMG" con=xterm hostfs=../ fakehd eth0=daemon mem=$MEM_SIZE
|
|
|