Date: Thu, 18 Jun 2009 10:39:08 +0000 (UTC) From: Nick Hibma <n_hibma@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/tools/tools/nanobsd nanobsd.sh Message-ID: <200906181039.n5IAdVPs097231@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
n_hibma 2009-06-18 10:39:08 UTC
FreeBSD src repository
Modified files:
tools/tools/nanobsd nanobsd.sh
Log:
SVN rev 194431 on 2009-06-18 10:39:08Z by n_hibma
Allow building world into a separate dir (for reuse in multiple images):
- buildworld and buildkernel are built into MAKEOBJDIRPREFIX
- installworld and installkernel are performed on NANO_OBJ.
No change of functionality if MAKEOBJDIRPREFIX is not set. If it is sea,t
clean_world deletes NANO_OBJ instead of NANO_WORLDDIR. By starting nanobsd.sh
with the -b option the existing world can be reused to build a new world
reducing time and disk space considerably.
While there:
- Fix two cases where (in comments) MAKEOBJDIRPREFIX should have been
NANO_DISKIMGDIR.
- Simplify an 'if (not wrong); then true; else action; fi' into
'if wrong; then action; fi'. 'if ! false; then echo hello; fi' produces hello.
Note: Make sure you use NANO_OBJ were you use MAKEOBJDIRPREFIX now in your
nanobsd.conf files if you want to split out.
Revision Changes Path
1.48 +63 -64 src/tools/tools/nanobsd/nanobsd.sh
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906181039.n5IAdVPs097231>
