public inbox for gentoo-catalyst@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-catalyst] Missing /usr/src in installcd-stage3-minimal
@ 2011-07-06 17:28 Zachary Bedell
  2011-07-06 18:10 ` Peter Stuge
  2011-07-06 18:14 ` [gentoo-catalyst] Missing /usr/src in installcd-stage3-minimal Sebastian Pipping
  0 siblings, 2 replies; 9+ messages in thread
From: Zachary Bedell @ 2011-07-06 17:28 UTC (permalink / raw
  To: gentoo-catalyst

Greetings all,

I'm just beginning to play with Catalyst to create custom installcd images.  I've started with the Gentoo releng spec files from svn://anonsvn.gentoo.org/releng/trunk/releases/weekly/specs/amd64.  I managed to get through stage1-3 and installcd-stage1 without any trouble.  

Running installcd-stage2-minimal dies when trying to run Genkernel with "ln: failed to create symbolic link `/usr/src/linux': No such file or directory".  I hacked the kmerge.sh script to drop to a shell right after that happened and found that there was no /usr/src directory in the chroot.  Doing a `mkdir -p /usr/src` right before the ln call, and everything seems to work out after that.

I'm assuming something probably went wrong in an earlier stage, but I don't know enough about Catalyst yet to know quite where to look.

I can post spec files if they'd help, but I'm using stock from SVN with just some version number's changed around.  Does anyone have a guess where I might look, or is there any chance this might be a bug in the kmerge.sh script?  I'm using catalyst-2.0.6.916 at this point, but I may just give the -9999 build a try to see if that fixed the issue.

Any pointers would be appreciated.

Best regards,
Zac Bedell





^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-catalyst] Missing /usr/src in installcd-stage3-minimal
  2011-07-06 17:28 [gentoo-catalyst] Missing /usr/src in installcd-stage3-minimal Zachary Bedell
@ 2011-07-06 18:10 ` Peter Stuge
  2011-07-06 19:14   ` Sebastian Pipping
  2011-07-06 18:14 ` [gentoo-catalyst] Missing /usr/src in installcd-stage3-minimal Sebastian Pipping
  1 sibling, 1 reply; 9+ messages in thread
From: Peter Stuge @ 2011-07-06 18:10 UTC (permalink / raw
  To: gentoo-catalyst

Zachary Bedell wrote:
> found that there was no /usr/src directory in the chroot

The latest stage3 also does not add udev to the sysinit runlevel.
Lost about an hour to that.


> I'm assuming something probably went wrong in an earlier stage,

Not neccessarily, think about who should create /usr/src. IMO it's
not at all really neccessary, it's just by (deprecated) convention
that there are kernel sources there.


> but I don't know enough about Catalyst yet to know quite where to
> look.

It has little to do with catalyst itself. In any case, if you make
sure that your livecd-stage1 includes kernel sources, then I think
you'll sidestep around the problem.


//Peter



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-catalyst] Missing /usr/src in installcd-stage3-minimal
  2011-07-06 17:28 [gentoo-catalyst] Missing /usr/src in installcd-stage3-minimal Zachary Bedell
  2011-07-06 18:10 ` Peter Stuge
@ 2011-07-06 18:14 ` Sebastian Pipping
  2011-07-07  2:17   ` Zachary Bedell
  1 sibling, 1 reply; 9+ messages in thread
