userinstall

userinstall-defaults-uml

65:66a4f2ef64b4
2013-06-16 Paul Boddie Added a "no filesystem" option to the script for situations where the root file will be used by an installer as a device to be partitioned and populated, instead of being treated as a single filesystem partition.
     1 #!/bin/sh     2      3 # Main configuration:     4 if [ -e userinstall-defaults ]; then     5         . "$PWD/userinstall-defaults"     6 elif [ -e /etc/default/userinstall ]; then     7         . /etc/default/userinstall     8 else     9         echo "No defaults found for userinstall." 1>&2    10 	exit 1    11 fi    12     13 # Make sure the package root can be appended to.    14     15 PACKAGEROOT=$(dirname "$PACKAGEROOT")/$(basename "$PACKAGEROOT")    16     17 # Define the image locations.    18     19 IMAGEDIR="$PACKAGEROOT-root"    20 IMAGE="$IMAGEDIR.fs"    21 SWAPIMAGE="$PACKAGEROOT-swap.fs"    22     23 # The Linux version, location of the Linux kernel archive, and the download    24 # address.    25     26 LINUXVERSION=2.6.39.2    27 LINUXDIRNAME=linux-$LINUXVERSION    28 LINUXFILENAME=$LINUXDIRNAME.tar.bz2    29 LINUXARCHIVE=$LINUXFILENAME    30 LINUXADDRESS=http://www.kernel.org/pub/linux/kernel/v2.6/$LINUXFILENAME    31     32 # Optional settings.    33 # Guest:   the address used inside the UML instance    34 # Host:    the extra address provided for communication with the UML instance    35 # Devices: the tunnelling device (or interface) used by the actual machine, plus    36 #          the device (or interface) used inside the UML instance    37     38 GUESTADDRESS=192.168.0.99    39 HOSTADDRESS=192.168.0.254    40 TUNDEVICE=tap0    41 NETDEVICE=eth0