grml-debootstrap icon indicating copy to clipboard operation
grml-debootstrap copied to clipboard

supplying packages list by command line or env var rather than packages file

Open adrelanos opened this issue 9 years ago • 5 comments

I find the need for the packages file not so pretty. Could you provide an option please for a command line or environment variable that contains a space (or w/e) delimited list of packages?

Any idea how that could be implemented? It's non obvious to me, because a the packages file is copied into the chroot.

I may or may not be able to provide a pull request for adding that option.

adrelanos avatar Nov 30 '14 21:11 adrelanos

It may be possible to use existing --debopt ... to pass --include=package1,package to debootstrap. I am not sure yet if

  • it does work and
  • if it is good enough from a user experience point of view.

hartwork avatar Dec 02 '14 11:12 hartwork

Should do in theory, doesn't work due to yet to be reported bugs.

adrelanos avatar Dec 15 '14 01:12 adrelanos

Should do in theory, doesn't work due to yet to be reported bugs.

Reported here: #48

adrelanos avatar Dec 15 '14 02:12 adrelanos

This works for the usual™ package, just tested via:

--debopt "--verbose --include=zsh"

It would be indeed nice to have the option to install further packages by a simple command line option like --include-packages=foo,bar,... and install them via apt-get/aptitude in the main grml-debootstrap run (instead of leaving that to debootstrap), if someone comes up with a PR I'd happily accept that.

mika avatar Jun 04 '15 12:06 mika

Should be fairly simple. I can help, after/pending #148.

suntong avatar Jan 23 '20 16:01 suntong