ERRLOG=/var/log/bootcd2disk.log

# function do_first
# If you want to do some things first before doing anythin else (e.g. load
# additional modules), you can add this to this function.
#    function do_first() {
#    return
#    }

# To define the disk that will be newly partitioned before copying the cd to it
#   DISK="/dev/hda"
# If you don't want do partition any disk
#   DISK=""
# If you want bootcd2disk to find a disk (bootcd tries to use the first disk)
DISK="auto"

# Syntax:
#   LVMGRP="<group> <diskdev> [<diskdev> ...][<vgcreate-cmd>][\n ...]"
#
# Example1:
#   LVMGRP="vg00 DISK1
#           vg01 DISK2
#           vg02 DISK3 DISK4"
#   
# Example2 which is the same as Example1 because it used the default schema
#   LVMGRP="vg00 DISK1 vgcreate vg00 DISK1
#           vg01 DISK2 vgcreate vg01 DISK2
#           vg02 DISK3 vgcreate vg02 DISK3 DISK4"
#
# Default: 
#   LVMGRP=""
LVMGRP=""

# Syntax:
#   LVMVOL="<volname> <size> <group> [<lvcreate-cmd>][\n ...]"
#
# Example1:
#   LVMVOL="lv00 2000 vg00"
#
# Example2 which is the same as Example1 because it used the default schema
#   LVMVOL="lv00 2000 vg00 lvcreate -n lv00 -L 2000 vg00"
#
# Example3 uses striping for the second volume 
#   LVMVOL="lv00 2000 vg00
#           lv01 100 vg00 lvcreate -n lv01 -i 3 -I 8 -L 100 vg00"
#
# Default: 
#   LVMVOL=""
LVMVOL=""

# If DISK="auto" is defined, the first disk found will be used. To change
# this order TRYFIRST can be defined for example to use SCSI Disks first:
#   TRYFIRST="/dev/sda /dev/hda"
# Most people will not need this option and will define:
#   TRYFIRST=""
TRYFIRST=""

# If you don't want to repartition anything use:
#   SFDISK=""
# If you want to specify yourself: see man sfdisk
#   SFDISK="
#   ,50
#   ,100,S
#   ;
#   "
# If you want to do it automatically. There will be 3 partitions
# /boot, swap and /. /boot is created first to be sure the bios can load
# the kernel also on very large disks.
SFDISK="auto"

# VFAT is normally only needed on ia64 for EFI files.
# Do not run mkdosfs: 
#   VFAT=""
# Create partitions defined in VFATFS with mkdosfs
#   VFAT="/dev/sdb4"
VFAT=""

# Do not run mke2fs:
#   EXT2FS=""
# Create partitions defined in EXT2FS with mke2fs:
#   EXT2FS="/dev/hda1 /dev/hda3"
# Create partitions needed automatically:
EXT2FS="auto"

# Use EXT3 extenstion for partitions defined by EXT2FS:
#   EXT3="yes"
# Do not Use EXT3 extenstio for partitions defined by EXT2FS:
#   EXT3="no"
# Use EXT3 automatically if it is supported by the system:
EXT3="auto"

# If you don't want to run mkswap use:
#   SWAP=""
# If you want to specify partitions for mkswap:
#   SWAP="/dev/hda2"
# If you want to automatically use mke2fs:
SWAP="auto"

# If you don't want to mount anything, before copying the cd to /mnt
#   MOUNT=""
#   UMOUNT=""
# If you want to mount everything yourself:
#   MOUNT="mount /dev/hda3 /mnt; mkdir /mnt/boot; mount /dev/hda1 /mnt/boot"
#   UMOUNT="umount /mnt/boot; umount /mnt"
# If you want to automatically mount:
MOUNT="auto"
UMOUNT="auto"

# If you don't want to change the /etc/fstab copied form cd:
#   FSTAB=""
# If You want to define it yourself:
#   FSTAB="
#   /dev/sda1 /boot ext2 defaults 0 1
#   /dev/sda2 none  swap sw 0 0
#   /dev/sda3 /     ext2 defaults,errors=remount-ro 0 1
#   proc      /proc proc defaults 0 0
#   "
# If You want to do it automatically:
FSTAB="auto"

# If you don't want to use GRUB:
#   GRUB=""
# If GRUB is defined and grub is installed it will be used and
# LILO will be ignored.
# If you want to define it yourself:
#   GRUB="
#   default 0
#   timeout 5
#   color   cyan/blue white/blue
#   title   Debian GNU/Linux
#   root    (hd0,0)
#   kernel  /vmlinuz-2.4.27-2-386 root=/dev/hda3 ro
#   initrd  /initrd.img-2.4.27-2-386
#   savedefault
#   boot
#   "
# If You want to do it automatically:
GRUB="auto"

# If /boot is not the first partition on disk
# we need to know which one it is to install 
#grub properly. Attention: grub starts counting
#with 0!
GRUBBOOTDIR=""

# If GRUB is defined and installed LILO will be ignored. 
# If you don't want to change the /etc/lilo.conf copied from cd:
#   LILO=""
# If you want to define it yourself:
#   LILO="
#   boot=DISK
#   delay=20
#   vga=0
#   image=/vmlinuz
#   root=DISK3
#   initrd=/initrd.img
#   label=Linux
#   read-only
#   "
# If You want to do it automatically:
LILO="auto"

# ELILO is only needed on ia64 systems.
# If you don't want to run elilo:
#   ELILO=""
# If you want to define /etc/elilo.conf and run elilo.
#   ELILO="
#   install=/usr/lib/elilo/elilo.efi
#   boot=/dev/sdb4
#   prompt
#   timeout=50
#   default=Linux
#   append=\\\"console=ttyS0.9600n8\\\"
#   image=/vmlinuz
#   label=Linux
#   root=/dev/sdb5
#   read-only
#   "
ELILO=""

# SSHOSTKEY=yes|no
# If you are using ssh it is helpful to have a unique ssh hostkey for
# each PC installed with bootcd2disk. This will be generated with 
#   SSHHOSTKEY="yes"
SSHHOSTKEY=yes

# function after_copy
# If you want to do some things after copying the files (e.g. remount of
# directories ...), you can add this to this function.
#    function after_copy() {
#    return
#    }

#
# Examples:
#

# IF you only want to copy the cd to an already existing Partition /dev/hda2
# You can now specify:
#   DISK=""; SFDISK=""; SWAP=""; FSTAB=""; LILO=""
#   EXTFS2="/dev/hda2"
#   MOUNT="mount /dev/hda2 /mnt"
