[Git-commits] [grml/grml-live] 9e1c04: Generate make-fai-nfsroot.conf and nfsroot.conf on...

Michael Prokop mika at grml.org
Sun May 20 13:32:38 CEST 2012


  Branch: refs/heads/mika/rework_nfsroot.conf
  Home:   https://github.com/grml/grml-live
  Commit: 9e1c0433e556ebdbee391d37cf95aba0868255e1
      https://github.com/grml/grml-live/commit/9e1c0433e556ebdbee391d37cf95aba0868255e1
  Author: Michael Prokop <mika at grml.org>
  Date:   2012-05-20 (Sun, 20 May 2012)

  Changed paths:
    M docs/grml-live.txt
    R etc/grml/fai/make-fai-nfsroot.conf
    M etc/grml/grml-live.conf
    M grml-live

  Log Message:
  -----------
  Generate make-fai-nfsroot.conf and nfsroot.conf on-the-fly

FAI 4 uses nfsroot.conf instead of make-fai-nfsroot.conf without
providing any backwards compatibility. :( So while at it rework
the way how make-fai-nfsroot.conf is handled:

* No longer ship /etc/grml/fai/make-fai-nfsroot.conf at all
* Generate nfsroot.conf based on default settings (can be overriden
  by $FAI_DEBOOTSTRAP + $FAI_DEBOOTSTRAP_OPTS) on the fly
* Provide symlink make-fai-nfsroot.conf pointing to nfsroot.conf
  to support old and new FAI versions at the same time
* After execution copy generated nfsroot.conf file to log directory
  and get rid of make-fai-nfsroot.conf and nfsroot.conf in
  $GRML_FAI_CONFIG (/etc/grml/fai/ by default) afterwards

Closes: https://github.com/grml/grml-live/issues/4


  Commit: a46f7857979dd053ce46b710e1f396d8abb93af8
      https://github.com/grml/grml-live/commit/a46f7857979dd053ce46b710e1f396d8abb93af8
  Author: Michael Prokop <mika at grml.org>
  Date:   2012-05-20 (Sun, 20 May 2012)

  Changed paths:
    M grml-live

  Log Message:
  -----------
  Generate /etc/grml_live_version after FAI execution + drop /etc/dpkg/dpkg.cfg.d/unsafe-io code

FAI uses /etc to detect whether a chroot exists or not and will
skip debootstrap stage if /etc exists already. This causes serious
problems if the user doesn't have a BASEFILE, therefore we can't
edit files inside /etc before running FAI. :(

As a result:

1) generate /etc/grml_live_version *after* FAI has been executed

2) drop /etc/dpkg/dpkg.cfg.d/unsafe-io related code.
As stated in commit 9269536ba7bb7def8664972d153b71d193450595

| Enable --force-unsafe-io for dpkg
|
| While this might help on resource constrained systems, no performance
| impact has been measured during an unscientific test on a well-geared
| machine.

it does not seem to be that relevant. But even more important: it
doesn't work for systems without BASEFILEs because FAI skips the
debootstrap stage if /etc exists already, so we can't generate
/etc/dpkg/dpkg.cfg.d/unsafe-io *before* running FAI. Unless
someone comes up with benchmarks about real performance impacts
let's skip adding more fcopy logic...


  Commit: e2025a58f6d84dbe3ec327a46a4ee3085eaf80ca
      https://github.com/grml/grml-live/commit/e2025a58f6d84dbe3ec327a46a4ee3085eaf80ca
  Author: Michael Prokop <mika at grml.org>
  Date:   2012-05-20 (Sun, 20 May 2012)

  Changed paths:
    M docs/grml-live.txt
    R etc/grml/fai/NFSROOT

  Log Message:
  -----------
  Drop unused NFSROOT configuration file


Compare: https://github.com/grml/grml-live/compare/df39f5d...e2025a5


More information about the Git-commits mailing list