freenas/freenas — pull request #70 by alfredperlstein (2014-06-10 04:05:32+00:00)
Title: Save/restore root fs read/write status via VERSION.

Folks, this is the first of a few commits needed for the
norse "developer mode".

Developer mode eases development of FreeNAS to
the point where a webdev can just point their IDE
at the FreeNAS vm and develop against it.

First of these patches is to make root rw in
"developer mode".

Other parts to come are:
Modifications to increase image size for developer only builds.
Scripts to checkout the git repo into /data and to run the gui from /data.
Ability to selectively add packages to the system for development mode.

First we just make root read/write because otherwise it confuses and
frustrates development newbies. In our experience it has not caused
any problems due to people mistakenly writing code that assumes
a read-write root, only faster development as people can quickly
make hacks to setup dev environments.

Commit message is as follows:

A few scripts unconditionally set root to read-only
after temporarily setting it read-write to tweak data.

To fix this abstract away the mount opts into functions
that look at the avatar version. basically: if(DEVELOPER)
is set we keep the mount read-write as opposed to
unconditionally making it read-only.

Conflicts:
nanobsd/Files/etc/ix.rc.d/ix-sercons