Browse Source

Tobias Hintze <th@rocklinux.org>:

fixes for bootdisk when disks are SCSI:
	extract all SCSI modules,
	make initrd bigger,
	add some more SCSI modules to kernel.conf,
	add basename+tr to stage1 for udev-script



git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@7121 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc
rocklinux
Tobias Hintze 19 years ago
parent
commit
5d10cd3ce0
2 changed files with 12 additions and 12 deletions
  1. +4
    -10
      target/bootdisk/build_stage1.sh
  2. +8
    -2
      target/bootdisk/kernel.conf

+ 4
- 10
target/bootdisk/build_stage1.sh

@ -33,7 +33,7 @@ sed -i -e "s,^STAGE_2_BIG_IMAGE=\"2nd_stage.tar.gz\"$,STAGE_2_BIG_IMAGE=\"${ROCK
echo_status "Copy various helper applications."
for file in ../2nd_stage/bin/{tar,gzip,bash2,bash,sh,mount,umount,ls,cat,uname,rm,ln,mkdir,rmdir,gawk,awk,grep,sleep} \
../2nd_stage/sbin/{ip,hwscan,pivot_root,swapon,swapoff,udevstart} \
../2nd_stage/usr/bin/{wget,find,expand,readlink} \
../2nd_stage/usr/bin/{wget,find,expand,readlink,basename,tr} \
../2nd_stage/usr/sbin/lspci ; do
programs="${programs} ${file#../2nd_stage}"
cp ${file} bin/
@ -54,14 +54,8 @@ for x in modprobe.static modprobe.static.old insmod.static insmod.static.old ; d
done
echo_status "Copy scsi and network kernel modules."
for x in ../2nd_stage/lib/modules/*/kernel/drivers/{scsi,net}/*.{ko,o} ; do
# this test is needed in case there are only .o or only .ko files
if [ -f $x ]; then
xx=${x#../2nd_stage/}
mkdir -p $( dirname $xx ) ; cp $x $xx
$STRIP --strip-debug $xx # stripping more breaks the object
fi
done
( cd ../2nd_stage ; tar cf - lib/modules/*/kernel/drivers/{scsi,net} ) | tar xf -
find lib/modules -type f -exec $STRIP --strip-debug {} \;
for x in ../2nd_stage/lib/modules/*/modules.{dep,pcimap,isapnpmap} ; do
cp $x ${x#../2nd_stage/} || echo "not found: $x" ;
@ -114,7 +108,7 @@ cd ..
echo_header "Creating initrd filesystem image: "
ramdisk_size=8192
ramdisk_size=16384
echo_status "Creating temporary files."
tmpdir=initrd_$$.dir; mkdir -p $disksdir/$tmpdir; cd $disksdir

+ 8
- 2
target/bootdisk/kernel.conf

@ -28,8 +28,14 @@ CONFIG_BLK_DEV_IDECD=y
CONFIG_DEBUG_KERNEL=y
CONFIG_MAGIC_SYSRQ=y
# ramdisk size of 8192 KB
CONFIG_BLK_DEV_RAM_SIZE=8192
# ramdisk size of 16384 KB
CONFIG_BLK_DEV_RAM_SIZE=16384
# console on serial port
CONFIG_SERIAL_8250_CONSOLE=y
CONFIG_MEGARAID_NEWGEN=y
CONFIG_MEGARAID_MM=m
CONFIG_MEGARAID_MAILBOX=m
CONFIG_MEGARAID_SAS=m

Loading…
Cancel
Save