When doing a full 3+2 Catalyst stages then installCD, trying to build install-stage2 without having included kernel source in both installcd-stage1 *and* installcd-stage2 causes genkernel to fail. Creating the /usr/src directory inside chroot from kmerge.sh fixes the error (as does including source in installcd-stage1). Reproducible: Always Steps to Reproduce: 1. Download stock releng spec files from svn://anonsvn.gentoo.org/releng/trunk/releases/weekly/specs/amd64, rev 796. 2. Edit spec files to add several packages, add custom version_stamp, snapshot, and output directories. Do *not* include any version of gentoo-sources in any stage prior to installcd-stage2-minimal. 3. Run stage1, stage2, stage3, installcd-stage1, installcd-stage2-minimal. Actual Results: Symlink immediately before starting genkernel fails with: ln: failed to create symbolic link `/usr/src/linux': No such file or directory Genkernel then fails to build kernel. Examining the chroot shows that directory /usr/src does not exist. Expected Results: installcd-stage2 should complete without source in installcd-stage1 Adding the desired version of gentoo-sources as a package to installcd-stage1 allows installcd-stage2 to complete successfully. The attached patch to create the missing /usr/src dir also allows installcd-stage2 to complete regardless of whether source was included in installcd-stage1. Current tutorials suggest that source should only be required in installcd-stage2, and once the missing directory is created, an ISO is successfully generated without source in installcd-stage1.
Created attachment 279291 [details, diff] Patch fixes issue Patch to mkdir before ln.
This should be closed as a dupe of bug 371280. I'm leaving it open for others to chime in.
As no one made a comment in the last year, baselayout-2.0.3 was marked stable and this hasn't affected our builds in a long time, I'm closing as fixed.