3. Scripts

Warning

All execution examples are not meant to be copy&pasted! Cobbler instances are very custom and each command needs to be adjusted to your environment.

3.1. migrate-data-v2-to-v3.py

3.1.1. Description

This script tries to convert your old Cobbler 2.x.x data to Cobbler 3.x.x data. It won’t make backups and can’t rollback the changes it did.

3.1.2. Execution examples

python3 migrate-data-v2-to-v3.py

3.1.3. Author

Orion Poplawski

3.2. mkgrub.sh

3.2.1. Description

This script will try to generate UEFI bootable bootloaders for your Cobbler installation. The script was written for Bash but should be POSIX compliant. Be advised that only executing this script won’t make your Cobbler installation UEFI ready.

3.2.2. Execution examples

export SYSLINUX_DIR=/usr/share/...;./mkgrub.sh
export $GRUB2_MOD_DIR=/usr/share/...;./mkgrub.sh
./mkgrub.sh

3.2.3. Author

Thomas Renninger

3.3. settings-migration-v1-to-v2.sh

3.3.1. Description

This script will try to replace your old modules.conf file (< 3.0.1) to a new one (>= 3.0.1).

3.3.2. Execution examples

./settings-migration-v1-to-v2.sh -h
./settings-migration-v1-to-v2.sh -r -f /etc/cobbler/modules.conf
./settings-migration-v1-to-v2.sh -n -f /etc/cobbler/modules.conf
./settings-migration-v1-to-v2.sh -s -f /etc/cobbler/modules.conf

3.3.3. Author

Enno Gotthold