PortaboomThe contents of this website are Copyright (c)2006 by Brian Manning <brian at antlinux dot com>. Please do not reuse any of the content on this website without permission from the author.
qemu-img create -f qcow disk2.qcow 4G
parted /dev/hdX mkpart primary 0 [size of device in megabytes]
/boot and one for the encrypted loopback partition; swap device will be part of the encrypted loopback partition and use the same set of keys
/boot, one for the swap device and one for the encrypted loopback partition; the swap device will use it's own random key
/etc/fstab file showing /boot and the loopback partitions
/dev/hdb2 none swap sw,loop=/dev/loop0,encryption=AES128 0 0
loop-aes README for instructions on setting up encrypted partitons with loop-aes
pvcreate on it. See the LVMMini page for the full set of LVM steps
losetup -F /dev/loopX
pvcreate /dev/loopX
vgcreate evg0 /dev/loopX (evg0 is the volume name for this example)
vgscan and vgchange to bring them online
vgchange -a y evg0
lvcreate -L1000 -nrootvol evg0
lvcreate -L1000 -nvarvol evg0
lvcreate -l351 -nusrvol evg0
mkfs.xfs /dev/evg0/[root|usr|var]vol
mount -t xfs /dev/evg0/rootvol /mnt/rootvol
mount -t xfs /dev/evg0/varvol /mnt/rootvol/var
mount -t xfs /dev/evg0/usrvol /mnt/rootvol/usr
swapon -a (mounts encrypted swap if enabled)
http://www.someserver.com/?key=0x1234abcd, the system then brings up a key passphrase screen and prompts you to enter the passphrase.
build_apache2.txt file in CVS
hotplug package, as it can run scripts upon insertion events
vgscan to scan the loopback device for LVM volumes
vgchange -a y
/mnt
/init script to make sure no steps are missing here (switch_root)
exec() ala current /init script; system should then start up using the init binary on the mounted disks
/etc/fstab on mounted encrypted loopback filesystems so mounts get unmounted correctly prior to system restart?
swapon -a losetup -F /dev/loop1 <enter password> vgscan -v vgchange -a y evg0 mkdir /mnt/rootvol mount /mnt/rootvol mount /mnt/rootvol/var mount /mnt/rootvol/usr /usr/sbin/debootstrap --arch i386 --unpack-tarball /tmp/basedebs.tar woody /mnt/rootvol