Invlab

= /gentoo-new chroot filesystem =

/etc/portage
This follows the standard setup for the portage directory on any Gentoo system. Keep in mind that some settings here, particularly in the profiles directory, are required only for the target filesystem. If you have problems with emerging packages in the base filesystem, this is the first place to check for problems. See the portage man page for more details.

/etc/target.conf
This file contains additional options which would otherwise appear in make.conf that are used when emerging to the target system. It is sourced by emerge-target.

/usr/local/bin/emerge-target
This is a very simple script which merely sources at the target icons and runs emerge with the provided options.

/usr/local/portage
This is the location of the portage overlay which contains all custom ebuilds required for Inveneo Linux. If you need to modify a file in the target filesystem the correct process is to modify the ebuilds here and then reemerge the package.

/usr/local/portage/distfiles
This directory is not used by Gentoo, but is merely an arbitrary location used to develop custom source packages. You can modify the source here, archive the package, and copy it to the /usr/bin/distfiles directory in order to avoid having to upload experimental versions to the public download location, which, incidentally, is the gentoo directory at the root level of the Inveneo web server, www.inveneo.org/gentoo, or /var/www/www/gentoo on the local file system (yes, there are two www directories).

/usr/local/src
This is basically a scratch directory for test-compiling packages when a new ebuild is required.

/usr/portage/distfiles
This is where Gentoo caches downloaded source archives on the local file system. It can be used to shortcut the download step when creating a new version of a package with a custom source.

/usr/src
The kernel sources are located here.

/target
This is currently configured as the root directory for the target filesystem which will become an instance of Inveneo Linux.

/build
This is currently configured as the location for built image files that can be used to install Inveneo Linux. See make-image and make-installer.

= Using the DEV key =

On the rack in the office, there is a USB key marked DEV (NFR) near the Wyse S-series box. This key is hardcoded to wget the image at http://invlab/target.img (except that it uses the IP address) and write it directly to the internal flash. This avoids needing to run make-installer during testing. Just make sure the /var/www/target.img symlink is up to date and you'll be fine.