Changeset 1842 in MondoRescue for branches/stable/mondo/src/common/libmondo-tools.c
- Timestamp:
- Dec 15, 2007, 2:24:34 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mondo/src/common/libmondo-tools.c
r1817 r1842 1105 1105 if (tmp[0]) { 1106 1106 log_it("/boot is at %s according to /etc/fstab", tmp); 1107 if ((strstr(tmp, "LABEL=") || strstr(tmp,"UUID="))) { 1108 if (!run_program_and_log_output("mount /boot", 5)) { 1109 strcpy(g_boot_mountpt, "/boot"); 1110 mr_msg(1, "Mounted /boot"); 1107 mr_asprintf(&command, "mount | grep -Ew '/boot'"); 1108 mr_asprintf(&tmp1, call_program_and_get_last_line_of_output(command)); 1109 mr_free(command); 1110 if (!strcmp(tmp1,"")) { 1111 if ((strstr(tmp1, "LABEL=") || strstr(tmp1,"UUID="))) { 1112 if (!run_program_and_log_output("mount /boot", 5)) { 1113 strcpy(g_boot_mountpt, "/boot"); 1114 log_msg(1, "Mounted /boot"); 1115 } 1111 1116 } else { 1112 1117 log_it("...ignored cos it's a label or uuid :-)"); 1113 1118 } 1119 mr_free(tmp1); 1114 1120 } else { 1121 mr_free(tmp1); 1115 1122 mr_asprintf(&command, "mount | grep -E '^%s'", tmp); 1116 1123 mr_msg(3, "command = %s", command); … … 1133 1140 mr_msg(1, 1134 1141 "Plan B failed. Unable to mount /boot for backup purposes. This probably means /boot is mounted already, or doesn't have its own partition."); 1142 } 1135 1143 } 1136 1144 }
Note:
See TracChangeset
for help on using the changeset viewer.