- Timestamp:
- Oct 4, 2006, 3:35:47 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mondo/mondo/mondorestore/mondo-rstr-tools.c
r871 r873 975 975 char *value = NULL; 976 976 char *tmp = NULL; 977 char *tmp1 = NULL; 977 char *envtmp1 = NULL; 978 char *envtmp2 = NULL; 978 979 char *command = NULL; 979 980 char *iso_mnt = NULL; … … 1047 1048 /* We need to override prefix value in PXE mode as it's 1048 1049 * already done in start-nfs */ 1049 tmp= getenv("imgname");1050 if ( tmp== NULL) {1050 envtmp1 = getenv("imgname"); 1051 if (envtmp1 == NULL) { 1051 1052 fatal_error("no imgname variable in environment"); 1052 1053 } 1053 1054 if (strstr(call_program_and_get_last_line_of_output 1054 1055 ("cat /proc/cmdline"), "pxe")) { 1055 strcpy(bkpinfo->prefix, tmp);1056 strcpy(bkpinfo->prefix,envtmp1); 1056 1057 } 1057 1058 … … 1165 1166 /* We need to override values in PXE mode as it's 1166 1167 * already done in start-nfs */ 1167 tmp= getenv("nfsmount");1168 if ( tmp== NULL) {1168 envtmp1 = getenv("nfsmount"); 1169 if (envtmp1 == NULL) { 1169 1170 fatal_error("no nfsmount variable in environment"); 1170 1171 } 1171 tmp1= getenv("dirimg");1172 if ( tmp1== NULL) {1172 envtmp2 = getenv("dirimg"); 1173 if (envtmp2 == NULL) { 1173 1174 fatal_error("no dirimg variable in environment"); 1174 1175 } 1175 1176 if (strstr(call_program_and_get_last_line_of_output 1176 1177 ("cat /proc/cmdline"), "pxe")) { 1177 strcpy(bkpinfo->nfs_mount, tmp);1178 strcpy(bkpinfo->nfs_remote_dir, tmp1);1178 strcpy(bkpinfo->nfs_mount,envtmp1); 1179 strcpy(bkpinfo->nfs_remote_dir,envtmp2); 1179 1180 } 1180 1181 } else if (bkpinfo->backup_media_type == iso) {
Note:
See TracChangeset
for help on using the changeset viewer.