Changeset 1764 in MondoRescue
- Timestamp:
- Nov 4, 2007, 1:30:52 AM (17 years ago)
- Location:
- branches/2.2.5/mindi
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.5/mindi/ChangeLog
r1679 r1764 3 3 MINDI CHANGES 4 4 5 1.2.5(2007-10-11)5 2.0.0 (2007-10-11) 6 6 - Build process adapted to use pb http://trac.project-builder.org (Bruno Cornec) 7 7 - Really Fix #163 support for 3w-9xxx 3w_9xxx (Bruno Cornec) -
branches/2.2.5/mindi/deplist.txt
r1741 r1764 46 46 /usr/share/misc/file/magic /usr/share/file/magic 47 47 48 # For swap uudi support and probably then more in the future 49 /usr/bin/perl 50 48 51 # For Debug mode 49 52 # gdb -
branches/2.2.5/mindi/mindi
r1761 r1764 154 154 155 155 AddFileToDir() { 156 local filename minidir_root noof_disks diskno res filesize disksizewould_occupy zipsize complevel cutoff compressed_fname siz156 local filename minidir_root noof_disks diskno res filesize would_occupy zipsize complevel cutoff compressed_fname siz 157 157 filename=$1 158 158 minidir_root=$2 … … 212 212 echo "Added kbd map $mappath" >> $LOGFILE 213 213 if [ ! -e "$mappath" ] ; then 214 mappath=`find $KEYDIR/keymaps | grep "i[3-8]86"| grep "$locale[^r][^/]" | grep -vx " *#.*"`214 mappath=`grep "i[3-8]86" $MINDI_TMP/keymaps.find | grep "$locale[^r][^/]" | grep -vx " *#.*"` 215 215 if [ ! -e "$mappath" ] ; then 216 216 LogIt "Cannot add $mappath: kbd map file not found" … … 230 230 for included_item in $included_list ; do 231 231 if [ ! -e "$included_item" ] ; then 232 sss=`find $KEYDIR/keymaps | grep -F "${included_item}.inc"`233 [ "$sss" = "" ] && sss=` find $KEYDIR/keymaps | grep -F "$included_item"`232 sss=`grep -F "${included_item}.inc" $MINDI_TMP/keymaps.find` 233 [ "$sss" = "" ] && sss=`grep -F "$included_item" $MINDI_TMP/keymaps.find` 234 234 for ii in $sss ; do 235 235 [ -e "$ii" ] && AddKeyboardMappingFile $ii … … 421 421 mkdir -p $mountpoint 422 422 dd if=/dev/zero of=$imagefile bs=1k count=1440 &> /dev/null || LogIt "Cannot dd (CODI)" 423 mke2fs -N 12 -F $imagefile >> $LOGFILE 2>> $LOGFILE 423 echo "Creating ext2 filesystem on $imagefile" >> $LOGFILE 424 mke2fs -N 12 -F $imagefile >> $LOGFILE 2>> $LOGFILE || Die "Unable to create an ext2 file system on $imagefile" 424 425 mount -t ext2 -o loop $imagefile $mountpoint || Die "Can't loopmount $imagefile to $mountpoint! The reason may be missing support for loopfs or ext2 (or both) in the running kernel." 425 426 mv $tarball $mountpoint/ … … 573 574 [ ! "$locale" ] && locale=`grep -E '^KEYMAP=' "$keyfile" | tr -d '"' |cut -d'=' -f2` # Gentoo 574 575 echo "locale=$locale" >> $LOGFILE 575 mp=`find $KEYDIR/keymaps | grep "i[3-8]86" | grep -F "/${locale}." | grep -vx " *#.*"` 576 [ ! "$mp" ] && mp=`find $KEYDIR/keymaps | grep "i[3-8]86" | grep "$locale[^r][^/]" | grep -vx " *#.*"` 576 # 577 # Process the keymaps dir once for all 578 # AddKeyboardMappingFile will use it recursively 579 # 580 find $KEYDIR/keymaps > $MINDI_TMP/keymaps.find 581 mp=`grep "i[3-8]86" $MINDI_TMP/keymaps.find | grep -F "/${locale}." | grep -vx " *#.*"` 582 [ ! "$mp" ] && mp=`grep "i[3-8]86" $MINDI_TMP/keymaps.find | grep "$locale[^r][^/]" | grep -vx " *#.*"` 577 583 # If we have multiple keymaps then log it !! 578 584 echo "$mp" | grep -q " " … … 599 605 AddKeyboardMappingFile $mappath 600 606 echo -e "$DONE" 607 rm -f $MINDI_TMP/keymaps.find 601 608 return 0 602 609 } … … 1707 1714 local i old_pwd 1708 1715 if [ "$PROMPT_MAKE_USB_IMAGE" = "yes" ] && [ _"$MONDO_SHARE" = _"" ]; then 1709 echo "Shall I make a bootable USB image ? "1710 if [ "$USBDEVICE" != "" ]; then1711 echo -en "WARNING: This will erase all content on $USBDEVICE ([y]/n) "1712 read i1713 [ "$i" = "n" ] || [ "$i" = "N" ] && return 01714 else1715 echo -en "WARNING: This will erase all content on $USBDEVICE (y/[n]) "1716 readi1717 [ "$i" != "y" ] && [ "$i" != "Y" ] && return 01718 fi1716 echo "Shall I make a bootable USB image ? (y/[n] " 1717 read i 1718 [ "$i" != "y" ] && [ "$i" != "Y" ] && return 0 1719 if [ "$USBDEVICE" = "" ]; then 1720 echo -en "Please enter the device name of your USB device (e.g. /dev/sda) : " 1721 read dev 1722 USBDEVICE=$dev 1723 fi 1724 echo "WARNING: This will erase all content on $USBDEVICE" 1725 echo -en "Are you sure you want to use $USBDEVICE (y/[n]) " 1719 1726 fi 1720 1727 if [ _"$MINDI_TMP" = _"" ]; then … … 2366 2373 tar -zxf $MINDI_LIB/x11-tools.tgz 2>> $LOGFILE || LogIt "WARNING - error occurred while unzipping x11-tools.tgz" 2367 2374 fi 2368 if [ -e "$MONDO_SHARE/restore-scripts" ] 2375 if [ -e "$MONDO_SHARE/restore-scripts" ]; then 2369 2376 cp -Rdf $MONDO_SHARE/restore-scripts/* . 2>> $LOGFILE 2370 2377 [ "$?" -ne "0" ] && [ _"$MONDO_SHARE" != _"" ] && Die "Cannot find/install $MONDO_SHARE/restore-scripts" … … 2755 2762 dd if=/dev/zero of=$tempfile bs=1k count=$ramdisk_size &> /dev/null || Die "Not enough room for temporary ramdisk (TurnTgzIntoRdz)" 2756 2763 echo -en "..." 2757 mke2fs -b 1024 -m 1 -i 2048 -F $tempfile >> $LOGFILE 2>> $LOGFILE 2764 echo "Creating ext2 filesystem on $tempfile" >> $LOGFILE 2765 mke2fs -b 1024 -m 1 -i 2048 -F $tempfile >> $LOGFILE 2>> $LOGFILE || Die "Unable to create an ext2 file system on $tempfile" 2758 2766 echo -en "..." 2759 2767 mkdir -p $mountpoint … … 2936 2944 # unmount loop filesystem and create image file using the standard approach 2937 2945 umount $mountpoint || Die "Cannot unmount $tempfile" 2938 dd if=$tempfile bs=1k 2> /dev/null | gzip -v9 > $rdz_fname 2> /dev/null 2946 dd if=$tempfile bs=1k 2> /dev/null > ${rdz_fname}.tmp 2> /dev/null 2947 bs=`tune2fs -l ${rdz_fname}.tmp | grep -E '^Block size:' | cut -d: -f2` 2948 ADDITIONAL_BOOT_PARAMS="$ADDITIONAL_BOOT_PARAMS ramdisk_blocksize=$bs" 2949 gzip -v9 ${rdz_fname}.tmp > $rdz_fname 2> /dev/null 2950 rm -f ${rdz_fname}.tmp 2939 2951 # log that we are done 2940 2952 echo "...done." >> $LOGFILE … … 3155 3167 echo "-------------" >> $LOGFILE 3156 3168 /usr/sbin/esxcfg-module -l >> $LOGFILE 3157 MODULES="$MODULES ` esxcfg-module -l | awk '{print $1}'`"3169 MODULES="$MODULES `/usr/sbin/esxcfg-module -l | awk '{print $1}'`" 3158 3170 fi 3159 3171 echo "-------------" >> $LOGFILE -
branches/2.2.5/mindi/mindi-bkphw
r1761 r1764 58 58 if ($tool =~ /\/cpqacuxe$/) { 59 59 $ret = system("$tool -c $bkpdir/cpqacuxe.dat"); 60 print SCRIPT "$tool -r $bkpdir/cpqacuxe.dat )");60 print SCRIPT "$tool -r $bkpdir/cpqacuxe.dat"); 61 61 print TOOLS "$tooldir/bld\n"; 62 62 } 63 63 if ($tool =~ /\/hponcfg$/) { 64 64 $ret = system("$tool -w $bkpdir/hponcfg.dat"); 65 print SCRIPT "$tool -r $bkpdir/hponcfg.dat)"); 65 print SCRIPT "$tool -r $bkpdir/hponcfg.dat"); 66 } 67 if ($tool =~ /\.scexe$/) { 68 print SCRIPT "$tool"); 66 69 } 67 70 if ($ret != 0) {
Note:
See TracChangeset
for help on using the changeset viewer.