Changeset 2445 in MondoRescue
- Timestamp:
- Oct 2, 2009, 4:30:07 AM (15 years ago)
- Location:
- branches/2.2.10
- Files:
-
- 4 added
- 5 deleted
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.10/mindi/deplist.d/base.conf
r2444 r2445 1 1 # $Id$ 2 2 # 3 # Base System Tools that are mandatory inside the initrd3 # Base System Tools that are mandatory inside the data disk 4 4 # 5 # 6 # Conf files 5 7 /etc/fstab 6 8 /etc/modules.conf … … 12 14 /etc/nsswitch.conf 13 15 16 # Mondorescue requirements 14 17 /usr/sbin/mondorestore 15 18 /usr/bin/afio 16 19 /usr/bin/star 17 20 /usr/sbin/ntfsclone 18 /usr/bin/buffer19 21 22 # HW 20 23 /usr/sbin/parted 21 24 /sbin/parted 22 25 /usr/sbin/partprobe 23 26 27 # File 24 28 /usr/bin/file 25 29 /usr/share/misc/file/magic 26 30 /usr/share/file/magic 27 31 32 # ACLs 28 33 /usr/bin/getfattr 29 34 /usr/bin/setfattr … … 31 36 /usr/bin/setfacl 32 37 38 # Compressors 33 39 /usr/bin/bzip2 34 40 # is a link => No additional place … … 37 43 /usr/bin/lzma 38 44 39 /bin/bash 40 /bin/date 45 # Unix commands 46 /bin/chroot 47 /usr/sbin/chroot 48 /usr/bin/cmp 41 49 /sbin/ctrlaltdel 42 50 /bin/dd 43 51 /usr/bin/eject 52 /usr/bin/env 53 /sbin/halt 54 /sbin/ldconfig 44 55 /usr/bin/wc 56 57 # Status ??? 58 # 59 /usr/bin/du 45 60 /usr/bin/xargs 61 /usr/bin/head 46 62 /usr/bin/less 47 /sbin/ldconfig 63 /usr/bin/sort 64 /usr/bin/uniq 65 /usr/bin/reset 66 48 67 49 68 # For swap uuid support, ia64 and probably then more in the future -
branches/2.2.10/mindi/deplist.d/minimal.conf
r2444 r2445 7 7 8 8 # Base Unix commands 9 /bin/mt 9 # Used by init 10 /bin/sh 10 11 /bin/awk 12 /usr/bin/awk 11 13 /bin/gawk 12 /bin/dd13 14 /bin/grep 14 15 /bin/uname … … 16 17 /usr/bin/loadkeys 17 18 /sbin/pidof 19 /sbin/reboot 20 /sbin/openvt 21 /usr/bin/tail 22 /usr/bin/which 23 /usr/bin/strings 24 /usr/bin/test 25 /usr/bin/[ 26 /usr/bin/tr 27 /usr/bin/cut 28 /usr/bin/basename 29 /usr/bin/find 30 /bin/stty 31 /bin/echo 32 /bin/mknod 33 /bin/kill 34 /bin/date 35 /bin/cat 36 /bin/ls 37 /bin/ps 38 /bin/umount 39 /bin/dmesg 40 /bin/ln 41 /bin/pwd 42 /bin/grep 43 /bin/vi 44 /bin/mv 45 /bin/chmod 46 /bin/more 47 /bin/[ 48 /bin/true 49 /bin/sed 50 /bin/touch 51 /bin/rmdir 52 /bin/cp 53 /bin/tar 54 /bin/rm 55 /bin/mkdir 56 /bin/sleep 57 /bin/uname 18 58 19 59 # Compression … … 27 67 /sbin/fdisk 28 68 /sbin/hdparm 69 70 # FS related 29 71 /bin/mount 30 /sbin/mount.nfs 31 /sbin/mount.nfs4 32 /usr/bin/sshfs 33 /sbin/mount.fuse 34 /usr/bin/fusermount 35 /usr/bin/ssh 36 # Required by ssh as dlopened 37 /usr/lib/libnss_compat.so 38 /usr/lib64/libnss_compat.so 39 /usr/lib/libnss_files.so 40 /usr/lib64/libnss_files.so 41 /etc/ssh 42 /usr/bin/ulockmgr_server 43 /sbin/mount.cifs 44 /sbin/mount.cifs3 45 /sbin/mount.smb 46 /sbin/mount.smb3 47 /sbin/mount.smbfs 48 /sbin/mount.smbfs3 72 /sbin/losetup 49 73 /sbin/mount.ntfs 50 74 /sbin/mount.ntfs-3g … … 102 126 /sbin/mpath_prio_tpc 103 127 104 # Network System Tools 105 /bin/ping 106 /sbin/ifconfig 107 /sbin/route 108 /sbin/dhclient 109 /var/lib/dhcp/dhclient.leases 110 111 # Busybox 112 /usr/lib/mindi/rootfs/bin/busybox 113 /usr/lib64/mindi/rootfs/bin/busybox 128 # Not completely mandatory 129 /usr/bin/tty -
branches/2.2.10/mindi/deplist.d/net.conf
r2444 r2445 3 3 # Network System Tools 4 4 # 5 # Base commands 6 /bin/netstat 5 7 6 8 # SSH support … … 10 12 # Useful for debug 11 13 /usr/sbin/ethtool 14 15 #/bin/hostname 16 #/sbin/hostname 17 #/usr/bin/tftp -
branches/2.2.10/mindi/deplist.txt
r2412 r2445 1 1 # $Id$ 2 # 3 # This file is for additional components needed on the data disk 4 # 2 5 # 3 6 # NB: 4 7 # 1. Directories are allowed. Their contents will be included by Mindi. 5 # 2. If you put 'libncurses' (w/o quotation marks) on an uncommented line then 6 # Mindi will find /lib/libncurses* and include all matching files. 7 # 3. You recommend that you give an absolute path name 8 # 4. If you want to add something, just add it on its own line. K.I.S.S. 9 # 5. You must _not_ put a semicolon & comment after an entry. e.g. 'foo; #bar'. 8 # 2. You have to give an absolute path name 9 # 3. If you want to add something, just add it on its own line. K.I.S.S. 10 # 4. You must _not_ put a semicolon & comment after an entry. e.g. 'foo; #bar'. 11 # 5. You can put comment like here or after a file to include 10 12 11 13 #------------------------- STUFF ADDED BY THE USER ---------------------------- 12 14 #---vvvv vvvv vvvv list your stuff here! vvvv vvvv vvvv 13 15 14 15 #---^^^^ ^^^^ ^^^^ list your stuff here! ^^^^ ^^^^ ^^^^16 16 #------------------------------------------------------------------------------ -
branches/2.2.10/mindi/install.sh
r2412 r2445 76 76 install -m 755 analyze-my-lvm $locallib/mindi 77 77 install -m 644 msg-txt dev.tgz $locallib/mindi 78 install -m 644 deplist. txtudev.files proliant.files $conf78 install -m 644 deplist.conf deplist-minimal.conf udev.files proliant.files $conf 79 79 for f in deplist.d/*.conf; do 80 80 install -m 644 $f $conf/deplist.d … … 89 89 90 90 install -m 644 mindi.8 $MANDIR 91 #install -m 644 ChangeLog COPYING README README.busybox README.ia64 README.pxe TODO INSTALL svn.log $DOCDIR 92 93 if [ "_$PREFIX" = "_" ] && [ ! -f $locallib/mindi/rootfs/bin/busybox ]; then 94 echo "WARNING: no busybox found, mindi will not work on this arch ($ARCH)" 95 fi 91 #install -m 644 ChangeLog COPYING README README.ia64 README.pxe TODO INSTALL svn.log $DOCDIR 96 92 97 93 # Managing parted2fdisk -
branches/2.2.10/mindi/mindi
r2444 r2445 34 34 TMPDIR=/tmp 35 35 36 EXTRA_SPACE= 49152# increase if you run out of ramdisk space36 EXTRA_SPACE=60000 # increase if you run out of ramdisk space 37 37 BOOT_SIZE=16384 # size of the boot disk 38 38 … … 92 92 . $MINDI_CONFIG 93 93 fi 94 DEPLIST_FILE="$MINDI_CONF/deplist.txt" 94 DEPLIST_FILE="$MINDI_CONF/deplist.conf" 95 DEPLIST_FILE_MIN="$MINDI_CONF/deplist-minimal.conf" 95 96 DEPLIST_DIR="$MINDI_CONF/deplist.d" 96 97 … … 153 154 return 154 155 fi 155 else156 echo -en "`basename $mappath | tr '.' '#' | sed s/#kmap#gz// | sed s/#inc#gz//` " | tr '#' '.'157 156 fi 158 157 … … 181 180 local outdir incoming fname counter d found 182 181 outdir=$1 182 noof_lines=$2 183 183 mkdir -p $outdir 184 184 incoming=`ReadLine` 185 counter=0185 progress=0 186 186 while [ "$incoming" != "" ] ; do 187 187 # Non absolute file names should not arrive till here => skipped … … 199 199 done 200 200 if [ -d "$incoming" ] && [ ! -h "$incoming" ]; then 201 find $incoming/* -maxdepth 0 2> /dev/null | CopyDependenciesToDirectory $outdir 201 find $incoming/* -maxdepth 0 2> /dev/null | CopyDependenciesToDirectory $outdir 0 202 202 elif [ -e "$incoming" ] && [ $found = "false" ]; then 203 203 tar cf - -C / $incoming 2>> $MINDI_TMP/$$.log | (cd $outdir ; tar xf -) || Die "Cannot copy $incoming to $outdir - did you run out of disk space?" $MINDI_TMP/$$.log … … 208 208 fi 209 209 [ -x "$outdir" ] && StripExecutable $outdir "-$filename-" 210 counter=$(($counter+1)) 211 if [ "$counter" -ge "5" ] ; then 212 counter=0 213 echo -en "." 214 fi 210 progress=$(($progress+1)) 211 LogProgress $progress $noof_lines 215 212 fi 216 213 incoming=`ReadLine` … … 315 312 FindAndAddUserKeyboardMappingFile() { 316 313 local r res mapfile mappath included_item included_list keyfile mp locale 317 Log All"Analyzing your keyboard's configuration."314 LogFile "Analyzing your keyboard's configuration." 318 315 KEYDIR=/lib/kbd 319 316 [ ! -e "$KEYDIR" ] && KEYDIR=/usr/share/kbd # Slackware … … 326 323 return 0 327 324 fi 325 LogFile "Adding the following keyboard mapping tables: " 328 326 if [ -e "/etc/sysconfig/keyboard" ] ; then 329 327 LogFile "Red Hat-style config detected." … … 337 335 elif [ -e "/etc/console/boottime.kmap.gz" ] ; then 338 336 LogFile "Debian-style config detected." 339 echo -en "Adding the following keyboard mapping tables: "340 337 mkdir -p $bigdir/tmp 341 338 echo "/etc/console/boottime.kmap.gz" > $bigdir/tmp/KEYMAP-LIVES-HERE … … 347 344 elif [ -e "/etc/console-setup/boottime.kmap.gz" ] ; then 348 345 LogFile "Ubuntu-style config detected." 349 echo -en "Adding the following keyboard mapping tables: "350 346 mkdir -p $bigdir/tmp 351 347 echo "/etc/console-setup/boottime.kmap.gz" > $bigdir/tmp/KEYMAP-LIVES-HERE … … 359 355 keyfile=/etc/conf.d/keymaps 360 356 else 361 echo -en"Searching for rc.config ..."357 LogAll "Searching for rc.config ..." 362 358 keyfile=`find /etc -name rc.config | head -n1` 363 359 if [ "$keyfile" = "" ] || [ ! -e "$keyfile" ] ; then … … 385 381 [ ! "$mp" ] && mp=`grep "i[3-8]86" $MINDI_TMP/keymaps.find | grep "$locale[^r][^/]" | grep -vx " *#.*"` 386 382 # If we have multiple keymaps then log it !! 387 echo "$mp" | grep -q " " 383 echo "$mp" | grep -q " " >> $LOGFILE 388 384 if [ $? -eq 0 ]; then 389 385 LogAll "WARNING: Multiple keymaps found: $mp" … … 402 398 return 403 399 fi 404 echo -en "Adding the following keyboard mapping tables: "405 400 mkdir -p $bigdir/tmp 406 401 echo "$mappath" > $bigdir/tmp/KEYMAP-LIVES-HERE … … 731 726 ListKernelModulePaths() { 732 727 local module_list module fname oss r kern 728 outfile=$1 729 echo -en "Analyzing modules requirements" 733 730 oss="/root/oss/modules" 734 731 module_list="$MODULES" … … 751 748 ### Sq-Mod End 752 749 ### 750 noof_lines=0 751 for module in $module_list $EXTRA_MODS ; do 752 noof_lines=$(($noof_lines+1)) 753 done 754 progress=0 753 755 for module in $module_list $EXTRA_MODS ; do 754 756 r=`find /lib/modules/$kern -type f | grep "/${module}\..*o" | tail -n1` 755 757 LogFile "module $module --> $r" 756 [ "$r" ] && echo "$r" 757 [ -f "$oss" ] && find $oss | grep -F $module 758 done 759 find /lib/modules/$kern/modules.* -type f 2> /dev/null 760 [ -f "$oss" ] && find $oss.* 2> /dev/null 758 [ "$r" ] && echo "$r" >> $outfile 759 [ -f "$oss" ] && find $oss | grep -F $module >> $outfile 760 progress=$(($progress+1)) 761 LogProgress $progress $noof_lines 762 done 763 find /lib/modules/$kern/modules.* -type f 2> /dev/null >> $outfile 764 [ -f "$oss" ] && find $oss.* 2> /dev/null >> $outfile 761 765 } 762 766 … … 932 936 absolute_partition old_partition_fmt current_lvolume uname skip 933 937 938 LogFile "------------------------------------" 934 939 LogFile "Your raw fstab file looks like this:" 935 940 LogFile "------------------------------------" 936 941 cat $MY_FSTAB >> $LOGFILE 942 LogAll "-----------------------------------" 937 943 LogAll "Your mountlist will look like this:" 938 944 LogAll "-----------------------------------" … … 952 958 953 959 if [ $LVM != "false" ]; then 954 echo -en "Analyzing LVM...\n"960 LogFile "Analyzing LVM..." 955 961 $MINDI_LIB/analyze-my-lvm > $MINDI_TMP/lvm.res 956 962 if [ $? -ne 0 ]; then … … 965 971 done 966 972 [ "$IMAGE_DEVS" != "" ] && all_partitions="`echo "$all_partitions $IMAGE_DEVS" | tr ' ' '\n' | sort -u | tr '\n ' ' '`" 967 printf " %-15s %-15s %-15s %-15s %-15s\n" DEVICE MOUNTPOINT FORMAT "SIZE (MB)" LABEL/UUID | tee -a $LOGFILE 973 printf "%-15s %-15s %-15s %-15s %15s\n" DEVICE MOUNTPOINT FORMAT "SIZE MB" LABEL/UUID | tee -a $LOGFILE 974 printf "%-15s %-15s %-15s %-15s %15s\n" ------ ---------- ------ ------- ---------- | tee -a $LOGFILE 968 975 useless_dev="/dev/floppy /dev/fd0h1440 /dev/fd0H1440 /dev/cdrom /dev/cdrom/cdrom /dev/cdrom/cdrom1 /dev/cdrom/cdrom2 /dev/cdrom0 /dev/cdrom1 /dev/cdrom2 /dev/cdrom3 /dev/cdrw /dev/scd /dev/ram :/ /dev/sr0 /dev/sr1 /dev/cdrom1" 969 976 for c_p in $all_partitions ; do … … 1255 1262 partition_format="`echo "$partition_format" | cut -d',' -f1`"; # in case user has ext3,ext2 or something dumb like that 1256 1263 [ "$partition_format" = "auto" ] && partition_format="`mount | grep -w $current_partition | $AWK '{print$5;}'`"; # in case user uses 'auto' (dumb!) 1257 unofficial_outstring=`printf " \t%-15s %-15s %-15s %7s %-15s\n" $current_partition $partition_mountpt $partition_format $psz "$label"`1264 unofficial_outstring=`printf "%-15s %-15s %-15s %7s %-15s\n" $current_partition $partition_mountpt $partition_format $psz "$label"` 1258 1265 if [ "$current_partition" = "" ] ; then 1259 1266 LogFile "Unknown partition (outstring = $unofficial_outstring)" … … 1262 1269 partition_mountpt=raid 1263 1270 partition_format=raid 1264 printf " \t%-15s %-15s %-15s %7s %-15s\n" $current_partition $partition_mountpt $partition_format $psz "$label" | tee -a $LOGFILE1271 printf "%-15s %-15s %-15s %7s %15s\n" $current_partition $partition_mountpt $partition_format $psz "$label" | tee -a $LOGFILE 1265 1272 printf "%s %s %s %s %s %s\n" $current_partition $partition_mountpt $partition_format $partition_size "$label" >> $mountlist 1266 1273 else … … 1278 1285 partition_format="vfat" 1279 1286 fi 1280 printf " \t%-15s %-15s %-15s %7s %-15s\n" $current_partition $partition_mountpt $partition_format $psz "$label" | tee -a $LOGFILE1287 printf "%-15s %-15s %-15s %7s %-15s\n" $current_partition $partition_mountpt $partition_format $psz "$label" | tee -a $LOGFILE 1281 1288 printf "%s %s %s %s %s\n" $current_partition $partition_mountpt $partition_format $partition_size "$label" >> $mountlist 1282 1289 fi 1283 1290 done 1291 LogAll "-----------------------------------" 1284 1292 } 1285 1293 … … 1682 1690 umount $mountpoint || Die "Cannot unmount mountpoint ($mountpoint)" 1683 1691 rmdir $mountpoint || LogAll "Cannot rmdir (PBDI)" 1684 # losetup /dev/loop0 -d1685 1692 [ "$imagefile" != "" ] && rm -f $imagefile 1686 1693 return 0 … … 1841 1848 includefile=$MINDI_TMP/$$.includefile.txt 1842 1849 1850 lfiles=`ls $DEPLIST_DIR/* | grep -v /minimal` 1843 1851 if [ -e "$DEPLIST_FILE" ]; then 1844 lfiles="$DEPLIST_FILE $DEPLIST_DIR/*" 1845 else 1846 lfiles="$DEPLIST_DIR/*" 1852 lfiles="$DEPLIST_FILE $lfiles" 1847 1853 fi 1848 1854 lines=`grep -vx " *#.*" $lfiles | grep -vx "" | wc -l` … … 1855 1861 pwd=`pwd` 1856 1862 cd $MINDI_TMP 1857 for i in `ListKernelModulePaths | HackPathsToFailsafe` ; do 1863 rm -f lkm.lis 1864 ListKernelModulePaths lkm.lis 1865 for i in `cat lkm.lis | HackPathsToFailsafe` ; do 1858 1866 tar cf - ./$i 2>> $MINDI_TMP/$$.log | (cd $bigdir ; tar xf -) || Die "PDDI can't copy $i->$bigdir" $MINDI_TMP/$$.log 1859 1867 done 1868 rm -f lkm.lis 1860 1869 for i in $EXTRA_MODS ; do 1861 1870 j=`find lib/modules/$FAILSAFE_KVER -name $i.*o.gz 2> /dev/null` … … 1868 1877 cd $pwd 1869 1878 else 1870 ListKernelModulePaths >> $needlist 1879 # This function appends to the file passed in param 1880 ListKernelModulePaths $needlist 1871 1881 fi 1872 1882 if [ "$res" -ne "0" ] ; then … … 1882 1892 DropOptimizedLibraries $needlist $bigdir 1883 1893 echo -en "Assembling dependency files" 1884 CopyDependenciesToDirectory < $needlist $bigdir 1894 1895 CopyDependenciesToDirectory < $needlist $bigdir `wc -l $needlist` 1885 1896 1886 1897 # also copy io.sys and msdos.sys, if we can find them … … 2196 2207 res=0 2197 2208 echo -en "..." 2198 dd if=/dev/zero of=$tempfile bs=1k count=$ramdisk_size &> /dev/null || Die "Not enough room for temporary ramdisk ( TurnTgzIntoRdz)"2209 dd if=/dev/zero of=$tempfile bs=1k count=$ramdisk_size &> /dev/null || Die "Not enough room for temporary ramdisk ($tempfile)" 2199 2210 echo -en "..." 2200 2211 LogFile "Creating ext2 filesystem on $tempfile" … … 2214 2225 2215 2226 cp -Rdf $tgz_dir_fname/* . 2>&1 >> $LOGFILE 2216 tar -zxf symlinks.tgz || Die "Cannot untar symlinks.tgz"2217 2227 2218 2228 cd dev || Die "Can't cd to dev" … … 2230 2240 [ -e "/dev/.devfsd" ] && echo "/dev/.devfsd found" > tmp/USE-DEVFS 2231 2241 2232 # Handle the case where busybox and mount are dynamically linked 2233 file $MINDI_LIB/rootfs/bin/busybox 2>&1 | grep -q "dynamically" 2234 if [ $? -eq 0 ]; then 2235 # We want to use the real mount and all the supported variants (nfs, cifs, ...) 2236 rm -f bin/mount $MINDI_TMP/busy.lis 2237 mountlis=`grep -E "mount|fuse|ssh" $DEPLIST_FILE $DEPLIST_DIR/* | grep -v " *#.*" | cut -d: -f2 | sort -u` 2238 LocateDeps $MINDI_LIB/rootfs/bin/busybox $mountlis >> $MINDI_TMP/busy.lis 2239 # Special for libs 2240 for f in `grep -E "libnss" $DEPLIST_FILE $DEPLIST_DIR/* | grep -v " *#.*" | cut -d: -f2`; do 2241 echo "`ReadAllLink $f`" >> $MINDI_TMP/busy.lis 2242 done 2243 # Initial / are trucated by tar 2244 tar cf - $mountlis `sort -u $MINDI_TMP/busy.lis` 2>> $MINDI_TMP/$$.log | tar xf - || LogAll "Problem in mount analysis" $MINDI_TMP/$$.log 2245 rm -f $MINDI_TMP/busy.lis 2246 fi 2242 # We need a minimal conf in the initial ramdisk 2243 mountlis=`grep -v "^#.*" $DEPLIST_FILE_MIN $DEPLIST_DIR/minimal*.conf | cut -d: -f2 | sort -u` 2244 LocateDeps $mountlis >> $MINDI_TMP/busy.lis 2245 # Special for libs 2246 for f in `grep -E "/lib" $DEPLIST_FILE_MIN $DEPLIST_DIR/minimal*.conf | grep -v "^#.*" | cut -d: -f2`; do 2247 echo "`ReadAllLink $f`" >> $MINDI_TMP/busy.lis 2248 done 2249 # Initial / are trucated by tar 2250 tar cf - $mountlis `sort -u $MINDI_TMP/busy.lis` 2>> $MINDI_TMP/$$.log | tar xf - || LogAll "Problem in mount analysis" $MINDI_TMP/$$.log 2251 rm -f $MINDI_TMP/busy.lis 2247 2252 2248 2253 # Copy of files mandatory for ssh to automate mount if sshfs is used 2249 2254 mkdir $mountpoint/.ssh 2250 2255 cp -rp ~root/.ssh/*.pub ~root/.ssh/config ~root/.ssh/known* $mountpoint/.ssh 2> /dev/null 2251 echo > $mountpoint/tmp/myssh << EOF2256 cat > $mountpoint/bin/myssh << EOF 2252 2257 ssh -o StrictHostKeyChecking=no $* 2253 2258 EOF 2254 chmod 755 $mountpoint/ tmp/myssh2259 chmod 755 $mountpoint/bin/myssh 2255 2260 2256 2261 # Copy of files mandatory for ld.so … … 2807 2812 LogAll "Mindi Linux mini-distro generator v$MINDI_VERSION" 2808 2813 LogAll "Latest Mindi is available from http://www.mondorescue.org" 2809 LogAll "BusyBox sources are available from http://www.busybox.net"2810 2814 LogAll "------------------------------------------------------------------------------" 2811 2815 else 2812 2816 LogFile "You are using Mindi-Linux v$MINDI_VERSION to make boot+data disks" 2813 2817 fi 2814 if [ -f $MINDI_LIB/rootfs/bin/busybox ]; then2815 LogAll "Mindi-`$MINDI_LIB/rootfs/bin/busybox 2>&1 | head -1`"2816 else2817 LogAll "Unable to find mindi-busybox, please install it"2818 MindiExit -12819 fi2820 2821 2818 # for Mandrake 9.2, which comes with two aes.o.gz modules :-/ 2822 2819 insmod /lib/modules/$KERVERRUN/*/*/misc/aes.*o.gz >> $LOGFILE 2>> $LOGFILE -
branches/2.2.10/mindi/mindi-bkphw
r2228 r2445 89 89 close(SCRIPT); 90 90 } else { 91 print "WARNING: No Hardware support for $productname \n";91 print "WARNING: No Hardware support for $productname. Not a big issue, just less features and risks ;-)\n"; 92 92 print "You may ask your manufacturer to contribute to the mindi project\n"; 93 93 } -
branches/2.2.10/mindi/rootfs/sbin/find-and-mount-cdrom
r1983 r2445 14 14 cd $pwd 15 15 if [ "$res" -eq "0" ] ; then 16 clear17 16 LogIt "Using cdstream as extended datadisk ($device). Good." 3 18 17 echo "Using cdstrea as extd dsk." > /tmp/TAPEDEV-HAS-DATA-DISKS -
branches/2.2.10/mindi/rootfs/sbin/init
r2444 r2445 343 343 grep -q RESTORE $CMDLINE 344 344 if [ "$?" -ne 0 ]; then 345 #clear346 345 echo "*********************************************************************" 347 346 echo "Do you want to restore the HW configuration of the original machine ?" … … 578 577 mkdir -p /tmp.old 579 578 mv /tmp/* /tmp.old/ 580 # Try to Deal with a busybox bug on inexistant links581 cp /tmp/* /tmp.old/582 579 rm -f /tmp/* 583 580 $mount_cmd /tmp 584 581 mv /tmp.old/* /tmp/ 585 # Try to Deal with a busybox bug on inexistant links586 cp /tmp.old/* /tmp/587 582 rm -rf /tmp.old 588 583 mkdir -p /tmp/tmpfs … … 774 769 mkdir -p /tmp/tmpfs 775 770 sleep 2 776 #clear777 771 if [ -e "/dev/md0" ] && [ ! -e "/dev/md/0" ] && [ "`grep /dev/md/ /tmp/mountlist.txt`" != "" ] ; then 778 772 LogIt "Creating /dev/md/* softlinks just in case." 1 -
branches/2.2.10/mindi/rootfs/sbin/install-additional-tools
r2372 r2445 80 80 cd / 81 81 82 sync;sync;sync83 84 82 LogIt "Done." 1 85 83 -
branches/2.2.10/mindi/rootfs/sbin/wait-for-petris
r875 r2445 21 21 # Keep running petris until it's killed or crashes 22 22 while [ 0 -eq 0 ] ; do 23 clear24 23 sleep 1 25 24 petris -
branches/2.2.10/mondo-doc/mondorescue-howto.sgml
r2382 r2445 1018 1018 </sect1> 1019 1019 1020 <sect1 id="installation-mindi-busybox">1021 <title>Mindi Busybox Installation</title>1022 <para>If you are installing from a tarball then copy it to wherever1023 you have enough space, for example /tmp and type:</para>1024 <para></para>1025 <informaltable><tgroup cols="1"><tbody>1026 <row>1027 <entry>1028 1029 bash# cd /tmp1030 </entry>1031 </row>1032 <row>1033 <entry>1034 bash# tar -zxvf mindi-busybox-1.x.tgz1035 </entry>1036 </row>1037 <row>1038 <entry>1039 bash# cd mindi-busybox-1.x1040 </entry>1041 </row>1042 <row>1043 <entry>1044 bash# make oldconfig1045 </entry>1046 </row>1047 <row>1048 <entry>1049 bash# make busybox1050 </entry>1051 </row>1052 <row>1053 <entry>1054 bash# make install1055 </entry>1056 </row>1057 </tbody></tgroup></informaltable>1058 <para>This installs busybox files and symlinks into /usr/local/lib/mindi/rootfs1059 </para>1060 <para>Or, if you are installing from an RPM/deb then copy it to1061 wherever you have enough space, for example /tmp and type:</para>1062 <para></para>1063 <informaltable><tgroup cols="1"><tbody>1064 <row>1065 <entry>1066 1067 bash# rpm -Uvh /tmp/mindi-busybox-1.x-x.i386.rpm1068 </entry>1069 </row>1070 <row>1071 <entry>1072 1073 or1074 </entry>1075 </row>1076 <row>1077 <entry>1078 1079 bash# dpkg -i /tmp/mindi-busybox-1.x-x.deb1080 1081 </entry>1082 </row>1083 </tbody></tgroup></informaltable>1084 1085 <para>This installs busybix files and symlinks into /usr/lib/mindi/rootfs1086 </para>1087 </sect1>1088 1089 1020 <sect1 id="installation-mondo"> 1090 1021 <title>Mondo Installation</title> … … 1160 1091 <row> 1161 1092 <entry> 1162 bash# rpm -Va mindi mondo mindi-busybox1093 bash# rpm -Va mindi mondo 1163 1094 </entry> 1164 1095 </row> … … 1215 1146 1216 1147 Latest Mindi is available from http://www.mondorescueg 1217 1218 BusyBox sources are available from http://www.busybox.net1219 1148 1220 1149 ------------------------------------------------------------------------------ -
branches/2.2.10/mondo/src/mondoarchive/mondoarchive.c
r2421 r2445 328 328 } 329 329 330 log_to_screen("BusyBox's sources are available from http://www.busybox.net");331 332 330 /* If we're meant to backup then backup */ 333 331 if (bkpinfo->backup_data) { -
branches/2.2.10/tools/quality
r2391 r2445 31 31 echo "mondorescue $s usage : " 32 32 tot=0 33 for i in `find . -name '*.c' -o -name '*.h' | egrep -v '\.svn|/\* |monitas|mindi-busybox' | xargs grep -r -c -w $s | egrep -v ":0$"`; do33 for i in `find . -name '*.c' -o -name '*.h' | egrep -v '\.svn|/\*' | xargs grep -r -c -w $s | egrep -v ":0$"`; do 34 34 echo " === $i" 35 35 ((tot=$tot+`echo $i | cut -d: -f2`)) … … 40 40 echo " " 41 41 echo "Qualimetry: " 42 pbg -w asprintf | grep -vE ' monitas|mindi-busybox|quality|/\*|asprintf\(&' > /tmp/mondo.quality42 pbg -w asprintf | grep -vE 'quality|/\*|asprintf\(&' > /tmp/mondo.quality 43 43 cat /tmp/mondo.quality 44 44 echo "mondorescue uses : `cat /tmp/mondo.quality | wc -l` asprintf without &" 45 pbg -w getline | grep -vE ' monitas|mindi-busybox|quality|/\*|getline\(&' > /tmp/mondo.quality45 pbg -w getline | grep -vE 'quality|/\*|getline\(&' > /tmp/mondo.quality 46 46 cat /tmp/mondo.quality 47 47 echo "mondorescue uses : `cat /tmp/mondo.quality | wc -l` getline without &"
Note:
See TracChangeset
for help on using the changeset viewer.