From: Sebastian Pipping @ 2011-07-06 18:14 UTC (permalink / raw
  To: gentoo-catalyst

On 07/06/2011 07:28 PM, Zachary Bedell wrote:
> Greetings all,
> 
> I'm just beginning to play with Catalyst to create custom installcd
> images.  I've started with the Gentoo releng spec files from
> svn://anonsvn.gentoo.org/releng/trunk/releases/weekly/specs/amd64.  I
> managed to get through stage1-3 and installcd-stage1 without any
> trouble.
> 
> Running installcd-stage2-minimal dies when trying to run Genkernel
> with "ln: failed to create symbolic link `/usr/src/linux': No such
> file or directory".  I hacked the kmerge.sh script to drop to a shell
> right after that happened and found that there was no /usr/src
> directory in the chroot.  Doing a `mkdir -p /usr/src` right before
> the ln call, and everything seems to work out after that.
> 
> I'm assuming something probably went wrong in an earlier stage, but I
> don't know enough about Catalyst yet to know quite where to look.
> 
> I can post spec files if they'd help, but I'm using stock from SVN
> with just some version number's changed around.  Does anyone have a
> guess where I might look, or is there any chance this might be a bug
> in the kmerge.sh script?  I'm using catalyst-2.0.6.916 at this point,
> but I may just give the -9999 build a try to see if that fixed the
> issue.

Afaik the code in 9999 differs by more than just bugfixes.  Let me quote
from the -9999 ebuild:

  "The git master branch (what you get with this -9999 ebuild) for
   catalyst now contains the work-in-progress code for catalyst-3.x.
   Be aware that it's very likely that it will not be in a working
   state at any given point."

Also, please be aware that I have brought up the question of deleting
the 3.x altogether.  That means: In case you start using -9999 we really
need to know, so we don't pull the chair that you just sat down on.


On the /usr/src issue I would like to ask you to file a bug for it.
Copy-pasting from your original mail should be fine.  Thanks for
bringing it up.

Best,



Sebastian



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-catalyst] Missing /usr/src in installcd-stage3-minimal
  2011-07-06 18:10 ` Peter Stuge
@ 2011-07-06 19:14   ` Sebastian Pipping
  2011-07-07  2:40     ` Jorge Manuel B. S. Vicetto
  0 siblings, 1 reply; 9+ messages in thread
From: Sebastian Pipping @ 2011-07-06 19:14 UTC (permalink / raw
  To: gentoo-catalyst

On 07/06/2011 08:10 PM, Peter Stuge wrote:
> Zachary Bedell wrote:
>> found that there was no /usr/src directory in the chroot
> 
> The latest stage3 also does not add udev to the sysinit runlevel.
> Lost about an hour to that.

Now that you mention it: I ran into the same problem.  It was ~20
something hours wasted over here I guess before I found that Xorg didn't
find my graphics card because of udev not being started.

Best,



Sebastian



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-catalyst] Missing /usr/src in installcd-stage3-minimal
  2011-07-06 18:14 ` [gentoo-catalyst] Missing /usr/src in installcd-stage3-minimal Sebastian Pipping
@ 2011-07-07  2:17   ` Zachary Bedell
  2011-07-07  3:12     ` Sebastian Pipping
  0 siblings, 1 reply; 9+ messages in thread
From: Zachary Bedell @ 2011-07-07  2:17 UTC (permalink / raw
  To: gentoo-catalyst

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Jul 6, 2011, at 2:14 PM, Sebastian Pipping wrote:
> On 07/06/2011 07:28 PM, Zachary Bedell wrote:
>> Running installcd-stage2-minimal dies when trying to run Genkernel
>> with "ln: failed to create symbolic link `/usr/src/linux': No such
>> file or directory".  I hacked the kmerge.sh script to drop to a shell
>> right after that happened and found that there was no /usr/src
>> directory in the chroot.  Doing a `mkdir -p /usr/src` right before
>> the ln call, and everything seems to work out after that.
> 
> Also, please be aware that I have brought up the question of deleting
> the 3.x altogether.  That means: In case you start using -9999 we really
> need to know, so we don't pull the chair that you just sat down on.

Based on that, I think I'll stay away from the -9999's then.  I was able to get 2.0.6.916 working with either of two work arounds, so heading off to git land for this is a bit more fun than I'm allowed to have...

> On the /usr/src issue I would like to ask you to file a bug for it.
> Copy-pasting from your original mail should be fine.  Thanks for
> bringing it up.

Opened:

https://bugs.gentoo.org/show_bug.cgi?id=374297

Just for laughs (I've been told I have an odd sense of humor...), I went back and ran installcd-stage1 with gentoo-sources included (cleaned everything up from installcd-stage[12] first of course), and removed the mkdir I added in kmerge.sh.  Worked fine as long as source was in installcd-stage1, so I've amended my bug report to reflect that.  Also included the one-liner patch to make it work without source in installcd-stage1.


One more minor thing I ran into:  

/usr/lib64/catalyst/targets/support/create-iso.sh: line 233: mkdosfs: command not found
mount: wrong fs type, bad option, bad superblock on /dev/loop0,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

`emerge sys-fs/dosfstools` of course fixed that right up.  Is that something I should open against Catalyst itself in "Gentoo Hosted Projects," or does that go to "Gentoo Linux" for the ebuild?


I've got a nice little ISO file built now.  Time to throw a VM at it and see how much of a mess I've made of things...


Thanks also for the pointer about udev.  Anything that saves me a wild goose chase is always appreciated.

Best regards,
Zac Bedell

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)

iEYEARECAAYFAk4VF0oACgkQq+EtLVpY/F7SrgCfcl/KF1Pe1jm0QB7vuQVdN5r0
p8YAn0/bSbLJ7LlVk5i2QKgIHleMJPVQ
=Pcd/
-----END PGP SIGNATURE-----



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-catalyst] Missing /usr/src in installcd-stage3-minimal
  2011-07-06 19:14   ` Sebastian Pipping
@ 2011-07-07  2:40     ` Jorge Manuel B. S. Vicetto
  2011-07-07  3:09       ` Sebastian Pipping
  2011-07-12  0:48       ` [gentoo-catalyst] Missing runlevels/sysinit/udev in stage3 Peter Stuge
  0 siblings, 2 replies; 9+ messages in thread
From: Jorge Manuel B. S. Vicetto @ 2011-07-07  2:40 UTC (permalink / raw
  To: gentoo-catalyst

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 06-07-2011 19:14, Sebastian Pipping wrote:
> On 07/06/2011 08:10 PM, Peter Stuge wrote:
>> Zachary Bedell wrote:
>>> found that there was no /usr/src directory in the chroot

https://bugs.gentoo.org/show_bug.cgi?id=371280

>> The latest stage3 also does not add udev to the sysinit runlevel.
>> Lost about an hour to that.

https://bugs.gentoo.org/show_bug.cgi?id=369037
What stage did you try?

> Now that you mention it: I ran into the same problem.  It was ~20
> something hours wasted over here I guess before I found that Xorg didn't
> find my graphics card because of udev not being started.
> 
> Best,
> 
> 
> 
> Sebastian

- -- 
Regards,

Jorge Vicetto (jmbsvicetto) - jmbsvicetto at gentoo dot org
Gentoo- forums / Userrel / Devrel / KDE / Elections / RelEng



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-catalyst] Missing /usr/src in installcd-stage3-minimal
  2011-07-07  2:40     ` Jorge Manuel B. S. Vicetto
@ 2011-07-07  3:09       ` Sebastian Pipping
  2011-07-12  0:48       ` [gentoo-catalyst] Missing runlevels/sysinit/udev in stage3 Peter Stuge
  1 sibling, 0 replies; 9+ messages in thread
From: Sebastian Pipping @ 2011-07-07  3:09 UTC (permalink / raw
  To: gentoo-catalyst

On 07/07/2011 04:40 AM, Jorge Manuel B. S. Vicetto wrote:
>>> The latest stage3 also does not add udev to the sysinit runlevel.
>>> Lost about an hour to that.
> 
> https://bugs.gentoo.org/show_bug.cgi?id=369037
> What stage did you try?

Stage4.  Same for Peter.

Best,



Sebastian



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-catalyst] Missing /usr/src in installcd-stage3-minimal
  2011-07-07  2:17   ` Zachary Bedell
@ 2011-07-07  3:12     ` Sebastian Pipping
  0 siblings, 0 replies; 9+ messages in thread
From: Sebastian Pipping @ 2011-07-07  3:12 UTC (permalink / raw
  To: gentoo-catalyst

On 07/07/2011 04:17 AM, Zachary Bedell wrote:
> One more minor thing I ran into:  
> 
> /usr/lib64/catalyst/targets/support/create-iso.sh: line 233: mkdosfs: command not found
> mount: wrong fs type, bad option, bad superblock on /dev/loop0,
>        missing codepage or helper program, or other error
>        In some cases useful info is found in syslog - try
>        dmesg | tail  or so
> 
> `emerge sys-fs/dosfstools` of course fixed that right up.  Is that something I should open against Catalyst itself in "Gentoo Hosted Projects," or does that go to "Gentoo Linux" for the ebuild?

Seen that one before as <https://bugs.gentoo.org/show_bug.cgi?id=274972>.

For anything new "Gentoo Hosted Projects"::"Catalyst" is perfect.

Best,



Sebastian



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-catalyst] Missing runlevels/sysinit/udev in stage3
  2011-07-07  2:40     ` Jorge Manuel B. S. Vicetto
  2011-07-07  3:09       ` Sebastian Pipping
@ 2011-07-12  0:48       ` Peter Stuge
  1 sibling, 0 replies; 9+ messages in thread
From: Peter Stuge @ 2011-07-12  0:48 UTC (permalink / raw
  To: gentoo-catalyst

Jorge Manuel B. S. Vicetto wrote:
> > On 07/06/2011 08:10 PM, Peter Stuge wrote:
> >> The latest stage3 also does not add udev to the sysinit runlevel.
> >> Lost about an hour to that.
> 
> https://bugs.gentoo.org/show_bug.cgi?id=369037
> What stage did you try?

stage3-amd64-20110625.tar.bz2 or 20110630. I did the setup on 6/30
and grabbed the latest stage3 from a Swedish mirror. Can I check in
the installed system exactly which one was used?


//Peter



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2011-07-12  1:02 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-06 17:28 [gentoo-catalyst] Missing /usr/src in installcd-stage3-minimal Zachary Bedell
2011-07-06 18:10 ` Peter Stuge
2011-07-06 19:14   ` Sebastian Pipping
2011-07-07  2:40     ` Jorge Manuel B. S. Vicetto
2011-07-07  3:09       ` Sebastian Pipping
2011-07-12  0:48       ` [gentoo-catalyst] Missing runlevels/sysinit/udev in stage3 Peter Stuge
2011-07-06 18:14 ` [gentoo-catalyst] Missing /usr/src in installcd-stage3-minimal Sebastian Pipping
2011-07-07  2:17   ` Zachary Bedell
2011-07-07  3:12     ` Sebastian Pipping

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox