Changeset 1922 in MondoRescue for branches/2.2.6/mondo/src/common
- Timestamp:
- Apr 17, 2008, 12:32:36 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.6/mondo/src/common/libmondo-tools.c
r1919 r1922 1 1 /* libmondo-tools.c misc tools 2 2 $Id$ 3 .4 5 6 06/287 - abort if RAID partitions found but /etc/raidtab not found8 9 06/2510 - don't insist on ms-sys; recommend it11 - don't fatal_error if can't open log file12 13 06/1414 - call mindi -V before calling mindi --makemountlist15 16 04/0917 - lots of malloc'd char*'s instead of char[]'s in post_param_config'n18 19 04/0220 - better sanity-checking, re: /etc/modules.conf21 22 02/1523 - abort if Windows dir but no ms-sys or parted24 25 02/0826 - missing ramdisk/initrd support is nonfatal now (but stupid)27 28 01/1629 - added g_kernel_version and get_kernel_version()30 31 01/08/200432 - fixed /boot mounter thingy33 34 11/14/200335 - if <50MB free in /root, softlink /root/images/mindi to36 /home/root/images/mindi as a workaround37 38 10/2339 - streaming backups now generate 4MB sets; CDs, 8MB sets40 41 10/2142 - better at finding your /boot in order to mount it, if nec.43 - link /etc/modules.conf to /etc/conf.modules if former44 is missing but latter is not45 - changed "/mnt/cdrom" to MNT_CDROM46 - changed "/mnt/floppy" to MNT_FLOPPY47 48 10/1349 - added stop_magicdev_if_necessary()50 - added restart_magicdev_if_necessary()51 52 10/0253 - don't eject if bkpinfo->please_dont_eject is TRUE54 55 09/2856 - fixed segfault in mount_..._necessary57 58 09/2659 - ask for cmp (or create workaround if possible)60 61 09/2562 - add DVD support63 64 09/2465 - don't overwrite existing media-dev value in bkpinfo IF it's66 a tape device AND it's already populated by /dev/{something}67 ...This helps w/ weird tape drives68 69 09/2370 - malloc/free global strings in new subroutines - malloc_libmondo_global_strings()71 and free_libmondo_global_strings() - which are in libmondo-tools.c72 73 09/1874 - added stop_autofs_if_necessary() and restart_autofs_if_necessary()75 76 09/1377 - added log_debug_msg()78 - turned log_it() into a macro79 80 09/1081 - reduced PPCFG_RAMDISK to 150m (was 200m)82 - max set size is now 8MB (was 6)83 - added 'buffer' to requisite tools84 85 08/2986 - typical set size is now 5MB87 88 07/2289 - increased PPCFG* to 200m90 91 05/0792 - changed grep -m1 to grep | head -n1 for Debian users93 - pre_param_...() also mkdir -p /mnt/cdrom, just in case94 95 05/0596 - cleaner logging of call to dd if=<tape> of=/dev/null97 - added Joshua Oreman's FreeBSD patches98 99 05/04100 - added Herman Kuster's multi-level bkp patch101 102 05/02103 - log_it() --- "Message repeated N times" (if it was)104 105 04/24106 - added lots of assert()'s and log_OS_error()'s107 - reset_bkpinfop() --- reset all media_size[] array108 - increased tmpfs ramdisk to size=100m109 110 04/22111 - post_param_configuration() --- store iso-dev and isodir112 113 04/05114 - re-enable tmpfs ramdisk/mountpt _but_ make sure size=80m115 - in post_param_configuration(), use cdrecord in preference116 to dvdrecord now117 118 03/27119 - disabled tmpfs ramdisk/mountpt120 121 01/02/2003122 - bkpinfo->makefilelist = TRUE123 124 12/10/2002125 - added g_loglevel126 - fixed minor bug in clean_up_KDE_desktop_if_necessary()127 - log versions of newt, slang, ncurses128 - isodir defaults to / if disaster recovery129 130 11/28131 - unmount all CD devices at start132 - added clean_up_KDE_desktop_if_necessary()133 134 11/20135 - don't use lilo.conf.anaconda; abort instead136 - mount/unmount /boot partition for Gentoo 1.2 users137 138 11/13139 - call mindi --makemountlist as part of testing sanity of distro140 141 11/08142 - added a couple of chmod 700's (one for scratchdir, one for tmpdir)143 to post_param_configuration()144 145 10/01 - 10/31146 - added checking of / and /root's free space to some_basic_sanity_checks()147 - moved some subroutines here from common/libmondo-archive148 149 09/01 - 09/30150 - don't write log_it()'s string to stdout, even if text mode151 - tell user the kernel is bad if it has no ramdisk support but allow152 it if they want to use the failsafe kernel for booting153 - run_program_and_log_output() now takes boolean operator to specify154 whether it will log its activities in the event of _success_155 - if mkfs.vfat not found but mkfs.msdos found then create a softlink156 from the former to the latter157 158 08/01 - 08/31159 - if /etc/lilo.conf not found not /etc/lilo.conf.anaconda found160 then create a softlink from the former to the latter, to work161 around RH7.3's b0rken LILO support162 - handle unknown media size163 164 07/27165 - created166 3 */ 167 4 … … 1100 937 * - make sure afio, cdrecord, mkisofs, bzip2, awk, md5sum, strings, mindi, and buffer exist 1101 938 * - make sure CD-ROM is unmounted 1102 * - make sure /etc/modules.conf exists1103 939 * - make sure user's mountlist is OK by running <tt>mindi --makemountlist</tt> 1104 940 * … … 1211 1047 } 1212 1048 } 1213 #ifndef __FreeBSD__1214 if (!does_file_exist("/etc/modules.conf")) {1215 if (does_file_exist("/etc/conf.modules")) {1216 log_it("Linking /etc/modules.conf to /etc/conf.modules");1217 run_program_and_log_output1218 ("ln -sf /etc/conf.modules /etc/modules.conf", 5);1219 } else if (does_file_exist("/etc/modprobe.d")) {1220 log_it1221 ("Directory /etc/modprobe.d found. mindi will use its contents.");1222 } else if (does_file_exist("/etc/modprobe.conf")) {1223 log_it("Linking /etc/modules.conf to /etc/modprobe.conf");1224 run_program_and_log_output1225 ("ln -sf /etc/modprobe.conf /etc/modules.conf", 5);1226 } else {1227 retval++;1228 log_to_screen1229 ("Please find out what happened to /etc/modules.conf");1230 }1231 }1232 #endif1233 1049 1234 1050 run_program_and_log_output("cat /etc/fstab", 5);
Note:
See TracChangeset
for help on using the changeset viewer.