Implement NO_ROOT support for distributekernel and packagekernel.