#! /bin/sh # # Copyright (c) 2002 SuSE Linux AG Nuernberg, Germany. All rights reserved. # # Author: Werner Fink , 1996 # Burchard Steinbild, 1996 # # /etc/init.d/boot.local # # script with local commands to be executed from init on system startup # # Here you should add things, that should happen directly after booting # before you're going to the first run level. # #You first encrypt the swap partition cryptsetup -c blowfish -h sha256 -d /dev/urandom create swap /dev/sda6 mkswap /dev/mapper/swap swapon /dev/mapper/swap #And now you mount the truecrypt partition, ensuring that a disk check is run truecrypt /dev/sda8 -p yourpassword e2fsck -p -v -C0 /dev/mapper/truecrypt0 mount /dev/mapper/truecrypt0 /home