table of contents
BOOTCDWRITE.CONF(5) | bootcd utils | BOOTCDWRITE.CONF(5) |
NAME¶
bootcdwrite.conf - bootcd utils
SYNOPSIS¶
/etc/bootcdwrite.conf
DESCRIPTION¶
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.
OPTIONS¶
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
Add directories which should be excluded from bootcd. Directories are separated by spaces. SRCDISK will be automatically added to each path that does not start with "/".
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
EVALVARS¶
It is not recommended to use special characters anyway, but the variable NOT_TO_CD may contain blank ( ), dollar ($), backslash (\), qoute (") and backquote (`). This variables are called EVALVARS in this manpage, because in shell script, the eval command can be used to easily read them.
For example to define NOT_TO_CD with the files or directories "/etc/noblank", "/etc/blank name1" and "/etc/blank name2" the following config line would be possible:
NOT_TO_CD="/etc/noblank \"/etc/blank name1\" /etc/blank\ name2"
Because all variables have to be readable by shell with the eval command, the syntax can be checked. if the config line above is entered in a shell with the test commands:
eval "set -- $NOT_TO_CD" echo "#=<$#> 1=<$1> 2=<$2> 3=<$3> 4=<$4>"
should print out the result:
#=<3> 1=</etc/noblank> 2=</etc/blank name1> 3=</etc/blank name2> 4=<>
ENVIRONMENT¶
ia_logfile
USING FUNCTIONS¶
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.
SEE ALSO¶
bootcd(7), bootcdwrite(1), bootcd2disk(1), bootcdflopcp(1), bootcdmk2diskconf(1), bootcd2disk.conf(5)
AUTHOR¶
bernd.schumacher@hpe.com
License: GNU General Public License, version 3
COPYRIGHT¶
Bernd Schumacher <bernd.schumacher@hpe.com> (2007-2020)
2020-08-07 | 0.1 |