#!/bin/sh # # Original File # ------------- # http://Linux-Boot.net/Boot.Standalone/LinuxRC//linuxrc.linuxquestions.txt # http://www.linuxquestions.org/questions/history/39056 # # # 03-Apr-05 amo Date-of-Birth # # PATH=/usr/sbin:/usr/bin:/sbin:/bin mount -oremount,rw / mount -n -t proc none /proc # # Create the new root FS # mkdir /newroot # # Mount the cryptoloop # echo "Mounting encrypted filesystem..." losetup -e twofish -k 256 /dev/loop/5 /dev/ide/host0/bus0/target0/lun0/part4 echo "...cryptoloop on /newroot ..." mount /dev/loop/5 /newroot cd /newroot umount /proc pivot_root . initrd exec chroot . /sbin/init /dev/console 2>&1 # # End of file