fai-diskimage variable "classes" not inherited to fai
Schulz, Reiner
R.Schulz at dvz-mv.de
Wed Jun 30 10:09:43 CEST 2021
Hi
How is "-c" concatenate to the classes from config_space/class ?
We set a couple of default classes (class/49-always_set_classes) and add only the invidual, server specific, classes via class/50-host-classes
# fai-diskimage -v -N -cDEBIAN_10,S2APP image.raw
Formatting 'image.raw', fmt=raw size=838860800
-------------------------------------------------
Fully Automatic Installation - FAI
5.10.3~buster1 (c) 1999-2021
Thomas Lange <lange at cs.uni-koeln.de>
-------------------------------------------------
Starting FAI execution - 20210630_092050
Hostname set to debian.example.com
Using configuration files from /etc/fai
Calling task_confdir
FAI_FLAGS:
NO SERVER FOUND FOR FAI_CONFIG_SRC
No monitor daemon defined.
FAI_CONFIG_SRC is set to file:///srv/fai/config
Using local path /srv/fai/config as config space.
Calling task_setup
FAI_FLAGS:
Calling task_defclass
fai-class: Defining classes.
Executing /srv/fai/config/class/10-base-classes.
10-base-classes OK.
Executing /srv/fai/config/class/20-hwdetect.sh.
FAI_VERSION -5.10.3~buster1-
20-hwdetect.sh OK.
Executing /srv/fai/config/class/49-always_set_classes.
49-always_set_IAMBCUBE_PATCHMGM-classes OK.
Executing /srv/fai/config/class/50-host-classes.
50-host-classes OK.
Executing /srv/fai/config/class/51-STEP.
51-STEP OK.
List of all classes: DEFAULT LINUX X86_64 NETWORK SUDO SSH SSL POSTFIX NTP SYSLOG SHOREWALL CUSTOM_RULES SNMP IAMBCUBE PATCHMGM NRPE FAICLIENT LIMA KILLIDLE DEEPSEC RUNONCE GRUB_PC debian.example.com LAST
Calling task_defvar
Executing DEFAULT.var
++ LOGREMOTEDIR=/var/log/fai/remotelog
++ AINSL_TARGET=
...
Calling task_action
FAI_ACTION: install
Performing FAI installation. All data may be overwritten!
Calling task_install
Calling task_partition
No matching disk_config found
Error in task partition. Code: 710
Traceback: task_error task_partition task task_install task task_action task main
...
# cat /srv/fai/config/disk_config/DEBIAN_10
# example of new config file for setup-storage
#
# <type> <mountpoint> <size> <fs type> <mount options> <misc options>
disk_config disk1 align-at:1M fstabkey:label bootable:1
primary /boot 499 ext2 rw,noatime createopts="-L BOOT -m 0"
primary - 500- - -
disk_config lvm fstabkey:label
vg vgsys disk1.2
# createopts= -L Label in fstag, -m root reserve
vgsys-swap swap 4096 swap sw
vgsys-root / 7G-99% ext4 defaults createopts="-L ROOT"
vgsys-home /home 50 ext4 defaults createopts="-L HOME -m 0"
vgsys-postgres - 50 ext4 defaults createopts="-L POSTGRES -m 0"
vgsys-jboss - 20 ext4 - createopts="-L JBOSS -m 0"
vgsys-custom /opt/custom 20 ext4 defaults createopts="-L CUSTOM -m 0"
vgsys-tomcat - 20 ext4 - createopts="-L TOMCAT -m 0"
vgsys-deploy - 20 ext4 - createopts="-L DEPLOY -m 0"
vgsys-srv /srv 20 ext4 defaults createopts="-L SRV -m 0"
vgsys-var /var 8G ext4 defaults createopts="-L VAR -m 0"
vgsys-mysql - 50 ext4 defaults createopts="-L MYSQL -m 0"
vgsys-data - 50 ext4 defaults createopts="-L DATA -m 0"
vgsys-backup - 20 ext4 defaults createopts="-L BACKUP -m
cat FAI_CLASSES
DEFAULT
LINUX
X86_64
NETWORK
SUDO
SSH
SSL
POSTFIX
NTP
SYSLOG
SHOREWALL
CUSTOM_RULES
SNMP
IAMBCUBE
PATCHMGM
NRPE
FAICLIENT
LIMA
KILLIDLE
DEEPSEC
RUNONCE
GRUB_PC
debian.example.com
LAST
grep cmdlineclasses variables.log
cmdlineclasses='DEBIAN_10 S2APP'
Reiner Schulz
More information about the linux-fai
mailing list