Generate make-fai-nfsroot.conf and nfsroot.conf on-the-fly
authorMichael Prokop <mika@grml.org>
Sun, 20 May 2012 10:48:21 +0000 (12:48 +0200)
committerMichael Prokop <mika@grml.org>
Sun, 20 May 2012 11:38:41 +0000 (13:38 +0200)
commit4bc598a000f21b1d3d9bbbf55e0e3d61b68fe507
treebf4050cf8774c8677e1f9f099ce61df47e4732fe
parent193203a7b81d595703d7da56e072d19cb21c5510
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
docs/grml-live.txt
etc/grml/fai/make-fai-nfsroot.conf [deleted file]
etc/grml/grml-live.conf
grml-live