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

Re: [Fedora-livecd-list] FC5T2 Kernel Panic



Chitlesh GOORAH wrote:

My question is what is causing this :
Unknown file type (unallocated) /tmp/livecd-build_no29/compressed/..

does it have to do with the following kernel panic ?:

VFS: Mounted root (ext2 filesystem)
/bin/ash: error while loading shared libraries: libsepol.so.1
          : cannot open shared object files : No such file or directory
EXT2-fs : unable to read superblock
isofs_fill_super : bread failed, dev=md11, iso_blknum=16, block=32
kernel panic - not syncing : VFS : Unable to mount root fs on unknown-block(9,1)

This reminds me about a libsepol.so.1 that Jasper mentioned before.
I have a patch for livecd-mkinitrd.sh, I'll attach it below.
It cleans up livecd-mkinitrd.sh for *Fedora Core 5 test platforms *only.

Busybox-anaconda needs libsepol.so, libselinux.so, and libdl.so.
Among other things, read the patch.

J. Hartline
--- livecd_generator/livecd-mkinitrd.sh.orig	2006-02-04 02:18:35.000000000 -0600
+++ livecd_generator/livecd-mkinitrd.sh	2006-02-04 02:17:31.000000000 -0600
@@ -173,7 +173,7 @@
 
 dd if=/dev/zero of=$IMAGE bs=1k count=$IMAGESIZE 2> /dev/null || exit 1
 
-LODEV=$(echo findlodev | /sbin/nash --quiet)
+LODEV=$(losetup -f)
 
 if [ -z "$LODEV" ]; then
     rm -rf $MNTIMAGE $MNTPOINT $IMAGE
@@ -200,16 +200,16 @@
 
 mkdir -p $MNTIMAGE/lib
 mkdir -p $MNTIMAGE/lib/tls
-mkdir -p $MNTIMAGE/lib/obsolete/linuxthreads
 mkdir -p $MNTIMAGE/lib/modules/$kernel
+mkdir -p $MNTIMAGE/usr/lib
 mkdir -p $MNTIMAGE/bin
 mkdir -p $MNTIMAGE/etc
+mkdir -p $MNTIMAGE/etc/modprobe.d
 mkdir -p $MNTIMAGE/dev
 mkdir -p $MNTIMAGE/proc
 mkdir -p $MNTIMAGE/sys
 mkdir -p $MNTIMAGE/sysroot
 mkdir -p $MNTIMAGE/tmp
-mkdir -p $MNTIMAGE/usr/share/hwdata
 mkdir -p $MNTIMAGE/var/lib/nfs/rpc_pipefs
 ln -s bin $MNTIMAGE/sbin
 
@@ -218,19 +218,23 @@
 
 inst $rootdir/lib/ld-linux.so.2 "$MNTIMAGE/lib/ld-linux.so.2"
 inst $rootdir/lib/libselinux.so.1 "$MNTIMAGE/lib/libselinux.so.1"
+inst $rootdir/lib/libsepol.so.1 "$MNTIMAGE/lib/libsepol.so.1"
+inst $rootdir/lib/libdl-2.3.90.so "$MNTIMAGE/lib/libdl-2.3.90.so"
+ln -s "/lib/libdl-2.3.90.so" "$MNTIMAGE/lib/libdl.so.2"
 
 if [ -f $rootdir/lib/tls/libc.so.6 ]; then
     inst $rootdir/lib/tls/libc.so.6 "$MNTIMAGE/lib/libc.so.6"
 else
-    inst $rootdir/lib/obsolete/linuxthreads/libc.so.6 "$MNTIMAGE/lib/obsolete/linuxthreads/libc.so.6"    
-    ln -s "/lib/obsolete/linuxthreads/libc.so.6" "$MNTIMAGE/lib/libc.so.6" 
+    inst $rootdir/lib/libc-2.3.90.so "$MNTIMAGE/lib/libc-2.3.90.so"    
+    ln -s "/lib/libc-2.3.90.so" "$MNTIMAGE/lib/libc.so.6" 
 fi
 
 if [ -f $rootdir/lib/tls/libm.so.6 ]; then
     inst $rootdir/lib/tls/libm.so.6 "$MNTIMAGE/lib/libm.so.6"
 else
-    inst $rootdir/lib/obsolete/linuxthreads/libm.so.6 "$MNTIMAGE/lib/obsolete/linuxthreads/libm.so.6"
-    ln -s "/lib/obsolete/linuxthreads/libm.so.6" "$MNTIMAGE/lib/libm.so.6" 
+    inst $rootdir/lib/libm-2.3.90.so "$MNTIMAGE/lib/libm-2.3.90.so"
+    ln -s "/lib/libm-2.3.90.so" "$MNTIMAGE/lib/libm.so.6"
+    ln -s "/lib/libm.so.6" "$MNTIMAGE/usr/lib/libm.so" 
 fi
 
 inst /sbin/busybox.anaconda "$MNTIMAGE/bin/busybox"
@@ -251,8 +255,7 @@
     inst $rootdir/sbin/MAKEDEV "$MNTIMAGE/sbin/MAKEDEV"
 fi
 
-inst $rootdir/usr/share/hwdata/pcitable "$MNTIMAGE/usr/share/hwdata/pcitable"
-inst $rootdir/etc/modprobe.conf.dist "$MNTIMAGE/etc/modprobe.conf.dist"
+inst $rootdir/etc/modprobe.d/modprobe.conf.dist "$MNTIMAGE/etc/modprobe.d/modprobe.conf.dist"
 inst $rootdir/lib/modules/$kernel/modules.dep "$MNTIMAGE/lib/modules/$kernel/modules.dep"
 
 PPMODULES=$(findmodules drivers/parport)

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