[Simple-cdd-devel] Bug#889916: simple-cdd-profiles postinst never prompts for which profiles to install

Sam Overton samoverton+dbugs at gmail.com
Thu Feb 8 18:08:09 UTC 2018


Package: simple-cdd
Version: 0.6.5
Severity: normal

Dear Maintainer,

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-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"

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.


-- System Information:
Debian Release: 9.3
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.0-5-amd64 (SMP w/6 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages simple-cdd depends on:
ii  dctrl-tools         2.24-2+b1
ii  debian-cd           3.1.20
ii  lsb-release         9.20161125
ii  python3             3.5.3-1
ii  python3-simple-cdd  0.6.5
ii  reprepro            5.1.1-1
ii  rsync               3.1.2-1+deb9u1
ii  wget                1.18-5+deb9u1

Versions of packages simple-cdd recommends:
ii  dose-distcheck  5.0.1-8+deb9u1

Versions of packages simple-cdd suggests:
pn  qemu-system | qemu-kvm  <none>

-- no debconf information



More information about the Simple-cdd-devel mailing list