[Git-commits] [grml/grml-live] f90fcb: Support setting custom aptoptions for FAI

Michael Prokop noreply at github.com
Fri May 7 00:15:51 CEST 2021

  Branch: refs/heads/mika/faiopts
  Home:   https://github.com/grml/grml-live
  Commit: f90fcb0ecd170b5e2cfa818c867b93e73a4e2004
  Author: Michael Prokop <mika at grml.org>
  Date:   2021-05-07 (Fri, 07 May 2021)

  Changed paths:
    M grml-live

  Log Message:
  Support setting custom aptoptions for FAI

/dev/pts might not be available, for for example when running grml-live
inside a (unprivileged) docker container. Then apt/aptitude invocations
cause the following error message to show up:

| E: Can not write log (Is /dev/pts mounted?) - posix_openpt (19: No such device)

Sadly FAI's task_instsoft include the following hardcoded check:

| grep -E "^E:" $LOGDIR/software.log && task_error 472

So whenever the /dev/pts error message shows up, FAI considers this as
error and we're failing installation.

apt supports usage of `-o Dpkg::Use-Pty=0` though to not trigger the
pty related code (pkgDPkgPM::StartPtyMagic()).

By setting the environment variable aptoptions="-o Dpkg::Use-Pty=0" for
FAI execution, we can avoid this error message showing up in FAI's
software.log and being considered as error.

Support passing custom environment variables to the fai command line via

More information about the Git-commits mailing list