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

Michael Prokop mika at grml.org
Sun May 20 13:40:24 CEST 2012


  Branch: refs/heads/master
  Home:   https://github.com/grml/grml-live
  Commit: 4bc598a000f21b1d3d9bbbf55e0e3d61b68fe507
      https://github.com/grml/grml-live/commit/4bc598a000f21b1d3d9bbbf55e0e3d61b68fe507
  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

Note: existing make-fai-nfsroot.conf files will be moved
to make-fai-nfsroot.conf.outdated to avoid possible data loss.

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


  Commit: 8cfed16940d096b619bf35dad42cbf1928d58b8a
      https://github.com/grml/grml-live/commit/8cfed16940d096b619bf35dad42cbf1928d58b8a
  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: 6dcd837e7f4b15d08fb30abd7cee58c959210890
      https://github.com/grml/grml-live/commit/6dcd837e7f4b15d08fb30abd7cee58c959210890
  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/193203a...6dcd837


More information about the Git-commits mailing list