On 2018-02-08, Sam Overton wrote:
> 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[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...
...
> So, it looks like the simple-cdd-profiles 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"

Well, priority critical only one step shy of entirely non-interactive,
and so blocked it from asking the question; the question which asks for
which profiles is only asked at priority high or lower (and I believe is
the default priority).

So don't override the priority; questions need to be preseeded away if
you want it to ask you which profiles :)

Though, I suppose a simple-cdd mode where it runs in priority=critical,
but still asks for the profiles would be interesting... could probably
selectively enable that with another preseeded
question... e.g. simple-cdd/always-ask-profiles=true.


Try creating profiles/default.conf:

  mirror_components="main non-free"
  local_packages="./local-packages/"
  locale=en_GB
  keyboard=gb

and running:

  build-simple-cdd --profiles gw,build


The --conf option is really a legacy option that predates profiles, and
I suspect it may not work correctly in a number of cases.


live well,
  vagrant

Attachment: signature.asc
Description: PGP signature

Reply via email to