Changeset 1236 in MondoRescue
- Timestamp:
- Mar 12, 2007, 12:23:16 AM (17 years ago)
- Location:
- branches/2.2.2
- Files:
-
- 29 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.2/mindi-busybox/ChangeLog
r1013 r1236 2 2 3 3 MINDI-BUSYBOX CHANGES 4 5 1.2.3 (2007-03-08) 6 - Improve Gentoo packaging (Linos) 4 7 5 8 1.2.2 (2006-12-23) -
branches/2.2.2/mindi-busybox/VERSION
r1018 r1236 1 1.2. 21 1.2.3 -
branches/2.2.2/mindi-busybox/distributions/gentoo/mindi-busybox.ebuild
r1033 r1236 17 17 src_unpack() { 18 18 unpack ${A} || die "Failed to unpack ${A}" 19 cd "${S}"20 19 make oldconfig > /dev/null 21 20 } … … 28 27 src_install() { 29 28 # bundle up the symlink files for use later 30 emake PREFIX="${D}/usr/ share/mindi/rootfs" install || die29 emake PREFIX="${D}/usr/lib/mindi/rootfs" install || die 31 30 } -
branches/2.2.2/mindi/ChangeLog
r1231 r1236 5 5 1.2.2 (2007-03-08) 6 6 - Add the DENY_MODS variable in mindi allowing to describes modules that you don't want to include as part of the restore boot environment (HP Open Call OCMP e.g; needs it) (Bruno Cornec) 7 - Add GetInitrdFilesystemToUse function to support initramfs type of initrd 8 (SuSE 10.2/Debian 3.x/FC 6/...) (Andree Leidenfrost) 7 - Add GetInitrdFilesystemToUse function to support initramfs type of initrd (SuSE 10.2/Debian 3.x/FC 6/...) (Andree Leidenfrost) 9 8 - Fix a bug for ia64 in kernel reference in elilo.conf (Andree Leidenfrost) 10 9 - Check that /boot/efi is mounted on ia64 (Andree Leidenfrost) 11 10 - Protect some rm -rf to avoid raw removals (Bruno Cornec) 11 - Better messages for analyze-my-lvm (Bruno Cornec) 12 - Add support for newer Qlogic drivers (qla2300 & 2400), mpt, dm and ohci (Josef Jetzinger/Bruno Cornec) 13 - Fix a bug in mindi for the FAILSAFE support (Scott Cummings) 14 - PATH fixed for init in restore (/usr/games added for petris) (Andree Leidenfrost) 15 - Fiw a bug where restore failing because no archive files are found when -G is used (Andree Leidenfrost) 16 - /media is now completely excluded as per StandardsCompliance (Bruno Cornec) 12 17 13 18 1.2.1 (2006-12-23) -
branches/2.2.2/mindi/analyze-my-lvm
r963 r1236 3 3 # $Id$ 4 4 # 5 6 #------------------------- ANALYZE-MY-LVM ----------------------- Hugo Rabson7 # 07/148 # - no longer blank first 4k of /dev/mdX9 #10 # 06/14/200411 # - fixed "n >= 2.00" bug (shell doesn't handle floating points properly)12 # - handle dm_mod as well as dm-mod13 #14 # 02/18/200415 # - nice patch to fix ListAllVolumeGroups() --- J. Richard16 # - patch to support LVM2 by Takeru Komoriya17 #18 # 10/15/200319 # - fixed '-L'-handling to allow for floating-point gigabyte values20 #21 # 01/15/200322 # - patch (LVM) by Brian Borgeson23 #24 # 12/10/200225 # - patch by Benjamin Mampaey26 #27 # 09/05/200228 # - additional patch by Ralph Gruwe29 #30 # 08/30/200231 # - modified by Ralph Gruwe32 #33 # 10/01/200134 # - last modified by Hugo :)35 #------------------------------------------------------------------------------36 5 37 6 Die() { … … 186 155 ListAllLogicalVolumes() { 187 156 if [ $lvmversion = 2 ]; then 188 $LVMCMD lvscan | grep "'" | cut -d"'" -f2189 else 190 lvscan | grep '"' | cut -d'"' -f2157 $LVMCMD lvscan 2> /dev/null | grep "'" | cut -d"'" -f2 158 else 159 lvscan 2> /dev/null | grep '"' | cut -d'"' -f2 191 160 fi 192 161 } -
branches/2.2.2/mindi/install.sh
r937 r1236 12 12 local=${HEAD}$PREFIX 13 13 sublocal=$PREFIX 14 if [ -f /usr/local/sbin/mindi ]; then15 echo "WARNING: /usr/local/sbin/mindi exists. You should probably remove your manual installation !"16 fi17 14 if [ "_$CONFDIR" != "_" ]; then 18 15 conf=${HEAD}$CONFDIR/mindi … … 22 19 exit -1 23 20 fi 24 echo $PATH | grep /usr/sbin > /dev/null || echo "Warning - your PATH environmental variable is BROKEN. Please add /usr/sbin to your PATH."25 21 else 26 22 local=/usr/local … … 90 86 install -m 644 ChangeLog COPYING README README.busybox README.ia64 README.pxe TODO INSTALL svn.log $DOCDIR 91 87 92 if [ ! -f $locallib/mindi/rootfs/bin/busybox ]; then88 if [ "_$PREFIX" = "_" ] && [ ! -f $locallib/mindi/rootfs/bin/busybox ]; then 93 89 echo "WARNING: no busybox found, mindi will not work on this arch ($ARCH)" 94 90 fi -
branches/2.2.2/mindi/rootfs/sbin/init
r911 r1236 424 424 trap CaughtSoftReset SIGTERM 425 425 LOGFILE=/tmp/mondo-restore.log 426 PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/mondo:/usr/ local/mondo:/usr/local/mindi:.426 PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/mondo:/usr/games 427 427 GROOVY=/tmp/groovy-stuff 428 428 USER=root … … 539 539 LogIt "I think this CD/floppy has no archives on it." 540 540 fi 541 echo -en "Type 'exit' to reboot the PC\ r"541 echo -en "Type 'exit' to reboot the PC\n" 542 542 umount /mnt/cdrom 2> /dev/null 543 543 mount / -o rw,remount > /dev/null 2> /dev/null -
branches/2.2.2/mondo-doc/VERSION
r1018 r1236 1 2.2. 11 2.2.2 -
branches/2.2.2/mondo-doc/mondorescue-howto.sgml
r978 r1236 75 75 </link>.</para> 76 76 <para> 77 or any later version published by the Free Software Foundation; with no Invarian 78 t Sections, Front-Cover Texts or Back-Cover Texts. This document is distributed 79 hoping it will be useful, but <emphasis>without any guaranty</emphasis>; you're 80 completely responsible of its use, and coulnd't complain in case it doesn't work 81 , or even if it breaks the hardware. All the software included in it, if not alr 82 eady copyrighted is released under the GPL. 77 or any later version published by the Free Software Foundation; with no Invariant Sections, Front-Cover Texts or Back-Cover Texts. This document is distributed hoping it will be useful, but <emphasis>without any guaranty</emphasis>; you're completely responsible of its use, and coulnd't complain in case it doesn't work, or even if it breaks the hardware. All the software included in it, if not already copyrighted is released under the GPL. 83 78 </para> 84 79 </legalnotice> … … 173 168 e-mail! Thank you. Without it we can't offer 174 169 any tangible help because you aren't either. That's what the log 175 file is for. It is located at <filename>/var/log/mondo-archive.log</filename>; and <filename>/var/log/mi indi.log</filename> or at <filename>/var/log/mondo-restore.log</filename>176 </para> 177 <para> 178 This document was originaly written by native english speakers, but is maintained by a non-native english speaker so help me correct mistaques instead of rumbling that I've done one :-)170 file is for. It is located at <filename>/var/log/mondo-archive.log</filename>; and <filename>/var/log/mindi.log</filename> or at <filename>/var/log/mondo-restore.log</filename> 171 </para> 172 <para> 173 This document was originaly written by native english speakers, but is maintained by a non-native english speaker so help me correct mistaques (sic) instead of rumbling that I've done one :-) 179 174 </para> 180 175 <para> … … 711 706 boot-time. Mondo uses fdisk, mkfs, cat, less, more, afio, gzip, 712 707 bzip2, your keyboard configuration, your glibc libraries, your 713 other libraries, your kernel, your modules, ... a lot! Mindi takes714 care of all that, so that Mondo can get on with the job of backing708 other libraries, your kernel, your modules, ... which is a lot of tools! 709 Mindi takes care of all that, so that Mondo can get on with the job of backing 715 710 up or restoring your data. 716 711 </para> … … 738 733 drives. That works for most drives but some drives just don't like 739 734 that.</para> 740 <para>Mondo Rescue has tested thousands of times on various computers.741 It worked for them.735 <para>Mondo Rescue has been tested thousands of times on various computers. 736 It has worked for them. 742 737 Thousands of users testify to Mondo's stability and its ease of 743 738 use. However, please test it on your own system before you rely on … … 858 853 Since November 2005, Hugo Rabson has tranfered the maintenance 859 854 of the Mondo Rescue suite to Andree Leidenfrost and Bruno Cornec, 860 both previous develop pers and packagers of the tool since nearly855 both previous developers and packagers of the tool since nearly 861 856 the begining. 862 857 </para> … … 948 943 <para>See Mondo's <ulink url="http://www.mondorescue.org/downloads.shtml">Download 949 944 page</ulink> for details.</para> 950 <para>Mondo requires afio, bzip2, cdrtools/cdrecord/growisofs , ncurses, newt,945 <para>Mondo requires afio, bzip2, cdrtools/cdrecord/growisofs (may be part of the dvd+rw-tools package), ncurses, newt, 951 946 isolinux/syslinux, lzo (optional), lzop (optional), mkisofs, slang, 952 947 and a few other packages.</para> … … 1029 1024 </sect1> 1030 1025 1026 <sect1 id="installation-mindi-busybox"> 1027 <title>Mindi Busybox Installation</title> 1028 <para>If you are installing from a tarball then copy it to wherever 1029 you have enough space, for example /tmp and type:</para> 1030 <para></para> 1031 <informaltable><tgroup cols="1"><tbody> 1032 <row> 1033 <entry> 1034 1035 bash# cd /tmp 1036 </entry> 1037 </row> 1038 <row> 1039 <entry> 1040 bash# tar -zxvf mindi-busybox-1.x.tgz 1041 </entry> 1042 </row> 1043 <row> 1044 <entry> 1045 bash# cd mindi-busybox-1.x 1046 </entry> 1047 </row> 1048 <row> 1049 <entry> 1050 bash# make oldconfig 1051 </entry> 1052 </row> 1053 <row> 1054 <entry> 1055 bash# make busybox 1056 </entry> 1057 </row> 1058 <row> 1059 <entry> 1060 bash# make install 1061 </entry> 1062 </row> 1063 </tbody></tgroup></informaltable> 1064 <para>This installs busybox files and symlinks into /usr/local/lib/mindi/rootfs 1065 </para> 1066 <para>Or, if you are installing from an RPM/deb then copy it to 1067 wherever you have enough space, for example /tmp and type:</para> 1068 <para></para> 1069 <informaltable><tgroup cols="1"><tbody> 1070 <row> 1071 <entry> 1072 1073 bash# rpm -Uvh /tmp/mindi-busybox-1.x-x.i386.rpm 1074 </entry> 1075 </row> 1076 <row> 1077 <entry> 1078 1079 or 1080 </entry> 1081 </row> 1082 <row> 1083 <entry> 1084 1085 bash# dpkg -i /tmp/mindi-busybox-1.x-x.deb 1086 1087 </entry> 1088 </row> 1089 </tbody></tgroup></informaltable> 1090 1091 <para>This installs busybix files and symlinks into /usr/lib/mindi/rootfs 1092 </para> 1093 </sect1> 1094 1031 1095 <sect1 id="installation-mondo"> 1032 1096 <title>Mondo Installation</title> … … 1094 1158 <para>This installs mondo into /usr/lib/mondo and installs 1095 1159 the programs into /usr/sbin</para> 1160 </sect1> 1161 1162 <sect1 id=rpm-verif> 1163 <title>RPM verifications</title> 1164 <para>For RPM based distributions (Fedora, OpenSuSE, Mandriva, ...), you may want to do this post-install in order to check the validity of your installation:</para> 1165 <informaltable><tgroup cols="1"><tbody> 1166 <row> 1167 <entry> 1168 bash# rpm -Va mindi mondo mindi-busybox 1169 </entry> 1170 </row> 1171 </tbody></tgroup></informaltable> 1172 <para> 1173 This gives some truly obtuse output. Basically it will list all files that do NOT pass the verify tests (done on size, MD5 signature, etc). Please read rpm man page to discover the meaning of the output. 1174 </para> 1096 1175 </sect1> 1097 1176 </chapter> … … 1269 1348 1270 1349 <sect1 id="backup-recommandations"> 1271 <title>Recomm andations</title>1350 <title>Recommendations</title> 1272 1351 <itemizedlist> 1273 1352 <listitem> … … 1275 1354 compare differences following the backup). Especially shutdown 1276 1355 properly any running database on your system, as the recovery 1277 may lead to corrupted data. </para>1356 may lead to corrupted data. Or if applicable, boot to single user mode.</para> 1278 1357 </listitem> 1279 1358 <listitem> … … 1488 1567 has been done. The problem lies in the fact that cron does not allow 1489 1568 user interaction with a job. If you schedule a mondoarchive job via 1490 cron, you better be sure it needs only one media. in practical terms,1569 cron, you better be sure it needs only one media. In practical terms, 1491 1570 this means using tapes or ISOs (if CD-R(W) is your backup medium). 1492 1571 However, for tape users, there's always the possibility that the … … 1515 1594 If your backup already occupies two media, this method will allow 1516 1595 as much of the backup as possible to proceed during quiet periods. 1517 Time the backup to start wi ch enough time to complete the first media1596 Time the backup to start with enough time to complete the first media 1518 1597 shortly before the operator arrives for work. The next media can 1519 1598 be mounted and the backup completed asap and minimises the time for … … 1540 1619 of interacting via a FIFO or some such) except termination via its 1541 1620 pid. The only program that I know of that allows such interaction 1542 and serves as a wrapper for other pr rocesses is 'screen'1621 and serves as a wrapper for other processes is 'screen' 1543 1622 </para> 1544 1623 </sect2> … … 1548 1627 attach to a terminal when it first starts. This won't happen under 1549 1628 cron so screen will fail. Fortunately, screen comes with a "start 1550 detached" option.1629 detached" (-d) option. 1551 1630 </para> 1552 1631 </sect2> … … 1845 1924 <listitem><para>Wipe your drives and restore everything, 1846 1925 automatically and unattended. Warning: This does exactly what is 1847 says, so be careful lusing it.</para>1926 says, so be careful using it.</para> 1848 1927 </listitem></varlistentry> 1849 1928 <varlistentry><term>Expert</term> … … 2375 2454 </tbody></tgroup></informaltable> 2376 2455 2377 <para>I hope this manual is proving to be useful toyou.</para>2456 <para>I hope this manual was useful for you.</para> 2378 2457 </sect2> 2379 2458 </sect1> … … 2396 2475 <itemizedlist> 2397 2476 <listitem> 2398 <para>Your kernel version </para>2399 </listitem> 2400 <listitem> 2401 <para>Your Linux distro's name and version</para>2402 </listitem> 2403 <listitem> 2404 <para>Whether your kernel supports initrd and loopfs; it should!</para>2405 </listitem> 2406 <listitem> 2407 <para>What sort of PC you are using, including hard disk configurations </para>2477 <para>Your kernel version (uname -a)</para> 2478 </listitem> 2479 <listitem> 2480 <para>Your Linux distro's name and version (/etc/distro-release)</para> 2481 </listitem> 2482 <listitem> 2483 <para>Whether your kernel supports initrd and loopfs; it should! (grep -E '^CONFIG_BLK_DEV_LOOP|^CONFIG_BLK_DEV_INITRD' /usr/src/linux/.config </para> 2484 </listitem> 2485 <listitem> 2486 <para>What sort of PC you are using, including hard disk configurations (results of dmidecode, lshw, fdisk -l are useful here)</para> 2408 2487 </listitem> 2409 2488 </itemizedlist> … … 2430 2509 'mondo'. Hugo Rabson wasn't sure what to call this project. 'Faust' was one 2431 2510 idea he had, partly as a dig at his former boss who practically owned 2432 him because of his legal status at the time. In the end, He chose2511 him because of his legal status at the time. In the end, he chose 2433 2512 something short and distinctive.</para> 2434 2513 </answer> … … 2438 2517 keels over and dies. What's wrong?</para></question> 2439 2518 <answer> 2440 <para>A: It works on Red Hat 7.x/8/9, RHEL 2.1/3/4, Mandrakelinux 8.x/9.x/10.x , Debian 3.0, most flavors2519 <para>A: It works on Red Hat 7.x/8/9, RHEL 2.1/3/4, Mandrakelinux 8.x/9.x/10.x/200x, Fedora 4/5/6, Debian 3.x, most flavors 2441 2520 of SuSE/SLES, some flavors of Slackware, etc. 2442 2521 The more distributions we support, the more moving targets we have to … … 2457 2536 <para>A: Please send a copy of <filename>/var/log/mindi.log</filename> to the &ML; 2458 2537 along with a description of your distro, your kernel, etc. 2459 Oh, and before sending it, please read it as it's much easier to understand it.</para>2538 Oh, and before sending it, please read it as it is much easier to understand it.</para> 2460 2539 </answer> 2461 2540 </qandaentry> … … 2498 2577 please?</para></question> 2499 2578 <answer> 2500 <para>A: please enter the suggestion in our feature system at &WWW;2579 <para>A: Please enter the suggestion in our feature system at &WWW; 2501 2580 </para> 2502 2581 </answer> … … 2635 2714 <para>A: Recompile your kernel (or use '-k FAILSAFE'). Take a look 2636 2715 at <link linkend="overview-sysrq-kernelreq">Linux Kernel support</link> to 2637 see what you 'rekernel must support.</para>2716 see what your kernel must support.</para> 2638 2717 </answer> 2639 2718 </qandaentry> … … 2644 2723 <para>A: Recompile your kernel and add Virtual memory file system 2645 2724 support. Take a look at <link linkend="overview-sysrq-kernelreq">Linux 2646 Kernel support</link> to see what you 'rekernel must support. (Of2725 Kernel support</link> to see what your kernel must support. (Of 2647 2726 course, if your PC has less than 64MB of RAM, you could always... 2648 2727 what's the phrase? I know, upgrade your RAM!)</para> … … 2656 2735 <para>A: Your kernel must support initrd, loopfs, IDE|SCSI|USB CD-ROM's, and 2657 2736 ramdisks. Take a look at <link linkend="overview-sysrq-kernelreq">Linux 2658 Kernel support</link> to see what you 'rekernel must support. If2737 Kernel support</link> to see what your kernel must support. If 2659 2738 your kernel does not support these things, Mondo will not boot from 2660 2739 your CD. However, when running Mindi, you may choose to use _its_ … … 2714 2793 kernel and/or recompile it. Take a look at 2715 2794 <link linkend="overview-sysrq-kernelreq">Linux Kernel support</link> to see 2716 what you 'rekernel must support.</para>2795 what your kernel must support.</para> 2717 2796 </answer> 2718 2797 </qandaentry> … … 2751 2830 <answer> 2752 2831 <para>A: Recompile your kernel and add initrd support. Take a look 2753 at <link linkend="overview-sysrq-kernelreq">Linux Kernel support</link> to2754 see what you 'rekernel must support.</para>2832 at <link linkend="overview-sysrq-kernelreq">Linux Kernel support</link> to 2833 see what your kernel must support.</para> 2755 2834 </answer> 2756 2835 </qandaentry> … … 2808 2887 <question><para id="TAPENICE">Q: My tape drive 2809 2888 doesn't play nicely with Mondo at boot-time. What do I do?</para></question> 2810 <answer><para>A: Play with 'mt'. Use its setblksize and2889 <answer><para>A: Play with the 'mt' command (package mt-st). Use its setblksize and 2811 2890 defblksize switches to reconfigure your tape drive if necessary. 2812 2891 Some tape drives just are painful. If yours is one of … … 2887 2966 drives?</para></question> 2888 2967 <answer> 2889 <para>A: Yes. See above.</para> 2968 <para>A: Yes. See above.</para> 2969 <para>Of course, mondo will relay on the kernel to support your tape drive. So you should first check that your kernel found it correctly. Use for example one of the following commands:</para> 2970 <informaltable><tgroup cols="1"><tbody> 2971 <row> 2972 <entry> 2973 bash# dmesg | grep tape 2974 </entry> 2975 </row> 2976 <row> 2977 <entry> 2978 bash# cat /proc/scsi/scsi 2979 </entry> 2980 </row> 2981 <row> 2982 <entry> 2983 bash# mt -f /dev/st0 status 2984 </entry> 2985 </row> 2986 </tbody></tgroup></informaltable> 2987 2988 2890 2989 </answer> 2891 2990 </qandaentry> … … 2960 3059 partitions and their settings. Mondo will do the partitioning and 2961 3060 formatting for you.</para> 2962 <para>Tested Raid controllers includes all those showin donly classical devices3061 <para>Tested Raid controllers includes all those showing only classical devices 2963 3062 such as /dev/sdx, and SmartArray cciss controllers.</para> 2964 3063 </answer> … … 2971 3070 <informaltable><tgroup cols="1"><tbody> 2972 3071 <row> 2973 <entry> 2974 2975 bash# cdrecord -scanbus 2976 2977 </entry> 2978 </row> 2979 </tbody></tgroup></informaltable> 3072 <entry> 3073 bash# cdrecord -scanbus 3074 </entry> 3075 </row> 3076 </tbody></tgroup></informaltable> 3077 <para>or for ATAPI type of devices:</para> 3078 <para></para> 3079 <informaltable><tgroup cols="1"><tbody> 3080 <row> 3081 <entry> 3082 bash# cdrecord -scanbus dev=ATAPI 3083 </entry> 3084 </row> 3085 </tbody></tgroup></informaltable> 3086 <para>you may replace ATAPI by ATA in the previous line with certain cdrecord versions and hadrware configurations</para> 3087 2980 3088 2981 3089 <para>Find your CD burner's device# (e.g. '0,0,0'). Call Mondo with … … 3209 3317 <qandaentry> 3210 3318 <question> 3211 <para id="LVM" />Q: I can't nuke-restore my LVM or RAID or3319 <para id="LVM">Q: I can't nuke-restore my LVM or RAID or 3212 3320 LVM-on-RAID setup. I have to do it manually. What now?</para></question> 3213 3321 <answer> -
branches/2.2.2/mondo-doc/mondorestore.8
r569 r1236 32 32 .I mondorestore 33 33 restores data previously backed up with 34 .I mondoarchive 35 \&. mondoarchive does not take any command line parameters. 34 .I mondoarchive. 35 .I mondorestore 36 does not take any command line parameters. 36 37 . 37 38 Note that mondorestore will usually automatically be called when booting a -
branches/2.2.2/mondo/ChangeLog
r1016 r1236 2 2 3 3 MONDO CHANGES 4 5 2.2.2 (2007-03-08) 6 - Handle no compression + verify correctly (Scott Cummings) 7 - various HOWTO fixes (Mike Kinney) 8 - Fix temporarily a bug when a biggiefile > 32MB was compressed below the size 9 of a slice (16MB) (Michel Loiseleur/Bruno Cornec) 10 - Better module loading in insmod_crucial_modules (Andree Leidenfrost) 11 - Improve Gentoo packaging (Linos) 12 - Small typo fix for mondorestore man page (petes-bugs) 13 - Small memory management improvements (Michel Loiseleur/Bruno Cornec) 14 - Store NFS config only once (Bruno Cornec) 15 - Fix a flaw in libmondo-mountlist.c (there since rev [1] !!) (Bruno Cornec) 16 - Increased MAX_STR_LEN to 384 to make it divisible without remainder by eight 17 for 64 bits platforms (Andree Leidenfrost) 18 - Fix a bug where no bzip2 format file would be found when supporting gzip (Andy Wright) 19 - CentOS fixes (Andy Wright) 4 20 5 21 2.2.1 (2006-12-23) -
branches/2.2.2/mondo/VERSION
r1018 r1236 1 2.2. 11 2.2.2 -
branches/2.2.2/mondo/distributions/gentoo/mondo.ebuild
r781 r1236 24 24 >=app-arch/bzip2-0.9 25 25 app-cdr/cdrtools 26 >=sys-apps/mindi-1. 0.726 >=sys-apps/mindi-1.2.1 27 27 >=dev-libs/newt-0.50 28 28 >=sys-libs/slang-1.4.1 -
branches/2.2.2/mondo/src/common/libmondo-archive.c
r998 r1236 2588 2588 assert(bkpinfo != NULL); 2589 2589 /* slice big files */ 2590 malloc_string(blah);2591 2590 malloc_string(biggielist); 2592 2591 malloc_string(xattr_fname); 2593 2592 malloc_string(acl_fname); 2594 command = malloc(1200);2595 2593 mvaddstr_and_log_it(g_currentY, 0, 2596 2594 "Archiving large files to media "); … … 2603 2601 } 2604 2602 2605 sprintf(command, "cp %s/biggielist.txt %s", bkpinfo->tmpdir,2603 asprintf(&command, "cp %s/biggielist.txt %s", bkpinfo->tmpdir, 2606 2604 biggielist); 2607 2605 paranoid_system(command); 2608 sprintf(blah, "biggielist = %s", biggielist); 2606 paranoid_free(command); 2607 2608 asprintf(&blah, "biggielist = %s", biggielist); 2609 2609 log_msg(2, blah); 2610 paranoid_free(blah); 2610 2611 2611 2612 if (!does_file_exist(biggielist)) { … … 2615 2616 if (g_getfattr) { 2616 2617 get_fattr_list(biggielist, xattr_fname); 2617 sprintf(command, "cp %s %s/archives/", xattr_fname,2618 asprintf(&command, "cp %s %s/archives/", xattr_fname, 2618 2619 bkpinfo->scratchdir); 2619 2620 paranoid_system(command); 2621 paranoid_free(command); 2620 2622 } 2621 2623 if (g_getfacl) { 2622 2624 get_acl_list(biggielist, acl_fname); 2623 sprintf(command, "cp %s %s/archives/", acl_fname, bkpinfo->scratchdir); 2625 asprintf(&command, "cp %s %s/archives/", acl_fname, 2626 bkpinfo->scratchdir); 2624 2627 paranoid_system(command); 2628 paranoid_free(command); 2625 2629 } 2626 2630 2627 2631 if (IS_THIS_A_STREAMING_BACKUP(bkpinfo->backup_media_type)) { 2628 2632 res += write_EXAT_files_to_tape(bkpinfo, xattr_fname, acl_fname); 2629 sprintf(blah, "%ld", count_lines_in_file(biggielist));2633 asprintf(&blah, "%ld", count_lines_in_file(biggielist)); 2630 2634 write_header_block_to_stream((off_t)0, blah, BLK_START_BIGGIEFILES); 2635 paranoid_free(blah); 2631 2636 } 2632 2637 res = make_slices_and_images(bkpinfo, biggielist); … … 2649 2654 return (retval); 2650 2655 } 2651 2652 2656 2653 2657 … … 3474 3478 strcpy(tmp, slice_fname(biggie_file_number, 0, bkpinfo->tmpdir, "")); 3475 3479 fout = fopen(tmp, "w"); 3480 if (fout == NULL) { 3481 mr_msg(1, "Unable to open and write to %s\n", tmp); 3482 paranoid_free(tmp); 3483 paranoid_free(suffix); 3484 return (1); 3485 } 3486 3476 3487 (void) fwrite((void *) &biggiestruct, 1, sizeof(biggiestruct), fout); 3477 3488 paranoid_fclose(fout); -
branches/2.2.2/mondo/src/common/libmondo-filelist.c
r1015 r1236 352 352 assert(maxsetsizeK > 0); 353 353 354 max_sane_size_for_a_file = 32L * 1024L;354 max_sane_size_for_a_file = 64L * 1024L; 355 355 // max_sane_size_for_a_file = maxsetsizeK*2; 356 356 // if (max_sane_size_for_a_file > 32*1024) … … 1747 1747 log_msg(1, "Calculating filelist"); 1748 1748 sprintf(exclude_paths, " %s %s %s %s %s %s . .. \ 1749 " MNT_CDROM " " MNT_FLOPPY " /media /cdrom /media/cdrecorder\1749 " MNT_CDROM " " MNT_FLOPPY " /media \ 1750 1750 /proc /sys /root/images/mondo /root/images/mindi ", excp, call_program_and_get_last_line_of_output("locate /win386.swp 2> /dev/null"), call_program_and_get_last_line_of_output("locate /hiberfil.sys 2> /dev/null"), call_program_and_get_last_line_of_output("locate /pagefile.sys 2> /dev/null"), (tmpdir[0] == '/' && tmpdir[1] == '/') ? (tmpdir + 1) : tmpdir, (scratchdir[0] == '/' && scratchdir[1] == '/') ? (scratchdir + 1) : scratchdir); 1751 1751 -
branches/2.2.2/mondo/src/common/libmondo-files.c
r1002 r1236 1245 1245 strcpy(nfs_server_ipaddr, tmp); 1246 1246 strcpy(nfs_mount, p); 1247 1247 1248 /* BERLIOS : there is a bug #67 here as it only considers the first NIC */ 1248 1249 sprintf(command, … … 1417 1418 char tmp[MAX_STR_LEN]; 1418 1419 char *p; 1420 char *q = NULL; 1421 1422 q = strrchr(filename, '.'); 1423 if (q == NULL) { 1424 return (FALSE); 1425 } 1419 1426 1420 1427 sprintf(tmp, "%s/do-not-compress-these", g_mondo_home); … … 1422 1429 return (FALSE); 1423 1430 } 1424 strcpy(do_not_compress_these, last_line_of_file(tmp)); 1431 /* BERLIOS: This is just plain WRONG !! */ 1432 strcpy(do_not_compress_these,last_line_of_file(tmp)); 1433 1425 1434 for (p = do_not_compress_these; p != NULL; p++) { 1426 1435 strcpy(tmp, p); … … 1428 1437 *(strchr(tmp, ' ')) = '\0'; 1429 1438 } 1430 if (!strcmp( sz_last_suffix(filename), tmp)) { /*printf("MATCH\n"); */1439 if (!strcmp(q, tmp)) { 1431 1440 return (TRUE); 1432 1441 } -
branches/2.2.2/mondo/src/common/libmondo-fork.c
r797 r1236 155 155 } 156 156 strip_spaces(result); 157 paranoid_free(tmp); 157 158 return (result); 158 159 } … … 201 202 log_msg(3, "Starting"); 202 203 assert(bkpinfo != NULL); 203 assert_string_is_neither_NULL_nor_zerolength(basic_call); 204 // BERLIOS: doesn't work even if the string is correct ! 205 //assert_string_is_neither_NULL_nor_zerolength(basic_call); 204 206 assert_string_is_neither_NULL_nor_zerolength(isofile); 205 207 assert_string_is_neither_NULL_nor_zerolength(logstub); -
branches/2.2.2/mondo/src/common/libmondo-mountlist.c
r541 r1236 58 58 #include "libmondo-tools-EXT.h" 59 59 #include "libmondo-string-EXT.h" 60 #include " libmondo-gui-EXT.h"60 #include "newt-specific-EXT.h" 61 61 62 62 /*@unused@*/ … … 369 369 sprintf(tmp, " %ld MB unallocated on %s.", 370 370 physical_drive_size - amount_allocated, drive); 371 log_it(tmp), strcat(flaws_str, tmp); 371 log_it(tmp); 372 strcat(flaws_str, tmp); 373 /* BERLIOS: Flawed since rev 1 !! */ 374 res++; 372 375 } 373 376 if (res) { … … 525 528 sprintf(tmp, " %ld MB unallocated on %s.", 526 529 physical_drive_size - amount_allocated, drive); 527 log_it(tmp), strcat(flaws_str, tmp); 530 log_it(tmp); 531 strcat(flaws_str, tmp); 532 /* BERLIOS: Flawed since rev 1 !! */ 533 res++; 528 534 } 529 535 -
branches/2.2.2/mondo/src/common/libmondo-string.c
r841 r1236 513 513 514 514 input = malloc(2000); 515 assert_string_is_neither_NULL_nor_zerolength(ip); 515 // BERLIOS: seems to cause invalid errors 516 //assert_string_is_neither_NULL_nor_zerolength(ip); 516 517 assert_string_is_neither_NULL_nor_zerolength(token); 517 518 assert(value != NULL); -
branches/2.2.2/mondo/src/common/libmondo-tools.c
r998 r1236 459 459 /** 460 460 * Insert modules that Mondo requires. 461 * Currently inserts @c dos, @c fat, @c vfat, and @c osstfor Linux;461 * Currently inserts @c msdos, @c vfat, and @c loop for Linux; 462 462 * @c msdosfs and @c ext2fs for FreeBSD. 463 463 */ … … 468 468 system("kldstat | grep ext2fs || kldload ext2fs 2> /dev/null"); 469 469 #else 470 system("modprobe dos &> /dev/null"); 471 system("modprobe fat &> /dev/null"); 472 system("modprobe vfat &> /dev/null"); 473 // system("modprobe osst &> /dev/null"); 470 system("modprobe -a msdos vfat loop &> /dev/null"); 474 471 #endif 475 472 } -
branches/2.2.2/mondo/src/common/libmondo-verify.c
r1003 r1236 369 369 does_file_exist(slice_fname 370 370 (bigfile_num, slice_num, mountpoint, ""))) { 371 // handle slices until end of CD371 // handle slices until end of CD 372 372 if (slice_num == 0) { 373 373 log_msg(2, "ISO=%d bigfile=%ld --START--", … … 391 391 if (!(forig = fopen(tmp, "r"))) { 392 392 log_msg(2, "Failed to open bigfile. Darn."); 393 log_to_screen(_("%s/%s not found on live filesystem"), 394 bkpinfo->restore_path, 395 biggiestruct.filename); 396 asprintf(&tmp, "echo \"%s/%s not found\" >> /tmp/biggies.changed", 397 bkpinfo->restore_path, 398 biggiestruct.filename); 399 system(tmp); 400 paranoid_free(tmp); 401 402 bigfile_num++; 403 slice_num = 0; 393 404 retval++; 405 } else { 406 slice_num++; 394 407 } 395 slice_num++;396 } else if (does_file_exist 397 ( slice_fname(bigfile_num, slice_num, mountpoint, ""))) {408 paranoid_free(tmp2); 409 } else if (does_file_exist(slice_fname(bigfile_num, slice_num, mountpoint, "")) && 410 (length_of_file(slice_fname(bigfile_num, slice_num, mountpoint, "")) == 0)) { 398 411 log_msg(2, "ISO=%d bigfile=%ld ---END---", 399 412 g_current_media_number, bigfile_num); … … 402 415 slice_num = 0; 403 416 } else { 404 log_msg(2, "ISO=%d bigfile=%ld slice=%ld \r",417 mr_msg(2, "ISO=%d bigfile=%ld slice=%ld", 405 418 g_current_media_number, bigfile_num, slice_num); 406 if ( bkpinfo->compression_level > 0) {419 if (!does_file_exist(slice_fname(bigfile_num, slice_num, mountpoint, ""))) { 407 420 sprintf(command, "%s -dc %s 2>> %s", 408 421 sz_exe, 409 slice_fname(bigfile_num, slice_num, mountpoint, 410 bkpinfo->zip_suffix), 422 slice_fname(bigfile_num, slice_num, mountpoint, bkpinfo->zip_suffix), 411 423 MONDO_LOGFILE); 412 424 } else { 413 sprintf(command, "cat %s", 414 slice_fname(bigfile_num, slice_num, mountpoint, 415 bkpinfo->zip_suffix)); 425 sprintf(command, "cat %s 2>> %s", 426 slice_fname(bigfile_num, slice_num, mountpoint, ""), MONDO_LOGFILE); 416 427 } 417 428 if ((pin = popen(command, "r"))) { … … 435 446 } 436 447 paranoid_pclose(pin); 437 if (res && !strncmp(biggiestruct.filename, " 448 if (res && !strncmp(biggiestruct.filename, "/dev/", 5)) { 438 449 log_msg(3, 439 450 "Ignoring differences between %s and live filesystem because it's a device and therefore the archives are stored via ntfsclone, not dd.", -
branches/2.2.2/mondo/src/common/my-stuff.h
r792 r1236 266 266 #define ARBITRARY_MAXIMUM 2000 ///< The maximum number of items showing at once in the mountlist or filelist editor. 267 267 #define MAX_TAPECATALOG_ENTRIES 8192 ///< The maximum number of entries in the tape catalog. 268 #define MAX_STR_LEN 380 ///< The maximum length of almost all @p char buffers in Mondo. 268 #define MAX_STR_LEN 384 ///< The maximum length of almost all @p char buffers in Mondo. 269 /// Note: Make this divisible by eight to avoid aligment issues 270 /// on 64bit platforms like ia64. 269 271 #define MAXIMUM_RAID_DEVS 32 ///< The maximum number of RAID devices in the raidlist. 270 272 #define MAXIMUM_ADDITIONAL_RAID_VARS 32 ///< The maximum number of additional RAID variables per RAID device in the raidlist. -
branches/2.2.2/mondo/src/mondoarchive/main.c
r948 r1236 152 152 * Print a "don't panic" message to the log and a message about the logfile to the screen. 153 153 */ 154 void welcome_to_mondoarchive( )154 void welcome_to_mondoarchive(void) 155 155 { 156 156 log_msg(0, "Mondo Archive v%s --- http://www.mondorescue.org", … … 197 197 * of the day. 198 198 */ 199 void distro_specific_kludges_at_start_of_mondoarchive( )199 void distro_specific_kludges_at_start_of_mondoarchive(void) 200 200 { 201 201 log_msg(2, "Unmounting old ramdisks if necessary"); … … 214 214 * Undo whatever was done by distro_specific_kludges_at_start_of_mondoarchive(). 215 215 */ 216 void distro_specific_kludges_at_end_of_mondoarchive( )216 void distro_specific_kludges_at_end_of_mondoarchive(void) 217 217 { 218 218 // char tmp[500]; -
branches/2.2.2/mondo/src/mondoarchive/mondo-cli.c
r999 r1236 279 279 sprintf(tmp, "mkdir -p %s", bkpinfo->scratchdir); 280 280 paranoid_system(tmp); 281 if (bkpinfo->nfs_mount[0] != '\0') {282 store_nfs_config(bkpinfo);283 }284 281 paranoid_free(tmp); 285 282 return (retval); -
branches/2.2.2/mondo/src/mondorestore/mondo-restore.c
r1053 r1236 1 1 /*************************************************************************** 2 mondo-restore.c - restores mondoarchive data 3 ------------------- 4 begin : Fri May 19 2000 5 copyright : (C) 2000 by Hugo Rabson 6 email : Hugo Rabson <hugorabson@msn.com> 7 cvsid : $Id$ 2 $Id$ 3 restores mondoarchive data 8 4 ***************************************************************************/ 9 10 /***************************************************************************11 * *12 * This program is free software; you can redistribute it and/or modify *13 * it under the terms of the GNU General Public License as published by *14 * the Free Software Foundation; either version 2 of the License, or *15 * (at your option) any later version. *16 * *17 ***************************************************************************/18 19 /***************************************************************************20 * Change Log *21 ***************************************************************************22 .23 24 25 07/2626 - workaround - if not /dev then don't call partimagehack27 28 07/2129 - if switch to Interactive Mode during nuke then don't nuke twice :) just once30 31 07/1832 - better support of users who boot from LVM CD and nuke-restore non-LVM backups33 34 07/1035 - when using 'star', exclude all 'not removed.' messages from log (misleading, they are)36 - try w/ ACLs, then w/o ACLs if star fails w/ ACLs37 - added ACL, xattr support for afio38 39 06/2640 - remove make_relevant_partition_bootable(); roll into mondo-prep.c41 - changed various newtDrawRootText() calls to use g_noof_rows instead of42 integers43 44 06/1945 - don't try to access biggiestruct before it is populated w/ data relating46 to biggiefile; instead, use control char to find out if biggiefile is47 to be restored w/ partimagehack or not48 - added AUX_VER49 50 06/1551 - read_cfg_file_into_bkpinfo() --- use user-supplied 'isodir' instead of52 archive's 'isodir' if different53 Conor Daly <conor.daly@met.ie>54 55 06/1756 - restore with partimagehack if NTFS device; dd, if non-NTFS device57 58 06/1459 - unmount all; remount, run grub-mr; unmount again60 61 04/0962 - fixed subset restoration bug introduced when I added 'star' support63 64 04/0465 - cleaned up restore_a_tarball_from_stream()66 67 04/0368 - added star support69 - pause for 3s between partitioning and formatting (if in Nuke Mode)70 71 03/2872 - check that g_mountlist_fname was correcfly set; abort if it wasn't73 74 03/2575 - removed dev_null code76 77 03/22/0478 - added mode_of_file()79 - added code to check for unauthorised modification of /dev/null80 by afio (for instance)81 82 12/27/0383 - check /tmp/cmdline instead of /proc/cmdline if on FreeBSD84 85 11/1586 - added g_fprep87 - "Switch to interactive mode?" msg is now more informative88 89 11/0590 - after 'Are you sure?' when user specifies / as restore path, set91 restore_path[] to "" so that files are restored to [blank]/file/name :)92 93 10/2994 - moved "No restoring or comparing will take place today" block95 up to before iso_fiddly_bits (if iso) is called - fix bug96 if you're in ISO Mode and you say "exit to shell"97 98 10/2299 - swapped calls to chmod() and chown() after restoration100 of big files (Jens)101 102 10/21103 - changed "/mnt/cdrom" to MNT_CDROM104 105 10/19106 - restore biggiefiles selectively from CD properly107 - use find_my_editor() to find pico/vi/whatever108 - better use of call_program_and_get_last_line_of_output() to109 scan /proc/cmdline110 111 10/18112 - don't report 'missing compressor' if no compressor used at all113 114 10/14115 - log afio's error messages to /var/log/mondo-archive.log116 when restoring :)117 - call vi if pico is not available118 119 10/09120 - better logging if fatal error (cannot openout bigfile)121 - better GUI feedback when restoring big files122 - restore_everything() now uses s_node* instead of char*123 - ditto restore_all_*_from_*()124 125 10/02126 - succinct msg instead of pop-ups, if used -H127 128 09/27129 - tweaked restore-time gui130 131 09/26132 - proper reporting of DVD/CDR/etc. type in displayed dialogs133 134 09/23135 - malloc/free global strings in new subroutines - malloc_libmondo_global_strings()136 and free_libmondo_global_strings() - which are in libmondo-tools.c137 138 09/21139 - trying to fix "mondorestore <no params>" segfault140 141 09/18142 - better remounting of /143 - cleaned up run_grub()144 - sensible command-line handling in Live Mode145 146 09/17147 - cleaned up GRUB installer script a bit148 149 09/15150 - remount / as r/w if in disaster recovery mode;151 helps for b0rken distros152 153 09/13154 - major NTFS hackage155 156 09/12157 - changed some in-sub var decl'ns to malloc()'s158 159 09/05160 - don't let me run unless I'm root161 - finished NTFS/partimagehack support (CD only); working on tape now162 163 09/01164 - fixed cosmetic bug in biggiefile restore window165 166 06/01 - 08/31167 - added code to main() to make sure NFS168 (backup) share is mounted in Nuke and Compare Modes169 - added code to run_grub() to mount /boot before running grub-install170 - fixed some stray assert()'s in restore_a_biggiefile_from_stream()171 - fixed bugs in extract_config_file_from_ramdisk()172 and get_cfg_file_from_archive() which173 stopped fape+floppy users from being able to174 boot from floppy and leave floppy in drive :)175 - added hooks to partimage for doing imagedevs176 - fixed calls to popup_and_get_string()177 178 05/01 - 05/31179 - fixed biggiefile atime/utime dates restoration bug, I think180 - added misc clean-up (Steve Hindle)181 - fixed support for subdir-within-NFS-mount182 - if nuke mode fails & user reverts to interactive mode _and succeeds_,183 don't claim nuke mode aborted :)184 - unmount_all_devices() uses mountlist->el[lino].mountpt185 instead of mountlist->el[lino].device where possible186 - added Joshua Oreman's FreeBSD patches187 - copied missing paragraph from 1.6x's read_cfg_file_into_bkpinfo()188 to 1.7x's; affected tape streamer users (badly!)189 - cleaned up some paranoid assert()'s190 - use which("post-nuke") instead of find_home_of_exe("post-nuke")191 - fixed "Don't eject while restoring" mode192 - get_cfg_file_from_archive() --- also recovers mountlist.txt now :)193 - don't eject if 'donteject' is in kernel's command line194 - added 'don't panic' msg to start of log195 196 04/01 - 04/30197 - added text mode (cat /proc/cmdline; if textonly then text mode is on)198 - delete /var/lock/subsys/ * when nuking199 - don't resize mountlist if "noresize" present in /proc/cmdline200 - changed from chmod -R 1777 tmp to chmod 1777 tmp201 - replace newtFinished() and newtInit() with202 newtSuspend() and newtResume()203 - get_cfg_file_from_archive() returns 1 instead of aborting now204 - read_cfg_file_into_bkpinfo) --- if autorun CD but its config205 file indicates a non-CD backup media then ask, just in case206 - sped up restore_a_tarball_from_CD() a bit207 - line 4469 --- if post-nuke not found then don't run it :)208 - replaced "/mnt/RESTORING" with MNT_RESTORING (#define'd)209 - moved compare_*() into mondorestore/mondo-rstr-compare.c210 - moved some RAID subroutines into common/libmondo-raid.c211 - fixed some iso live compare problems212 - replaced FILELIST_FULL with g_filelist_full and FILELIST_FULL_STUB;213 g_filelist_full being the full path of the filelist.full text file and214 FILELIST_FULL_STUB being "tmp/filelist.full" (relative path);215 - ditto BIGGIELIST_TXT, MONDO_CFG_FILE216 - added lots of assert()'s and log_OS_error()'s217 - in Nuke Mode, check mountlist's sanity before doing anything else;218 if it fails sanity test, offer to revert to Interactive Mode (or abort)219 - copy log to /mnt/RESTORING/root at end220 - read_cfg_file_into_bkpinfo() --- read iso-dev and isodir if bkptype==iso221 - line 1701 --- delete ramdisk file after extracting config info222 - moved call to make_relevant_partitions_bootable() from223 within run_boot_loader() to within interactive_mode() and224 nuke_mode(), after unmounting disks225 - if editing fstab or *.conf, try to use pico if available226 - better calling of make-me-bootable227 - don't sort mountlist anywhere anymore except _locally_ in228 mount_all_devices() and unmount_all_devices()229 - edit fstab, grub.conf _after_ stabgrub-me if it fails230 - run_boot_loader() --- backup all crucial files to /etc/ *.pristine first231 - added iso_fiddly_bits()232 - fixed ISO mode support233 - mount_cdrom() only searches for device if NOT in disaster recovery mode234 - changed lost of system()'s into run_program_and_log_output()'s235 - don't eject if bkpinfo->please_dont_eject_when_restoring236 - cleaned up post-nuke handling code237 - always eject CD at end, unless bkpinfo->please_dont_...238 - misc clean-up (Tom Mortell)239 - afio uses -c (1024L*1024L)/TAPE_BLOCK_SIZE now240 instead of -c 1024241 242 01/01 - 03/31/2003243 - commented out sort_... line (BB)244 - clean-up (Stan Benoit)245 - added code for LVM and SW Raid (Brian Borgeson)246 - line 814 - added -p to 'mkdir -p tmp'247 - mount_cdrom() - calls find_cdrom_device() if248 bkpinfo->media_device is blank (to fill it)249 250 11/01 - 12/31/2002251 - mount_cdrom() better at handling multiple CD drives252 - minor clean-up in restore_a_tarball_from_CD()253 - if --live-from-cd then assume restoring live from CD254 - tweaked it to run better w/ ArkLinux255 - create /mnt/RESTORING/mnt/.boot.d for Gentoo users256 after restoring257 - cleaned up iso_mode(); no longer asks for NFS info 3 times258 - mount_cdrom() was trying to mount /mnt/isodir/%s/%d.iso;259 is now just %s/%d.iso260 - mount/unmount /boot if necessary (Gentoo)261 - added RAW MBR support; added run_raw_mbr() for the purpose262 - unmount & remount supermounts at start/end of live restore263 - copy /tmp/mountlist.txt to /tmp/mountlist.txt.orig at start264 - cleaned up string-handling in get_cfg_info_from_archives()265 - fixed run_grub() to call new stabgrub-me script266 - popup list of changed files after Compare Mode267 - permit mondorestore --edit-mountlist even if live mode268 - create a repaired copy of grub-install which is RAID-friendly;269 use it when initializing boot sector with run_grub()270 - use grub-MR instead of grub-install271 - fixed read_cfg_file_into_bkpinfo() to ignore cfg file's backup_media_type272 if user has already specified a backup media type interactively273 274 10/01 - 10/31275 - run_grub() will let you specify the boot device as well as edit the system276 files, if grub-install fails277 - fixed bug in fwrite() call in restore_biggiefile_from_CD()278 - fixed bug affecting restoration of bigfiles from CD's w/0 compression279 - run_grub() will run 'grub-install {boot device}' instead of280 'grub-install (hd0)'281 282 09/01 - 09/30283 - use /tmp/tmpfs/mondo.tmp instead of /tmp/mondo.tmp284 - initialize MOUNTLIST_FNAME at start of main()285 - differential-related cleanup286 - better handling of CD-ROM drives which aren't /dev/cdrom :)287 - run_program_and_log_output() now takes boolean operator to specify288 whether it will log its activities in the event of _success_289 - always load config file from archive before operating on it290 - moved some subroutines around; now closer to alphabetical order291 - changed mount.mindi to mount.bootisk292 - mount disks readonly if in Compare Mode293 - set /dev/null's permissions to 777, just in case it somehow gets mangled294 ...which apparently happen with some devfs-based Linux distributions295 - remove /var/run/ *.pid after restoring296 - move spurious lockfiles from /home/ * to /home/ * /.disabled297 - if Interactive Mode then ask user which media, etc. (i.e. catchall mode298 is now same as Interactive Mode)299 300 08/01 - 08/30301 - use data structure to store the fname, checksum, mods & perms of each bigfile302 ... biggiestruct :)303 - if a filelist is tiny (2 bytes or less) then ignore it304 - insist_on_this_cd_number() --- now takes 2 params, not 1305 - re-enabled 'g_current_media_number = 1' in restore_everything()306 - added same to compare_mode()307 - replaced lots of global char[]'s with malloc()'s308 - if differential backup then don't permit formatting or fdisking,309 whether Interactive or Nuke mode310 - added call to register_pid() at start of main()311 - if Nuke Mode & it succeeds then ask user if they have contributed yet312 - changed tape-size to media-size (config file)313 - changed using_* to backup_media_type314 - changed *_from_tape to *_from_stream315 316 07/01 - 07/31317 - added find_and_mount_actual_cdrom()318 - temp dir is always random319 - skip tarballs if they don't contain files we're looking for320 (used to read the whole thing & _then_ skip)321 - use media_size[1] instead of media_size[0]322 - fixed serious bug in line 1546 - should have been !=, not ==; stopped323 mondorestore from correctly restoring big files324 - bigfile piping enhancements (Philippe de Muyter)325 - unmount CD-ROM after restoring from live filesystem326 - TAPE_BLOCK_SIZE treated as %ld, not %d327 328 06/01 - 06/30329 - added signal-trapping330 - disabled 'nr-failed-disks' flag331 - fixed problem w/selective restore332 - don't change /tmp's permissions unless it doesn't exist & must be created333 - fixed bug in --mbr334 - is_file_in_list() enhanced to exclude /mnt/RESTORING or whatever335 - added support for uncompressed archives336 - --monitas-live now accepts path-to-restore_to_, not just path to restore337 - added some debugging/tracking code to the NFS section338 - various monitas-related enhancements339 - added --isonuke and --mbr switches340 - better logging in run_grub()341 - improved --monitas-live342 - mkdir -p /mnt/RESTORING/var/run/console just in case user excludes it343 - afio now uses 16MB buffer instead of 8MB344 - always use bkpinfo->media_size[0], now that -s has been expanded345 - popup and ask where to restore data, if restoring selectively346 347 05/01 - 05/31348 - add '--monitas' flag349 - don't run chmod -R 1777 /mnt/RESTORING/tmp before unmounting unless350 restoring at the time...351 352 04/01 - 04/30353 - delete old /tmp/filelist.full,biggielist.txt if found when restoring to354 live filesystem355 - replace MONDO_VERSION #define with VERSION from ../config.h356 - write fname of bigfile to screen when having trouble reading/comparing it357 - if restoring to live filesystem then wipe /tmp/tmpfs/ * afterwards358 - removed spurious finish(0) from main()359 360 03/01 - 03/31/2002361 - if /tmp/m*ndo-restore.cfg not found then assume live restore; restore362 to / instead of /mnt/RESTORING363 - clean up is_file_in_list() to deal with the /mnt/RESTORING/ prefix364 - exclude leading '/' from filelist.restore-these365 - if /tmp/fstab.new exists then use _it_ instead of /tmp/fstab to label366 ext2 or ext3 partitions367 - improved logging368 369 [...]370 371 07/10/2001 --- first incarnation372 */373 374 5 375 6 /** … … 2578 2209 current_tarball_number); 2579 2210 if (!does_file_exist(tarball_fname)) { 2211 sprintf(tarball_fname, MNT_CDROM "/archives/%ld.afio.gz", 2212 current_tarball_number); 2213 } 2214 if (!does_file_exist(tarball_fname)) { 2580 2215 sprintf(tarball_fname, MNT_CDROM "/archives/%ld.afio.lzo", 2581 2216 current_tarball_number); -
branches/2.2.2/tools/DISTROS
r1011 r1236 18 18 gentoo_1.6 19 19 slackware_10.2 20 slackware_11.0 -
branches/2.2.2/tools/build2pkg
r1038 r1236 11 11 dname=`dirname $0` 12 12 prem=`echo $dname |cut -c1` 13 if [ ${prem} =="/" ]; then13 if [ _${prem} = _"/" ]; then 14 14 export TOOLHOME=$dname 15 15 else … … 125 125 export pkg="$pkg $p-${PVER}.deb" 126 126 # Et voila ! 127 elif [ _"$dtype" = _"freebsd" ]; then 127 elif [ _"$dtype" = _"port" ]; then 128 cd $TOPBUILDDIR 129 tar xfz $src 130 cd ${p}-${PVER} 131 mv distributions/${ddir}-$dver/* $TOPBUILDDIR 132 cd .. 133 rm -rf ${p}-${PVER} 134 make DISTDIR=$TOPBUILDDIR 128 135 elif [ _"$dfam" = _"slackware" ]; then 129 136 mkdir -p $TOPBUILDDIR/build-${p}/install -
branches/2.2.2/tools/distro-env
r1038 r1236 29 29 elif grep -q CentOS /etc/redhat-release ; then 30 30 export ddir="centos" 31 export dver=`awk '{print $3}' /etc/redhat-release `31 export dver=`awk '{print $3}' /etc/redhat-release | cut -d. -f1` 32 32 else 33 33 export ddir="redhat" … … 64 64 export dver = "sid" 65 65 fi 66 elif [ -e /etc/motd && grep -q FreeBSD /etc/motd ]; then 67 export ddir="freebsd" 68 export dver=`awk '{print $2}' /etc/motd | cut -d- -f1` 66 elif [ -e /etc/motd ]; then 67 head -1 /etc/motd | grep -q FreeBSD 68 if [ $? -eq 0 ]; then 69 export ddir="freebsd" 70 export dver=`head -1 /etc/motd | awk '{print $2}' /etc/motd | cut -d- -f1` 71 else 72 export ddir="unknown" 73 export dver="" 74 fi 69 75 else 70 76 export ddir="unknown" … … 148 154 elif [ _"$dtype" = _"deb" ]; then 149 155 mkdir -p ${TOPBUILDDIR} 156 elif [ _"$dtype" = _"port" ]; then 157 mkdir -p ${TOPBUILDDIR} 150 158 elif [ _"$dfam" = _"slackware" ]; then 151 159 mkdir -p ${TOPBUILDDIR}/install -
branches/2.2.2/tools/svn2build
r1038 r1236 22 22 TAG=`cat ${TOOLHOME}/../mondo/TAG` 23 23 DEST=${TOPDIR}/${VER}-$TAG 24 TEST="false" 25 OPT="" 24 26 mkdir -p $DEST 25 27 28 if [ "$1" = "--test" ]; then 29 TEST="true" 30 OPT="-r BASE" 31 shift 32 fi 33 26 34 if [ "$1" = "" ]; then 27 35 c="mondo-doc mindi mindi-busybox mondo" 28 36 else 29 37 if [ "$1" = "all" ]; then … … 43 51 dest="$DEST/$p-$v" 44 52 rm -fr $dest 45 svn export ${TOOLHOME}/../$p $dest53 svn $OPT export ${TOOLHOME}/../$p $dest 46 54 echo "$REVISION" > $dest/REVISION 47 55 echo "Generating SVN log file ..." 48 svn log -v ${TOOLHOME}/../$p > $dest/svn.log56 svn $OPT log -v ${TOOLHOME}/../$p > $dest/svn.log 49 57 50 58 for d in `cat ${TOOLHOME}/DISTROS`; do … … 72 80 exit -1 73 81 fi 74 echo "Using $inc customization to build SPEC file"75 82 76 83 $TOOLHOME/mkchangelog.pl $dtype $p $MONDOTMP/$p.spec … … 148 155 echo -n "Creating $p tar files (gzip... " 149 156 tar cfphz ${DEST}/$p-$v.tar.gz $p-$v 150 echo -n " bzip2..." 151 tar cfphj ${DEST}/$p-$v.tar.bz2 $p-$v 157 if [ $TEST = "false" ]; then 158 echo -n " bzip2..." 159 tar cfphj ${DEST}/$p-$v.tar.bz2 $p-$v 160 fi 152 161 echo " )" 162 if [ $TEST = "true" ]; then 163 echo "Use source under $DEST/$p-$v" 164 fi 153 165 done 154 166
Note:
See TracChangeset
for help on using the changeset viewer.