In pkg_postinst(): cp ${ROOT%/}/usr/lib/tboot/boot/* ${ROOT%/}/boot/ The files in ${ROOT%/}/boot/ won't be recorded in the VDB, and therefore will remain as orphans when the package is removed. This should be moved to src_install (which AFAICS could be simplified then).