Changeset 2405 in MondoRescue for branches/2.2.10/mondo/src/mondorestore/mondo-prep.c
- Timestamp:
- Sep 17, 2009, 3:45:24 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.10/mondo/src/mondorestore/mondo-prep.c
r2383 r2405 61 61 { 62 62 char *command = NULL; 63 char *tmp;64 63 int lino; 65 64 int i; … … 72 71 // If LVMs are present and a zero-and-reboot wasn't recently undertaken 73 72 // then zero & insist on reboot. 74 malloc_string(tmp);75 73 buf = malloc(blocksize); 76 74 if (does_file_exist("/tmp/i-want-my-lvm")) // FIXME - cheating :) … … 91 89 if (lino == drivelist->entries) { 92 90 // zero & reboot 93 log_to_screen 94 ("I am sorry for the inconvenience but I must ask you to reboot."); 95 log_to_screen 96 ("I need to reset the Master Boot Record; in order to be"); 97 log_to_screen 98 ("sure the kernel notices, I must reboot after doing it."); 91 log_to_screen("I am sorry for the inconvenience but I must ask you to reboot."); 92 log_to_screen("I need to reset the Master Boot Record; in order to be"); 93 log_to_screen("sure the kernel notices, I must reboot after doing it."); 99 94 log_to_screen("Please hit 'Enter' to reboot."); 100 95 for (lino = 0; lino < drivelist->entries; lino++) { … … 127 122 } 128 123 // Still here? Cool! 129 paranoid_free(tmp);130 124 log_msg(1, "Cool. I didn't have to wipe anything."); 131 125 }
Note:
See TracChangeset
for help on using the changeset viewer.