[PATCH] Re: DONT USE 1432 Re: New joyride build 1432

2007-12-17 Thread Bernardo Innocenti
C. Scott Ananian wrote:
 On Dec 16, 2007 7:14 PM, Bernardo Innocenti [EMAIL PROTECTED] wrote:
 The new-kernel-pkg script is part of mkinitrd :-(

 Please, allow me some time to come up with a straightforward
 fix that doesn't require putting mkinitrd back in the builds.
 
 Can you please do this in your private builds, and not break joyride
 for the rest of us?

I apologize, that was of course totally unexpected.

Anyway, both my private builds and joyride are currently broken due
to missing static repos in Fedora's Koji:

 Parsing package install arguments
 
http://koji.fedoraproject.org/static-repos/dist-olpc2-build-current/i386/repodata/repomd.xml:
 [Errno 14] HTTP Error 403: Forbidden
 Trying other mirror.
 Error: Cannot open/read repomd.xml file for repository: olpc_development

Dennis, do you have any idea what happened?


 As a stop gap, I'd recommend putting gzip  friends as explicit
 dependencies of olpc-utils; they can then be removed from there and
 added to other packages incrementally (probably post-update.1).

Good idea.


Here follows updated patch for the kernel spec file, tested by
installing and removing the package on a running system with
no mkinitrd.

I wonder if it may be a good idea to also add the commands
to fix /versions/running/boot, so it's one less pitfall people
can fall into when installing custom kernels.


From 2d6964068e7c8abfe2bc138eafe094f94ea8f9d7 Mon Sep 17 00:00:00 2001
From: Bernardo Innocenti [EMAIL PROTECTED]
Date: Mon, 17 Dec 2007 07:41:50 +0100
Subject: [PATCH] Replace use of new-kernel-pkg in post scriptlet with direct 
invocation of depmod
Organization: One Laptop Per Child

---
 SPECS/olpc-2.6.spec |   16 ++--
 1 files changed, 2 insertions(+), 14 deletions(-)

diff --git a/SPECS/olpc-2.6.spec b/SPECS/olpc-2.6.spec
index 2f215ea..b82f396 100644
--- a/SPECS/olpc-2.6.spec
+++ b/SPECS/olpc-2.6.spec
@@ -972,22 +972,10 @@ rm -rf $RPM_BUILD_ROOT
 ###
 
 %post
-if [ `uname -i` == x86_64 -o `uname -i` == i386 ]; then
-  if [ -f /etc/sysconfig/kernel ]; then
-/bin/sed -i -e 's/^DEFAULTKERNEL=kernel-smp$/DEFAULTKERNEL=kernel/' 
/etc/sysconfig/kernel || exit $?
-  fi
-fi
-if [ -x /usr/sbin/module_upgrade ]
-then
-/usr/sbin/module_upgrade %{rpmversion}-%{release} || exit $?
-fi
-/sbin/new-kernel-pkg --package kernel --depmod --install %{KVERREL} || exit $?
+/sbin/depmod -ae -F /boot/System.map-%{KVERREL} %{KVERREL}
 if [ -f /boot/vmlinuz-%{KVERREL} ]; then
(cd /boot  ln -sf vmlinuz-%{KVERREL} vmlinuz)
 fi
-if [ -f /boot/initrd-%{KVERREL}.img ]; then
-   (cd /boot  ln -sf initrd-%{KVERREL}.img initrd.img)
-fi
 
 %post devel
 if [ -f /etc/sysconfig/kernel ]
@@ -1105,7 +1093,7 @@ if [ $HARDLINK != no -a -x /usr/sbin/hardlink ] ; then
 fi
 
 %preun
-/sbin/new-kernel-pkg --rmmoddep --remove %{KVERREL} || exit $?
+[ -d /lib/modules/%{KVERREL} ]  rm -f /lib/modules/%{KVERREL}/modules.*
 
 %preun smp
 /sbin/new-kernel-pkg --rminitrd --rmmoddep --remove %{KVERREL}smp || exit $?
-- 
1.5.3.3

-- 
 \___/
 |___|   Bernardo Innocenti - http://www.codewiz.org/
  \___\  One Laptop Per Child - http://www.laptop.org/
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: [PATCH] Re: DONT USE 1432 Re: New joyride build 1432

2007-12-17 Thread Dennis Gilmore
On Monday 17 December 2007, Bernardo Innocenti wrote:
 C. Scott Ananian wrote:
  On Dec 16, 2007 7:14 PM, Bernardo Innocenti [EMAIL PROTECTED] wrote:
  The new-kernel-pkg script is part of mkinitrd :-(
 
  Please, allow me some time to come up with a straightforward
  fix that doesn't require putting mkinitrd back in the builds.
 
  Can you please do this in your private builds, and not break joyride
  for the rest of us?

 I apologize, that was of course totally unexpected.

 Anyway, both my private builds and joyride are currently broken due
 to missing static repos in Fedora's Koji:

  Parsing package install arguments
 
 http://koji.fedoraproject.org/static-repos/dist-olpc2-build-current/i386/re
podata/repomd.xml: [Errno 14] HTTP Error 403: Forbidden Trying other mirror.
  Error: Cannot open/read repomd.xml file for repository: olpc_development

 Dennis, do you have any idea what happened?

the script that makes them  got missed in the buildsys upgrade yesterday.  it 
is now fixed.


___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


DONT USE 1432 Re: New joyride build 1432

2007-12-16 Thread Pascal Scheffers

1432 won't boot X on my B4.

Lots of kernel modules not found at boot time.



On 16 dec 2007, at 04:15, Build Announcer Script wrote:

 http://xs-dev.laptop.org/~cscott/olpc/streams/joyride/build1432/

 -cpio.i386 0:2.6-28.fc7
 -dmraid.i386 0:1.0.0.rc14-4.fc7
 -findutils.i386 1:4.2.29-2
 -gzip.i386 0:1.3.11-2.fc7
 -kernel.i586 0:2.6.22-20071213.7.olpc.807beb7d0b8a49a
 +kernel.i586 0:2.6.22-20071215.21.olpc.6fce16b65e15831
 -kpartx.i386 0:0.4.7-11.fc7
 -less.i386 0:394-9.fc7
 -libdhcp4client.i386 12:3.0.5-40.fc7
 -libdhcp6client.i386 0:0.10-44.fc7
 -libdhcp.i386 0:1.24-4.fc7
 -lvm2.i386 0:2.02.24-1.fc7
 -mkinitrd.i386 0:6.0.9-7.1
 -nash.i386 0:6.0.9-7.1
 -olpc-utils.i386 0:0.53-1.olpc2
 +olpc-utils.i386 0:0.58-1.olpc2
 -parted.i386 0:1.8.6-4.fc7
 -tar.i386 2:1.15.1-28.fc7

 --
 This email was automatically generated
 Aggregated logs at http://dev.laptop.org/~bert/joyride-pkgs.html
 ___
 Devel mailing list
 Devel@lists.laptop.org
 http://lists.laptop.org/listinfo/devel

___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: DONT USE 1432 Re: New joyride build 1432

2007-12-16 Thread Bernardo Innocenti
Bernardo Innocenti wrote:
 Pascal Scheffers wrote:
 1432 won't boot X on my B4.

 Lots of kernel modules not found at boot time.
 
 Hmm... I think it's my fault :-(
 
 I asked dilinger to remove the dependency on mkinitrd from
 the kernel because our olpcrd thing does not even use it,
 and it was dragging lots of useless dependencies with it.

It seems depmod is not being run...  Something in the kernel
posti scriptlet failed?

-- 
 \___/
 |___|   Bernardo Innocenti - http://www.codewiz.org/
  \___\  One Laptop Per Child - http://www.laptop.org/
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel