Changeset 2850 in MondoRescue for branches/2.2.10/mondo/src/mondorestore/mondorestore.c
- Timestamp:
- Jul 24, 2011, 4:12:44 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.10/mondo/src/mondorestore/mondorestore.c
r2816 r2850 838 838 "Using tune2fs to identify your ext2,3 partitions"); 839 839 840 mr_asprintf(tmp, "label-partitions-as-necessary %s < /tmp/fstab >> %s 2>> %s", g_mountlist_fname, fstab_fname,MONDO_LOGFILE, MONDO_LOGFILE);840 mr_asprintf(tmp, "label-partitions-as-necessary %s < /tmp/fstab >> %s 2>> %s", g_mountlist_fname, MONDO_LOGFILE, MONDO_LOGFILE); 841 841 res = run_program_and_log_output(tmp, TRUE); 842 842 mr_free(tmp); … … 2046 2046 2047 2047 mvaddstr_and_log_it(g_currentY, 0, "Restoring from archives"); 2048 log_msg(2, "Insisting on 1st CD");2048 log_msg(2, "Insisting on 1st media, so that I can have a look at LAST-FILELIST-NUMBER"); 2049 2049 if (g_current_media_number != 1) { 2050 2050 log_msg(3, "OK, that's jacked up."); … … 2136 2136 } 2137 2137 mr_free(tarball_fname); 2138 2139 /* Now we need to umount the current media to have the next mounted by insist_on_this_cd_number */ 2140 run_program_and_log_output("umount " MNT_CDROM, FALSE); 2138 2141 } 2139 2142 mr_free(mds); … … 2817 2820 run_program_and_log_output("mkdir -p /tmp/isodir", 5); 2818 2821 if (strstr(bkpinfo->netfs_proto, "sshfs")) { 2819 mr_asprintf(tmp, "sshfs -o ro %s /tmp/isodir", bkpinfo->netfs_mount); 2822 if (bkpinfo->netfs_user) { 2823 mr_asprintf(tmp, "sshfs -o ro %s@%s /tmp/isodir", bkpinfo->netfs_user,bkpinfo->netfs_mount); 2824 } else { 2825 mr_asprintf(tmp, "sshfs -o ro %s /tmp/isodir", bkpinfo->netfs_mount); 2826 } 2820 2827 } else { 2821 mr_asprintf(tmp, "mount %s -o nolock,ro /tmp/isodir", bkpinfo->netfs_mount); 2828 if (bkpinfo->netfs_user) { 2829 mr_asprintf(tmp, "mount %s@%s -o nolock,ro /tmp/isodir", bkpinfo->netfs_user,bkpinfo->netfs_mount); 2830 } else { 2831 mr_asprintf(tmp, "mount %s -o nolock,ro /tmp/isodir", bkpinfo->netfs_mount); 2832 } 2822 2833 } 2823 2834 run_program_and_log_output(tmp, 1);
Note:
See TracChangeset
for help on using the changeset viewer.