Portage Profiles
From Funtoo Linux
Classic Initialization
Classic profile initialization has been documented in this GitHub commit. The following is an overview of the code comments:
A. Find profile directory/symlink
- Look for a profile directory/symlink at /etc/make.profile, if one exists, use this as the main profile directory.
- If /etc/make.profile doesn't exist, use /etc/portage/make.profile as a back-up location if it also exists.
- If neither location exists, then a main profile directory doesn't exist.
B. Initialize Cascading Profiles
- Starting from the main profile directory found using the steps above, look for