[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#619236: [Cbe-oss-dev] Bug#619236: installation-reports: installation works fine on PS3 now, but we still can't boot after the installation



On Wed, 30 Mar 2011 15:03:26 -0700
Geoff Levand <geoff@infradead.org> wrote:

> On 03/22/2011 02:29 AM, Antonio Ospite wrote:
> > Hi,
> > 
> > the installation on PS3 now completes pretty fine, however there are 
> > still some details that could be improved.
> > 
> > The installer warns about the boot loader not being installed, which is 
> > fine, I already had the 'petitboot' bootloader installed, but some 
> > configuration is still needed to make the system actually boot _after_ 
> > the installation.
> > 
> > petitboot needs a /etc/kboot.conf in the root filesystem with this 
> > content to successfully boot the installed system:
> > 
> > linux=/boot/vmlinux initrd=/boot/initrd.img root=/dev/ps3da1 quiet
> > 
[...]

> I encountered the same problems as Antonio.  Once the installer
> was finished, but before it rebooted the system I used this from
> a tty console:
> 
>   echo 'linux=/boot/vmlinux initrd=/boot/initrd.img root=/dev/ps3da1' > /target/etc/kboot.conf
> 
> -Geoff

Hi,

I've gone a little bit further on this: I started to put together a
kboot-mkconfig script (shamelessly copied from grub-mkconfig) along
with an update-kboot and some kernel install hooks, you can find it
here:

http://git.ao2.it/kboot-utils.git/

You can build the package with "dpkg-buildpackage -tc".

The idea is to have d-i to install this kboot-utils package when
machine==PS3, and let the postinst script of the package generate
the kboot.conf for us, but I haven't got that far yet.

The main concern is about how to detect the actual device the rootfs is
going to be on, right now I am doing:
	LINUX_ROOT_DEVICE="$(mount | grep ' / ' | cut -d ' ' -f 1)"

and my current understanding is that this is going to work even from
the installer because d-i would be calling apt in a "chroot /target"
context when installing the kboot-utils package, but I'd like to have
some confirmation about that.

And a review about the state of the package will be appreciated too.

With Kind Regards,
   Antonio

-- 
Antonio Ospite
http://ao2.it

PGP public key ID: 0x4553B001

A: Because it messes up the order in which people normally read text.
   See http://en.wikipedia.org/wiki/Posting_style
Q: Why is top-posting such a bad thing?

Attachment: pgp0Xgj4Yrs16.pgp
Description: PGP signature


Reply to: