Changeset 1815 in MondoRescue
- Timestamp:
- Nov 19, 2007, 1:13:50 PM (17 years ago)
- Location:
- branches/2.2.5/mindi
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.5/mindi/README.bkphw
r1761 r1815 27 27 echo /usr/local/lib >> /etc/ld.so.conf 28 28 ldconfig 29 perl -pi -e 's~^HOME=.*~HOME="/usr/local/bin"~' /usr/local/bin/cpqacuxe30 sed -i -e '/LD_LIBRARY_PATH/d' /usr/local/bin/cpqacuxe31 32 You also may have to remove the LD_ASSUME_KERNEL line in that script.33 29 34 30 You're now ready to check your configuration by running mindi-bkphw. -
branches/2.2.5/mindi/mindi
r1810 r1815 40 40 TMPDIR=/tmp 41 41 42 EXTRA_SPACE= 24576; # increase if you run out of ramdisk space43 BOOT_SIZE= 8192; # size of the boot disk42 EXTRA_SPACE=32768 ; # increase if you run out of ramdisk space 43 BOOT_SIZE=16384 ; # size of the boot disk 44 44 MAX_DISKS=99 45 45 WRITE_BOOT_FLOPPIES="yes" ; # do you want to be propted to write floppy images … … 665 665 fi 666 666 modpaths=`find $1 -name $2.*o -type f` 667 [ "$?" -ne "0" ] && Die "find $1 -name $2.o -type f --- failed"667 #[ "$?" -ne "0" ] && Die "find $1 -name $2.o -type f --- failed" 668 668 [ "$modpaths" = "" ] && modpaths=`find $1 -name $2.o.gz -type f` 669 669 [ "$modpaths" = "" ] && modpaths=`find $1 -name $2.ko.gz -type f` … … 2830 2830 lis="" 2831 2831 # Get only the files which exist in that list 2832 # and potentially their symlink structure 2832 2833 for i in $lis2; do 2833 if [ -f $i ]; then 2834 if [ -h $i ]; then 2835 j=$i 2836 while [ -h $j ]; do 2837 lis="$lis $j" 2838 j=`readlink $j` 2839 done 2840 lis="$lis $j" 2841 elif [ -f $i ]; then 2834 2842 lis="$lis $i" 2835 2843 fi … … 2930 2938 echo "Adding $i ($s KB) to the rootfs" >> $LOGFILE 2931 2939 cp --parents -pdf $i $mountpoint 2>/dev/null || LogIt "Unable to copy $i to $mountpoint" 2932 if [ "`echo "$i" | grep -F ".gz"`" ]; then 2940 # Uncompress modules if not useing udev and native modprobe 2941 if [ ! -f $mountpoint/tmp/USE-UDEV ]; then 2942 if [ "`echo "$i" | grep -F ".gz"`" ]; then 2933 2943 gunzip -f $mountpoint/$i 2934 i=`echo $i | sed 's/.gz//'` 2935 fi 2936 [ "`echo "$i" | grep -F ".gz"`" ] && gunzip -f $mountpoint/`basename $i` 2937 done 2944 #i=`echo $i | sed 's/.gz//'` 2945 fi 2946 fi 2947 done 2948 2949 # Also copy modules.dep in case of udev so that normal modprobe works 2950 cp --parents -pdf /$floppy_modules_path/modules.dep $mountpoint 2>/dev/null || LogIt "Unable to copy modules.dep to $mountpoint" 2951 2938 2952 # For all modules supported, create symlinks under the mountpoint 2939 2953 for i in $EXTRA_MODS $NET_MODS $SCSI_MODS; do 2940 all_modules="$all_modules `FindSpecificModuleInPath $ floppy_modules_path$i`"2954 all_modules="$all_modules `FindSpecificModuleInPath $mountpoint $i`" 2941 2955 done 2942 2956 for i in $all_modules; do 2957 j=`echo $i | sed 's~^$mountpoint/~~'` 2943 2958 (cd $mountpoint ; ln -s $i . 2>/dev/null) 2944 2959 done 2945 # Also copy modules.dep in case of udev so that normal modprobe works2946 p=`echo $i | cut -d/ -f1-3`2947 cp -df $p/modules.dep $mountpoint/$p 2>/dev/null || LogIt "Unable to copy modules.dep to $mountpoint"2948 2960 if [ ! -e "/sbin/devfsd" ] || [ "$disksize" -lt "2880" ] || [ "$kernelpath" = "$MINDI_LIB/vmlinuz" ] ; then 2949 2961 echo "Deleting devfsd daemon from ramdisk" >> $LOGFILE … … 3273 3285 export MONDO_SHARE="" 3274 3286 MindiExit $? 3287 elif [ "$1" = "--readalllink" ] ; then 3288 [ ! "$2" ] && Die "Please specify the binary to look at" 3289 ReadAllLink $2 3290 # Avoids logfile content for mondo 3291 export MONDO_SHARE="" 3292 MindiExit $? 3275 3293 elif [ "$1" = "--makemountlist" ] ; then 3276 3294 [ ! "$2" ] && Die "Please specify the output file" … … 3494 3512 LogIt "WARNING - failed to create 2.88MB floppy disk image." 3495 3513 LogIt "Please reduce your kernel's size if you want to make a 2.88MB floppy disk." 3496 PrepareBootDiskImage_SYSLINUX $CACHE_LOC $BOOT_SIZE $kernelpath $ramdisk_size || Die "Failed to create 5.76MB floppy disk image."3514 PrepareBootDiskImage_SYSLINUX $CACHE_LOC $BOOT_SIZE $kernelpath $ramdisk_size || Die "Failed to create $BOOT_SIZE kB floppy disk image." 3497 3515 fi 3498 3516 fi -
branches/2.2.5/mindi/rootfs/sbin/init
r1813 r1815 196 196 # Load the VIA IDE module first thing if it exists (requires ide-core). 197 197 # This is to ensure that DMA is working for VIA chipsets with 2.6 kernels. 198 for module in /ide-core.ko /via82cxxx.ko; do198 for module in /ide-core.ko* /via82cxxx.ko*; do 199 199 [ -f "$module" ] && MyInsmod $module > /dev/null 2> /dev/null 200 200 done … … 315 315 answer="NO" 316 316 317 grep -q nohw /proc/cmdline 318 if [ "$?" -eq 0 ]; then 319 return 320 fi 317 321 if [ -x ./mindi-rsthw ]; then 318 322 grep -q RESTORE /proc/cmdline 319 323 if [ "$?" -ne 0 ]; then 320 clear324 #clear 321 325 echo "*********************************************************************" 322 326 echo "Do you want to restore the HW configuration of the original machine ?" … … 362 366 [ -d /proc/bus/usb ] && ! grep -q /proc/bus/usb /proc/mounts && mount -t usbfs none /proc/bus/usb 363 367 if [ -e "/tmp/USE-UDEV" ] ; then 364 if [ -f usbhid.ko ]; then368 if [ -f usbhid.ko || -f usbhid.ko.gz ]; then 365 369 modprobe -q usbhid 366 370 fi 367 if [ -f uhcd_hci.ko ]; then371 if [ -f uhcd_hci.ko || -f uhcd_hci.ko.gz ]; then 368 372 modprobe -q uhcd_hci 369 373 fi 370 374 else 371 375 if [ -f uhcd_hci.ko ]; then 372 insmod uhcd_hci.ko 376 insmod uhcd_hci.ko* 373 377 fi 374 378 if [ -f usbhid.ko ]; then 375 insmod usbcore.ko 376 insmod usbhid.ko 379 insmod usbcore.ko* 380 insmod usbhid.ko* 377 381 fi 378 382 fi … … 538 542 ModprobeAllModules() { 539 543 540 for m in *.ko; do 541 j=`echo $m | sed 's/\.ko$//'` 542 if [ -e $j ]; then 543 modprobe -q $j 544 fi 544 for m in *.ko*; do 545 j=`echo $m | sed 's/\.ko.*$//'` 546 modprobe -q $j 545 547 done 546 548 } -
branches/2.2.5/mindi/udev.files
r1789 r1815 13 13 /sbin/udevcontrol 14 14 /sbin/udevtrigger 15 /sbin/pam_console_apply
Note:
See TracChangeset
for help on using the changeset viewer.