serhepopovych / simple-cdd-meta

Debian and it's derivatives Simple-CDD preseed configuration with profiles
MIT License
6 stars 3 forks source link

Add support for user specific profiles per release/flavor #16

Closed serhepopovych closed 4 years ago

serhepopovych commented 4 years ago

Having common to all release profiles places certain restrictions on them. One of such restriction is package naming since package might not be the same across all releases (e.g. btrfs-tools vs btrfs-progs, iproute vs iproute2, linux-pref vs linux-tools).

Additionally having option generate ISO image per specific profile/configuration capable of (re)using common profiles with additional modifications and packages could be very useful.

One of such use cases is to have ISO images for each desktop environment to install.

serhepopovych commented 4 years ago

In the progress. Requires total reimplementation of current profiles schema to support dependencies between profiles and make possible to get variable value from one profile in another.

Profile files are shell script executable code with "set -a" option to export all non-local variables to python interpreter process that converts them to JSON in /usr/lib/python3/dist-utils/simple_cdd.

Simple-cdd does not export currently set by previous profiles variables to environment of currently parsed profile file.

Profile file is sourced from wrapper script created dynamically by /usr/lib/dist-utils/python3/simple_cdd code.

serhepopovych commented 4 years ago

This support already present in master branch with bugfixes and improvements as per commit e952b8c96f11 ("simple-cdd-meta/debian: Fix Debian 8 (jessie) mirror settings") and their ancestors up to the commit 4cb250139c99 ("simple-cdd-meta/debian: Rework profiles support ") where this was first implemented.