Changeset 1842 in MondoRescue for branches/stable/mondo/src/common
- Timestamp:
- Dec 15, 2007, 2:24:34 AM (16 years ago)
- Location:
- branches/stable/mondo/src/common
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mondo/src/common/libmondo-devices.c
r1817 r1842 1871 1871 mr_asprintf(&tmp, "mount -t nfs -o nolock %s %s", bkpinfo->nfs_mount, 1872 1872 bkpinfo->isodir); 1873 run_program_and_log_output(tmp, 5);1873 run_program_and_log_output(tmp, 3); 1874 1874 mr_free(tmp); 1875 1875 malloc_string(g_selfmounted_isodir); -
branches/stable/mondo/src/common/libmondo-files.c
r1769 r1842 1107 1107 * networking will not start during an NFS restore. 1108 1108 * 1109 * If the NFS device in nfs_dev begins with the word "bond", 1109 * If the NFS device in nfs_dev begins with the word "bond", or alb or aft 1110 1110 * look for the corresponding slave ethN device and copy it to nfs_dev. 1111 1111 * Using the common MAC address 1112 1112 ********/ 1113 if (!strncmp(nfs_dev, "bond", 4) ) {1113 if (!strncmp(nfs_dev, "bond", 4) || !strncmp(nfs_dev, "alb", 3) || !strncmp(nfs_dev, "aft", 3)) { 1114 1114 log_to_screen("Found bonding device %s; looking for corresponding ethN slave device\n", nfs_dev); 1115 1115 mr_asprintf(&command, -
branches/stable/mondo/src/common/libmondo-fork.c
r1693 r1842 19 19 //static char cvsid[] = "$Id$"; 20 20 21 extern char *g_tmpfs_mountpt;22 21 extern t_bkptype g_backup_media_type; 23 22 extern bool g_text_mode; -
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.