LinkBack Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 04-Nov-2009, 11:18 PM
Junior Member
 
Join Date: Nov 2009
Posts: 3
vnykr 0 reputation points
Default SLES11 kernel is going panic when custom initrd is of ext2

using following method i created ext2 based initrd img rather than cpio based:
----------------------------------------------------
# Ramdisk Constants
RDSIZE=106496
BLKSIZE=1024
# Create an empty ramdisk image
dd if=/dev/zero of=/tmp/ramdisk.img bs=$BLKSIZE count=$RDSIZE
# Make it an ext2 mountable file system
/sbin/mke2fs -F -m 0 -b $BLKSIZE /tmp/ramdisk.img $RDSIZE

# Mount it so that we can populate
mount /tmp/ramdisk.img /mnt/initrd -t ext2 -o loop=/dev/loop0
#populate from default-initrd contents

# Finish up...
umount /mnt/initrd
----------------------------------------------------

When i use kickstart & tftp server to init the machine, kernel is going panic with following error.

"Unpacking intramfs ...<0>kernel panic -not syncing :no cpio magic"

When i populate a directory with default-initrd img contents and creates a cpio based initrd.img, machine boots up properly.

command to create cpio: (i used)
#cd <working dir>
#find . | cpio --create --format='newc' > ~/tmp/newinitrd


If i do same process for SLES10, it works in both ways.

Any idea if SLES11 kernel(default-kernel) dropped supporting ext2 based generated initrd images..??
Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -6. The time now is 02:38 PM.


© 2007 Novell, Inc. All Rights Reserved.

Search Engine Friendly URLs by vBSEO 3.3.0 RC2