BOOTCDWRITE.CONF(5) | bootcd utils | BOOTCDWRITE.CONF(5) |
bootcdwrite.conf - bootcd utils
/etc/bootcdwrite.conf
bootcdwrite.conf is a configuration file used by bootcdwrite. The default path is /etc/bootcdwrite.conf.
This file will be sourced as shell file. The following Options can be used. Examples how to use the Options are shown.
SRCDISK
For example, to build an image from a remote system, export root-directory with nfs, mount it locally to /mnt/remote and add:
SRCDISK=/mnt/remote
It is added as prefix to KERNEL, INITRD, DISABLE_CRON and NOT_TO_CD, if this are relativ paths (without starting "/")
Default:
SRCDISK=/
KERNEL
KERNEL1=/boot/vmlinuz-2.6.18-3-686-bigmem KERNEL2=/boot/vmlinuz-4.19.0-5-amd64
Default:
KERNEL=vmlinuz
APPEND
APPEND1="vga=normal nomodeset" APPEND2=""
Default:
APPEND=""
INITRD
INITRD1=/boot/initrd.img-2.6.18-3-686-bigmem INITRD2="initrd.img"
Default:
INITRD="initrd.img"
KLABEL
KLABEL1=686-3 KERNEL1=/boot/vmlinuz-2.6.18-3-686-bigmem INITRD1=/boot/initrd.img-2.6.18-3-686-bigmem APPEND1=
Default:
KLABEL=linux
DISPLAY
The text file kernelinfo is replaced with a file which includes kernelinfo.
Default:
DISPLAY="/usr/share/bootcd/default.txt" DISPLAY2="kernelinfo"
TYP
Default:
TYP=DVD
CDDEV
Default:
CDDEV="auto /dev/hda /dev/hdb /dev/hdc /dev/hdd /dev/sr0 /dev/sr1"
DO_CHECK
Default:
DO_CHECK=yes
NOT_TO_CD
Default:
NOT_TO_CD=""
SSHHOSTKEY
SSHHOSTKEY=yes
UDEV_FIXNET
UDEV_FIXNET="yes"
VAR
VAR=/var/spool/bootcd
FLOPPY_RUNTIME_DEV
FLOPPY_RUNTIME_DEV=""
Default:
FLOPPY_RUNTIME_DEV=/dev/fd0
BOOTCDFLOPPY
BOOTFLOPPY=yes|no
Default:
BOOTFLOPPY=no
BOOT_ONLY_WITH_FLOPPY
BOOT_ONLY_WITH_FLOPPY=yes
Default:
BOOT_ONLY_WITH_FLOPPY=no
CLEAN_VAR
CLEAN_VAR=yes
TO_FSTAB
TO_FSTAB="/dev/hdc1 /home ext3 defaults 1 1
Default:
TO_FSTAB=""
NOTCOMPRESSED
NOTCOMPRESSED=""
DISABLE_CRON
Default:
DISABLE_CRON="etc/cron.daily/find etc/cron.daily/standard etc/cron.daily/security"
MKISOFS_CHNG
Example: To use -opt1 and -opt2 <value> and to not use any previous -opt1 [<value>...], -opt2 [<value...>] and -opt3 [<value>...] and to leave any other options as defined:
MKISOFS_CHNG="-opt1 -opt2 <value> !-opt3"
Default:
MKISOFS_CHNG=""
extra_changes()
extra_changes() {
bootcd_global VAR
echo "noname" >$VAR/changes/etc/hostname
mkdir -p $VAR/changes/etc/network
( echo "auto lo"
echo "iface lo inet loopback"
echo "" echo "auto eth0"
echo "iface eth0 inet static"
echo " address 0.0.0.0"
echo " netmask 255.255.255.0"
) >$VAR/changes/etc/network/interfaces
echo "127.0.0.1 localhost noname" >$VAR/changes/etc/hosts
cat $SRCDISK/etc/passwd |
grep -v -e "^bs:" -e "^bianca:" -e "^tim:" >$VAR/changes/etc/passwd
cat $SRCDISK/etc/shadow |
grep -v -e "^bs:" -e "^bianca:" -e "^tim:" >$VAR/changes/etc/shadow
cat $SRCDISK/etc/group |
grep -v -e "^bs:" -e "^bianca:" -e "^tim:" >$VAR/changes/etc/group }
Default:
# make sure the function is not defined unset -f extra_changes
BOOTCDMODPROBE
BOOTCDMODPROBE=standard
If bootcd should try extra hard to load neccessary modules you can specify "bootcd" here. Bootcd will use discover for this purpose. So discover has to be installed:
BOOTCDMODPROBE=bootcd
If you specify auto, bootcd will check if discover is installed. If it is installed BOOTCDMODPROBE=bootcd will be set, if not BOOTCDMODPROBE=standard will be set. Be aware that people have reported, that sometimes BOOTCDMODPROBE=bootcd may not work but sometimes it is needed. Default:
BOOTCDMODPROBE=auto
ia_logfile
For example a function extra_changes() that wants to use variable VAR should start with:
extra_changes() {
bootcd_global VAR
see full example in OPTIONS/extra_changes()
The function bootcd_global makes sure that all given variables are declared.
bootcd(7), bootcdwrite(1), bootcd2disk(1), bootcdflopcp(1), bootcdmk2diskconf(1), bootcd2disk.conf(5)
bernd.schumacher@hpe.com
License: GNU General Public License, version 3
Bernd Schumacher <bernd.schumacher@hpe.com> (2007-2020)
2020-08-07 | 0.1 |