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

Bug#619236: debian PS3 installation kboot.conf needed



On Thu, 20 Mar 2014 09:34:41 +0100
Wouter Verhelst <w@uter.be> wrote:

> Op maandag 3 maart 2014 10:38:12 schreef Antonio Ospite:
> > kboot-utils is in Debian[1] already, all that is missing is to find a
> > way to tell the installer:
> > 
> > 	"if this system is a PS3, then install kboot-utils"
> > 
> > Can anyone suggest where this kind of logic can be added in d-i?
> > I didn't manage to allocate enough time to look deeper into that.
> 
> If the PS3 needs some special partitioning (it's been a while since I 
> upgraded my PS3 to something that can't run Linux anymore, so I don't 
> remember) then I would suggest a partman module.
> 
> If not, I guess finish-install is the best place to do it.
> 

I had some minutes to spare and I looked a little further into this;
I think we could use pkgsel along with archdetect for this: the latter
is in the hw-detect[1] package, which uses libdebian-installer[2].

It looks like archdetect knows about the PS3 already[3], so maybe it can
be called in pkgsel[4], like done for laptop-detect[5], hopefully
something like the following may be enough:

--------------- [d-i/pkgsel.git]/pre-pkgsel.d/20kboot-utils -----------
#!/bin/sh

set -e

# Install kboot-utils on PS3
case "$(archdetect)" in
    powerpc/ps3)
        apt-install kboot-utils || true
        ;;
esac
-----------------------------------------------------------------------

Unfortunately I don't know the exact output of archdetect on the PS3 as I don't
have mine anymore.

If anyone can provide the output of archdetect (is it only available
while installing?) I can send a patch to pkgsel.

Thanks,
   Antonio

[1] http://anonscm.debian.org/gitweb/?p=d-i/hw-detect.git;a=summary 
[2] http://anonscm.debian.org/gitweb/?p=d-i/libdebian-installer.git;a=summary
[3] http://anonscm.debian.org/gitweb/?p=d-i/libdebian-installer.git;a=blob;f=src/system/subarch-powerpc-linux.c;h=a91a4347e83f8ad9e97afb8285e1fbbbfd2aee8b;hb=HEAD#l33
[4] http://anonscm.debian.org/gitweb/?p=d-i/pkgsel.git;a=summary
[5] http://anonscm.debian.org/gitweb/?p=d-i/pkgsel.git;a=blob;f=pre-pkgsel.d/10laptop-detect;h=472cda224e4c3e9118eeef56221cd20c4e461f2d;hb=HEAD

-- 
Antonio Ospite
http://ao2.it

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?


Reply to: