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

Re: Draft release notes and errata for RC1 - Efika support



On Wed, Dec 20, 2006 at 01:29:02PM -0200, Otavio Salvador wrote:
> Sven Luther <sven.luther@wanadoo.fr> writes:
> 
> > The Efika (http://www.genesippc.com/efika.php) needs 2.6.19 based patches, so
> > will not be supported, altough i have a d-i build using a modified
> > base-installer, which will grab the kernel package from a separate repo.
> 
> Nice.
> 
> Are those patches too invasive? Maybe those could be brought to 2.6.18?

They are indeed rather invasive, well, maybe not, but they affect some very
early levels of the kernel, and so a backport at this stage of the etch
development is to risky. (And i don't have time to do it, and others are not
interested).

> > It would really be friendlier if base-installer would allow pre-configure
> > hooks, which would be invoked after debootstrap, but before the whole
> > apt-checking stuff. I just added a few lines at the end of configure_apt right
> > now.
> 
> Why you need it? To change the repository for the kernel grabing?

Yep. The somewhat clumsy patch is :
 
--- debian/postinst     (révision 43406)
+++ debian/postinst     (copie de travail)
@@ -312,6 +312,17 @@
        else
                echo "deb $APTSOURCE $DISTRIBUTION $COMPONENTS" >
/target/etc/apt/sources.list
        fi
+
+       if [ "`grep '^machine[[:space:]]*:' "/proc/cpuinfo" | head -n1 | cut -d: -f2 | sed 's/^ *//;'`" = "EFIKA5K2 CHRP PowerPC System" ]; then
+               log "Configuring for an EFIKA5K2 System"
+               # Disable authentification, let's do this until i know how to add authentification to the efika repo.
+               # This will be left in place on the installed system.
+               cat > /target/etc/apt/apt.conf.d/00trustefika <<EOT
+APT::Get::AllowUnauthenticated "true";
+EOT
+               echo "deb http://people.debian.org/~luther/efika/debian/ ./" >> /target/etc/apt/sources.list
+               register-module -i pata_mpc52xx
+       fi
 }
 
I need to work on a fix of initramfs-tools, and know how to add thrusted
sub-repository support, but the main gist is the above.

If there were propper hooks for this, this would be easier.

Friendly,

Sven Luther



Reply to: