Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 113098 - /boot contains too many files and yaboot.conf creation is messed up
Summary: /boot contains too many files and yaboot.conf creation is messed up
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: Catalyst (show other bugs)
Hardware: PPC Linux
: High normal (vote)
Assignee: Gentoo Catalyst Developers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-20 09:36 UTC by Lars Weiler (RETIRED)
Modified: 2006-02-01 12:59 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lars Weiler (RETIRED) gentoo-dev 2005-11-20 09:36:51 UTC
catalyst2 creates the following for /boot and yaboot.conf on ppc:

elrohir cdrom # ls -lh boot/
total 15M
lr-xr-xr-x  1 root root    1 Nov 19 07:09 boot -> .
-r--r--r--  1 root root  728 Jul  9 14:15 boot.msg
-r-xr-xr-x  1 root root 2.9M Nov 19 07:07 kernelz-ppc-2.6.14-gentoo-r2-pegasos
-r--r--r--  1 root root  269 Feb 25  2004 map.hfs
-r--r--r--  1 root root 3.0K Jul 28 03:11 menu
-r--r--r--  1 root root 1.9K Mar 12  2005 ofboot.b
-r-xr-xr-x  1 root root 4.3M Nov 19 07:07 pegasos
-r--r--r--  1 root root 1.1M Nov 19 07:08 pegasos.igz
-r-xr-xr-x  1 root root 4.5M Nov 19 06:08 ppc32
-r--r--r--  1 root root 1.4M Nov 19 06:23 ppc32.igz
-r--r--r--  1 root root 143K Mar 12  2005 yaboot
-r--r--r--  1 root root  492 Nov 19 07:09 yaboot.conf
elrohir cdrom # cat boot/yaboot.conf 
default ppc32
timeout 300
device=cd:
root=/dev/ram
fgcolor=white
bgcolor=black
message=/boot/boot.msg

image=/boot/ppc32
initrd=/boot/ppc32.igz
label=ppc32
read-write
append="initrd=pegasos.igz root=/dev/ram0 init=/linuxrc  looptype=squashfs
loop=/image.squashfs  cdroot vga=791 splash=silent"

image=/boot/pegasos
initrd=/boot/pegasos.igz
label=pegasos
read-write
append="initrd=pegasos.igz root=/dev/ram0 init=/linuxrc  looptype=squashfs
loop=/image.squashfs  cdroot vga=791 splash=silent"
elrohir cdrom # 

a) The pegasos-kernel must not be added to the yaboot.conf
b) The pegasos.igz isn't needed (it's compiled into the kernel pegasos)
c) default_append_line doesn't get updated and a ppc (two times
initrd=pegasos.igz), but this append-entry isn't needed on ppc, as there is a
separate yaboot.conf-line for the initrd, which is correct
d) The file kernelz-ppc-2.6.14-gentoo-r2-pegasos was not deleted (probably
genkernel?)
               separated initrd= entry in the yaboot.conf
Comment 1 Chris Gianelloni (RETIRED) gentoo-dev 2005-12-20 09:32:40 UTC
Can you verify that this is still an issue with catalyst 2.0_rc11?
Comment 2 Lars Weiler (RETIRED) gentoo-dev 2005-12-20 09:45:37 UTC
Yes, as soon as I get a proper stage1 and with it a stage3 and so on compiled ;-)
Comment 3 Chris Gianelloni (RETIRED) gentoo-dev 2006-01-20 12:29:13 UTC
Pylon: did you ever get this tested?
Comment 4 Lars Weiler (RETIRED) gentoo-dev 2006-01-20 17:27:05 UTC
/boot looks better now:

elrohir catalyst2 # ls -l /mnt/cdrom/boot/
total 8954
lr-xr-xr-x  1 root root       1 Jan 15 18:57 boot -> .
-r--r--r--  1 root root     728 Jul  9  2005 boot.msg
-r--r--r--  1 root root     269 Feb 25  2004 map.hfs
-r--r--r--  1 root root    3074 Jan 15 18:28 menu
-r--r--r--  1 root root    1852 Mar 12  2005 ofboot.b
-r-xr-xr-x  1 root root 2904803 Jan 15 18:55 pegasos
-r-xr-xr-x  1 root root 4702127 Jan 12 22:55 ppc32
-r--r--r--  1 root root 1407494 Jan 15 18:53 ppc32.igz
-r--r--r--  1 root root  145460 Mar 12  2005 yaboot
-r--r--r--  1 root root     453 Jan 15 18:57 yaboot.conf

But there is still the pegasos-entry in yaboot.conf.  I guess, it's not possible to kill that one.  But the ppc32-initrd is added properly to the yaboot.conf now (after fixing the bug for catalyst2_rc15).

JoseJX told me, that he can't boot the CD on an Apple.  Probably something is messed up with the yaboot.conf.  We'll investingate it this weekend.
Comment 5 Chris Gianelloni (RETIRED) gentoo-dev 2006-02-01 12:59:03 UTC
This looks good... the not booting issue was covered in another bug...