Changeset 2569 in MondoRescue for branches/2.2.10/mindi/mindi
- Timestamp:
- Feb 2, 2010, 10:40:28 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.10/mindi/mindi
r2546 r2569 20 20 21 21 # In case of problem with udev you can try to add udevdebug 22 ADDITIONAL_BOOT_PARAMS="devfs=nomount noresume selinux=0 barrier=off udevtimeout=10"22 MINDI_ADDITIONAL_BOOT_PARAMS="devfs=nomount noresume selinux=0 barrier=off udevtimeout=10" 23 23 24 24 MINDI_REV=PBREV … … 58 58 IDE_MODS="ide ide-floppy floppy ide-generic ide-detect ide-mod ide-disk ide_disk ide-cd ide_cd ide_cd_mod ide-cd_mod ide-cs ide-core ide_core ide-gd_mod edd paride ata_generic ata_piix libata dock via82cxxx generic nvidia ahci sata_nv cmd64x pata_amd pata_marvell pata_serverworks pata_sis amd74xx sis5513 jmicron sata_promise sata_via serverworks" 59 59 PCMCIA_MODS="pcmcia_core ds yenta_socket" 60 USB_MODS="usb-storage usb-ohci usb-uhci usbcore usb_storage input hid uhci_hcd ehci_hcd uhci-hcd ehci-hcd ohci-hcd ohci_hcd usbkbd usbhid keybdev mousedev libusual scsi_mod ff-memless "61 NET_MODS="auth_rpcgss sunrpc nfs nfs_acl lockd fscache loop mii 3c59x e100 bcm5700 bnx2 bnx2x e1000 e1000e igb eepro100 ne2k-pci tg3 libphy pcnet32 8139cp 8139too 8390 forcedeth vmxnet vm net exportfs fuse libcrc32c crc32c"60 USB_MODS="usb-storage usb-ohci usb-uhci usbcore usb_storage input hid uhci_hcd ehci_hcd uhci-hcd ehci-hcd ohci-hcd ohci_hcd usbkbd usbhid keybdev mousedev libusual scsi_mod ff-memless ums_cypress" 61 NET_MODS="auth_rpcgss sunrpc nfs nfs_acl lockd fscache loop mii 3c59x e100 bcm5700 bnx2 bnx2x e1000 e1000e igb eepro100 ne2k-pci tg3 libphy pcnet32 8139cp 8139too 8390 forcedeth vmxnet vmxnet3 vmnet exportfs fuse libcrc32c crc32c" 62 62 CDROM_MODS="$TAPE_MODS $IDE_MODS $USB_MODS $PCMCIA_MODS $SCSI_MODS $NET_MODS af_packet cdrom isocd isofs inflate_fs nls_iso8859-1 nls_base nls_cp437 nls_utf8 sg sr_mod zlib_inflate iso9660" 63 63 # Those modules will only go on the backup media, not the boot media. … … 439 439 return 1 440 440 fi 441 modpaths=`find $1 -name $2.*o -type f` 442 [ "$modpaths" = "" ] && modpaths=`find $1 -name $2.o.gz -type f` 443 [ "$modpaths" = "" ] && modpaths=`find $1 -name $2.ko.gz -type f` 444 [ "$modpaths" = "" ] && modpaths=`find $1 -name $2 -type f` 441 # Find all files and links (required for some VMWare VMs) 442 modpaths=`find $1 -name $2.*o -type f -o -type l` 443 [ "$modpaths" = "" ] && modpaths=`find $1 -name $2.o.gz -type f -o -type l` 444 [ "$modpaths" = "" ] && modpaths=`find $1 -name $2.ko.gz -type f -o -type l` 445 [ "$modpaths" = "" ] && modpaths=`find $1 -name $2 -type f -o -type l` 445 446 echo "$modpaths" 446 447 } … … 1153 1154 fi 1154 1155 1156 # Look for devices which have to be excluded 1157 skip=0 1158 if [ "$MINDI_EXCLUDE_DEVS" ] ; then 1159 for d in $MINDI_EXCLUDE_DEVS ; do 1160 if [ "`echo " $current_partition " | grep " $d"`" != "" ]; then 1161 echo "Excluding $current_partition from mountlist (due to excluded device $d)" >> $LOGFILE 1162 skip=1 1163 continue 1164 fi 1165 done 1166 fi 1167 if [ $skip -eq 1 ]; then 1168 continue 1169 fi 1170 1155 1171 partition_format=`$AWK '$1 == "'"$str_to_find_fmt_with"'" {print $3}' $MY_FSTAB` 1156 1172 # Some distributions such as Debian do not put /dev/<VG>/<LV> in fstab … … 1234 1250 fi 1235 1251 fi 1236 skip=0 1237 if [ "$EXCLUDE_DEVS" ] ; then 1238 for d in $EXCLUDE_DEVS ; do 1239 if [ "`echo " $current_partition " | grep " $d"`" != "" ]; then 1240 LogFile "Excluding $current_partition from mountlist (due to excluded device $d)" 1241 skip=1 1242 continue 1243 fi 1244 done 1245 fi 1246 if [ $skip -eq 1 ]; then 1247 continue 1248 fi 1252 1249 1253 if [ ! "$partition_mountpt" ] ; then 1250 1254 LogFile "------- $FDISK -l $qq log ------------" … … 1611 1615 [ "$ooo" = "RESTORE" ] && ooo="nuke" 1612 1616 if [ "$type" = "elilo" ]; then 1613 outstr="image=/vmlinuz\n\tlabel=$i\n\tinitrd=/initrd.img\n\troot=/dev/ram0 append=\" rw ramdisk_size=$ramdisk_size $ooo $ ADDITIONAL_BOOT_PARAMS \"\n"1617 outstr="image=/vmlinuz\n\tlabel=$i\n\tinitrd=/initrd.img\n\troot=/dev/ram0 append=\" rw ramdisk_size=$ramdisk_size $ooo $MINDI_ADDITIONAL_BOOT_PARAMS \"\n" 1614 1618 else 1615 1619 ps="/" … … 1617 1621 ps="" 1618 1622 fi 1619 outstr="label $i\n\tkernel ${ps}vmlinuz\n\tappend initrd=${ps}initrd.img root=/dev/ram0 rw ramdisk_size=$ramdisk_size ${ooo} $ ADDITIONAL_BOOT_PARAMS\n"1623 outstr="label $i\n\tkernel ${ps}vmlinuz\n\tappend initrd=${ps}initrd.img root=/dev/ram0 rw ramdisk_size=$ramdisk_size ${ooo} $MINDI_ADDITIONAL_BOOT_PARAMS\n" 1620 1624 fi 1621 1625 echo -en "$outstr" … … 1851 1855 LVM="false" 1852 1856 rm -f $bigdir/tmp/i-want-my-lvm 1857 else 1858 echo "Your i-want-my-lvm file content is:" >> $LOGFILE 1859 echo "-----------------------------------" >> $LOGFILE 1860 cat $bigdir/tmp/i-want-my-lvm >> $LOGFILE 1861 echo "-----------------------------------" >> $LOGFILE 1853 1862 fi 1854 1863 fi … … 2311 2320 dd if=$tempfile bs=1k 2> /dev/null > ${rdz_fname}.tmp 2> /dev/null 2312 2321 bs=`tune2fs -l ${rdz_fname}.tmp | grep -E '^Block size:' | cut -d: -f2 | sed 's/^ *//'` 2313 ADDITIONAL_BOOT_PARAMS="$ADDITIONAL_BOOT_PARAMS ramdisk_blocksize=$bs"2322 MINDI_ADDITIONAL_BOOT_PARAMS="$MINDI_ADDITIONAL_BOOT_PARAMS ramdisk_blocksize=$bs" 2314 2323 gzip -c9 ${rdz_fname}.tmp > $rdz_fname 2315 2324 rm -f ${rdz_fname}.tmp … … 2644 2653 fi 2645 2654 ESTIMATED_TOTAL_NOOF_SLICES=${12} 2646 export EXCLUDE_DEVS="${13}"2655 export MINDI_EXCLUDE_DEVS="${13}" 2647 2656 USE_COMP="${14}" 2648 2657 USE_LILO="${15}"
Note:
See TracChangeset
for help on using the changeset viewer.