Build Scripts

The build process for tor-ramdisk stabilized as of the 20080606 release, and so there is no reason to continue buidling manually as documented in Tor-ramdisk from scratch. All of the script fragments were collected into one build script which can be obtained from the scripts directory in the repository.

Download build.sh to a hardened UCLIBC based Linux system. The Embedded Gentoo project provides one:

<any gentoo mirror>/experimental/x86/embedded/stages/

Then, as root, do

chmod 755 build.sh
./build.sh

After the script is done running, the ISO for tor-ramdisk will be found at

release/tor.iso

relative to the directory where you executed build.sh


Here's what the script does:

  • remove any "release" directory where the tor.iso image is built
  • download all the required source tarballs, but only if they don't already exit in the "sources" directory
  • build busybox binary
  • build tor binary
  • build ntpd binary
  • prepare the ramdisk image and populate /bin /sbin /usr/bin /usr/sbin /etc /dev
  • patch/build the kernel
  • build the bootable iso image and populate it with the ramdisk and kernel images