pkg_preinst

Function pkg_preinst
Purpose Called before image is installed to ${ROOT}
Sandbox Disabled
Privilege root
Called for ebuild, binary

Default pkg_preinst

pkg_preinst()
{
	return
}

Sample pkg_preinst

pkg_preinst() {
	enewgroup foo
	enewuser foo -1 /bin/false /dev/null foo
}

Common pkg_preinst Tasks

There are a few things that are often done in pkg_preinst: