Changeset 2623 in MondoRescue for branches/2.2.10/mondo/src/mondorestore/mondo-prep.c
- Timestamp:
- Apr 12, 2010, 3:23:24 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.10/mondo/src/mondorestore/mondo-prep.c
r2603 r2623 35 35 //static char cvsid[] = "$Id$"; 36 36 37 extern char *g_mountlist_fname;38 37 extern long g_current_progress, g_maximum_progress; 39 38 … … 72 71 // then zero & insist on reboot. 73 72 buf = malloc(blocksize); 74 if (does_file_exist( "/tmp/i-want-my-lvm")) // FIXME - cheating :)73 if (does_file_exist(MINDI_CACHE"/i-want-my-lvm")) // FIXME - cheating :) 75 74 { 76 75 drivelist = malloc(sizeof(struct list_of_disks)); … … 172 171 */ 173 172 /** 174 * Execute the commands in /tmp/i-want-my-lvm.173 * Execute the commands in MINDI_CACHE"i-want-my-lvm. 175 174 * These should probably be commands to set up LVM. 176 175 * @return The number of errors encountered (0 for success). … … 221 220 mr_free(tmp); 222 221 223 if (!(fin = fopen( "/tmp/i-want-my-lvm", "r"))) {224 log_OS_error( "/tmp/i-want-my-lvm");222 if (!(fin = fopen(MINDI_CACHE"/i-want-my-lvm", "r"))) { 223 log_OS_error(MINDI_CACHE"/i-want-my-lvm"); 225 224 return (1); 226 225 } … … 937 936 // do LVMs now 938 937 log_msg(1, "Creating LVMs"); 939 if (does_file_exist( "/tmp/i-want-my-lvm")) {938 if (does_file_exist(MINDI_CACHE"/i-want-my-lvm")) { 940 939 wait_until_software_raids_are_prepped("/proc/mdstat", 100); 941 940 log_to_screen("Configuring LVM"); … … 1861 1860 log_msg(0, "Done."); 1862 1861 1863 /*1864 if (does_file_exist("/tmp/i-want-my-lvm"))1865 {1866 wipe_MBRs_and_reboot_if_necessary(mountlist); // i.e. if it wasn't done recently1867 }1868 */1869 1870 1862 open_progress_form("Partitioning devices", 1871 1863 "I am now going to partition all your drives.", … … 2425 2417 assert(mountlist != NULL); 2426 2418 2427 if (g_mountlist_fname[0] == '\0') {2428 log_it2429 ("resize_mountlist_prop...() - warning - mountlist fname is blank");2430 log_it("That does NOT affect the functioning of this subroutine.");2431 log_it("--- Hugo, 2002/11/20");2432 }2433 2419 log_it("Resizing mountlist"); 2434 2420 make_list_of_drives_in_mountlist(mountlist, drivelist);
Note:
See TracChangeset
for help on using the changeset viewer.