Changeset 1815 in MondoRescue for branches/2.2.5/mindi/mindi
- Timestamp:
- Nov 19, 2007, 1:13:50 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note:
See TracChangeset
for help on using the changeset viewer.