Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 374297 - installcd-stage2-minimal fails in genkernel unless gentoo-sources included in installcd-stage1
Summary: installcd-stage2-minimal fails in genkernel unless gentoo-sources included in...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: Catalyst (show other bugs)
Hardware: AMD64 Linux
: Normal minor
Assignee: Gentoo Catalyst Developers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-07 02:07 UTC by Zachary Bedell
Modified: 2012-09-28 10:36 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch fixes issue (catalyst-mkdir-usr-src.patch,359 bytes, patch)
2011-07-07 02:08 UTC, Zachary Bedell
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Zachary Bedell 2011-07-07 02:07:45 UTC
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.
Comment 1 Zachary Bedell 2011-07-07 02:08:55 UTC
Created attachment 279291 [details, diff]
Patch fixes issue

Patch to mkdir before ln.
Comment 2 Jorge Manuel B. S. Vicetto (RETIRED) gentoo-dev 2011-07-07 02:57:11 UTC
This should be closed as a dupe of bug 371280.
I'm leaving it open for others to chime in.
Comment 3 Jorge Manuel B. S. Vicetto (RETIRED) gentoo-dev 2012-09-28 10:36:31 UTC
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.