Choose style:

Author Topic: How can I include additional packages during install?  (Read 323 times)

0 Members and 1 Guest are viewing this topic.

Offline DeveloperDave

  • nOOb
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
  • Peppermint version(s): 8
How can I include additional packages during install?
« on: May 11, 2018, 11:29:44 am »
I'm trying to automate the installation of peppermint 8 with a preseed.cfg file.

I've successfully automated the installation but I also want it to install additional packages (e.g openssh-server).

I've tried adding the following in my preseed.cfg file however non seem to have worked. :(

d-i pkgsel/include string openssh-server
d-i preseed/late_command string apt-install -y openssh-server
d-i preseed/late_command string in-target apt-get install -y openssh-server
ubiquity ubiquity/success_command string apt-install -y openssh-server
ubiquity ubiquity/success_command string in-target apt-get install -y openssh-server


What do I need to do to include additional packages automatically during or after the installation?

Online PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 21242
  • Karma: 2391
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8 Respin & 9 Alpha
Re: How can I include additional packages during install?
« Reply #1 on: May 11, 2018, 01:04:24 pm »
Where are you putting this preseed.cfg file, and how are you calling it ?
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline DeveloperDave

  • nOOb
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
  • Peppermint version(s): 8
Re: How can I include additional packages during install?
« Reply #2 on: May 14, 2018, 03:54:03 am »
Note that the installation is correctly using other config from the preseed.cfg file.  So I think the following is fine.

I'm using a tool called packer with the command:
/casper/vmlinuz.efi noprompt \
  boot=casper \
  automatic-ubiquity \
  auto url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg \
  debconf/frontend=Noninteractive \
  console-setup/ask_detect=false \
  netcfg/choose_interface=auto \
  fb=false \
  priority=critical \
  initrd=/casper/initrd.lz --