[Simple-cdd-devel] simple-cdd-profiles postinst never prompts for which profiles to install (stretch)

Sam Overton samoverton+scd at gmail.com
Tue Feb 6 23:20:24 UTC 2018


Hi,

I am including multiple profiles in my image, but during installation I am
never prompted for which profile(s) to install, and instead only the
default profile is used.

The install log contains the following:

Feb  6 18:35:32 anna-install: Installing simple-cdd-profiles
Feb  6 18:35:32 apt-install: Queueing package less for later installation
Feb  6 18:35:32 anna[2826]: (process:5107): loading simple-cdd templates...
Feb  6 18:35:32 anna[2826]: (process:5107): asking simple-cdd debconf
questions...
Feb  6 18:35:32 anna[2826]: (process:5107): loading simple-cdd preseeding
files
Feb  6 18:35:32 anna[2826]: (process:5107): profiles:
Feb  6 18:35:32 anna[2826]: (process:5107): Finished with simple-cdd
debconf preseeding
Feb  6 18:35:32 anna[2826]: (process:5107): Queuing simple-cdd udebs...
Feb  6 18:35:32 anna[2826]: (process:5107):
Feb  6 18:35:32 anna[2826]: (process:5107): Queuing udebs for profile:
default
Feb  6 18:35:32 anna[2826]: (process:5107): Finished queueing simple-cdd
udebs
Feb  6 18:35:32 anna[2826]: (process:5107): Queuing simple-cdd packages...
Feb  6 18:35:32 anna[2826]: (process:5107):
Feb  6 18:35:32 anna[2826]: (process:5107): Queuing packages for profile:
default
Feb  6 18:35:32 anna[2826]: (process:5107): Finished queueing simple-cdd
packages

So, it looks like the simple-cdd-postinst script is running, but it never
prompts for profiles to install.

I am building with the following command:

    build-simple-cdd --conf simple-cdd.conf --locale en_GB --keyboard gb

where simple-cdd.conf contains the following:

    profiles="gw build"
    mirror_components="main non-free"
    local_packages="./local-packages/"
    export ARCH=amd64
    export KERNEL_PARAMS="preseed/file=/cdrom/simple-cdd/default.preseed
priority=critical"

my ./profiles/ directory contains the following:

    $ ls profiles/
    build.packages  build.postinst  build.preseed  gw.packages
gw.postinst  gw.preseed

The built ISO contains the following files in /simple-cdd/

    /media/cdrom$ ls ./simple-cdd/
    build.packages  build.preseed      default.excludes  default.preseed
gw.packages  gw.preseed
    build.postinst  default.downloads  default.packages  default.udebs
gw.postinst  simple-cdd.templates

And simple-cdd.templates contains the default content:

    Template: simple-cdd/profiles
    Type: multiselect
    Choices: gw, build
    Default:
    Description: Select profiles
     profiles are a simple description of common system types.
     select all that apply.

The only way that I can get simple-cdd to build an ISO which installs my
profiles is to set auto_profiles="gw build" in the simple-cdd.conf, or to
pass simple-cdd/profiles="gw build" as a kernel start parameter. This does
not achieve the desired behavior as I wish to be able to select the
profiles at install time, not have them hard-coded.

Is this a bug in stretch versions of the tools, and should I report it as
such, or is there something I am missing?

Thanks in advance,

Sam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/simple-cdd-devel/attachments/20180206/fcaf5c37/attachment.html>


More information about the Simple-cdd-devel mailing list