Peppermint OS Community Forum

Resources => Development Resources => Topic started by: DeveloperDave on May 11, 2018, 11:29:44 am

Title: How can I include additional packages during install?
Post by: DeveloperDave 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?
Title: Re: How can I include additional packages during install?
Post by: PCNetSpec on May 11, 2018, 01:04:24 pm
Where are you putting this preseed.cfg file, and how are you calling it ?
Title: Re: How can I include additional packages during install?
Post by: DeveloperDave 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 (https://www.packer.io/) 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 --