Changeset 2331 in MondoRescue for branches/2.2.10/mondo/src/mondorestore/mondo-prep.c
- Timestamp:
- Aug 18, 2009, 3:25:29 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.10/mondo/src/mondorestore/mondo-prep.c
r2330 r2331 240 240 log_it("STARTING"); 241 241 log_msg(1, "OK, opened i-want-my-lvm. Shutting down LVM volumes..."); 242 if (find_home_of_exe("lvm")) // found it :) cool 242 tmp1 = find_home_of_exe("lvm"); 243 if (tmp1) // found it :) cool 243 244 { 244 245 strcpy(lvscan_sz, "lvm lvscan"); … … 258 259 strcpy(vgremove_sz, "vgremove"); 259 260 } 261 mr_free(tmp1); 262 260 263 mr_asprintf(tmp1, "for i in `%s | cut -d\"'\" -f2 | sort -r` ; do echo \"Shutting down lv $i\" >> %s ; %s -f $i; done", lvscan_sz, MONDO_LOGFILE, lvremove_sz); 261 264 run_program_and_log_output(tmp1, 5);
Note:
See TracChangeset
for help on using the changeset viewer.