When kernel-2.eclass creates a symlink for the new kernel directory, it uses an absolute path. This makes it harder to mix chrooted and non-chrooted environments. It would be easier and shorter to simply have a relative symlink. so change ln -sf ${ROOT}usr/src/linux-${KV_FULL} ${ROOT}usr/src/linux to ln -s linux-${KV_FULL} ${ROOT}usr/src/linux The force is superfluous, since the old symlink is removed before, since otherwise it would be treated as a directory. Reproducible: Always Steps to Reproduce:
good catch. Changed in my local copy and will be comitted after some other changes have been tested.
marking fixed. please re-open if the next commit does not suit your needs.