Changeset 2878 in MondoRescue for branches/2.2.9/mondo/src/mondorestore
- Timestamp:
- Oct 5, 2011, 1:20:58 AM (14 years ago)
- Location:
- branches/2.2.9/mondo/src/mondorestore
- Files:
-
- 2 edited
-
mondo-rstr-tools.c (modified) (3 diffs)
-
mondorestore.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.9/mondo/src/mondorestore/mondo-rstr-tools.c
r2847 r2878 304 304 return (1); 305 305 } 306 paranoid_system("umount " MNT_CDROM " 2> /dev/null"); /* just in case */306 paranoid_system("umount -d " MNT_CDROM " 2> /dev/null"); /* just in case */ 307 307 308 308 if (is_this_device_mounted(g_isodir_device)) { … … 681 681 if (does_file_exist(MNT_CDROM "/archives/filelist.0")) { 682 682 bkpinfo->backup_media_type = cdr; 683 run_program_and_log_output("umount " MNT_CDROM, 1);683 run_program_and_log_output("umount -d " MNT_CDROM, 1); 684 684 log_it 685 685 ("Re-jigging configuration AGAIN. CD-R, not ISO."); … … 2254 2254 } 2255 2255 } 2256 run_program_and_log_output("umount " MNT_CDROM, FALSE);2256 run_program_and_log_output("umount -d " MNT_CDROM, FALSE); 2257 2257 if (!does_file_exist(cfg_file)) { 2258 2258 log_it("%s",cfg_file); -
branches/2.2.9/mondo/src/mondorestore/mondorestore.c
r2872 r2878 278 278 popup_and_OK("No restoring or comparing will take place today."); 279 279 if (is_this_device_mounted("/mnt/cdrom")) { 280 run_program_and_log_output("umount /mnt/cdrom", FALSE);280 run_program_and_log_output("umount -d /mnt/cdrom", FALSE); 281 281 } 282 282 if (g_ISO_restore_mode) { 283 sprintf(tmp, "umount %s", bkpinfo->isodir);283 sprintf(tmp, "umount -d %s", bkpinfo->isodir); 284 284 run_program_and_log_output(tmp, FALSE); 285 285 } … … 730 730 } 731 731 if (is_this_device_mounted(MNT_CDROM)) { 732 paranoid_system("umount " MNT_CDROM);732 paranoid_system("umount -d " MNT_CDROM); 733 733 } 734 734 // if (! already_mounted) 735 735 // { 736 if (system("umount /tmp/isodir 2> /dev/null")) {736 if (system("umount -d /tmp/isodir 2> /dev/null")) { 737 737 log_to_screen 738 738 ("WARNING - unable to unmount device where the ISO files are stored."); … … 1012 1012 "Tape : I don't need to unmount or eject the CD-ROM."); 1013 1013 } else { 1014 run_program_and_log_output("umount " MNT_CDROM, FALSE);1014 run_program_and_log_output("umount -d " MNT_CDROM, FALSE); 1015 1015 if (!bkpinfo->please_dont_eject) { 1016 1016 eject_device(bkpinfo->media_device); 1017 1017 } 1018 1018 } 1019 run_program_and_log_output("umount " MNT_CDROM, FALSE);1019 run_program_and_log_output("umount -d " MNT_CDROM, FALSE); 1020 1020 if (!bkpinfo->please_dont_eject) { 1021 1021 eject_device(bkpinfo->media_device); … … 2914 2914 make_hole_for_dir("/var/log"); 2915 2915 make_hole_for_dir("/tmp/tmpfs"); /* just in case... */ 2916 run_program_and_log_output("umount " MNT_CDROM, FALSE);2916 run_program_and_log_output("umount -d " MNT_CDROM, FALSE); 2917 2917 /* 2918 2918 run_program_and_log_output("ln -sf /var/log/mondo-archive.log /tmp/mondorestore.log", … … 3205 3205 run_program_and_log_output("sync", FALSE); 3206 3206 if (is_this_device_mounted(MNT_CDROM)) { 3207 run_program_and_log_output("umount " MNT_CDROM, FALSE);3207 run_program_and_log_output("umount -d " MNT_CDROM, FALSE); 3208 3208 } 3209 3209 … … 3265 3265 retval); 3266 3266 log_to_screen(tmp); 3267 sprintf(tmp, "umount %s", bkpinfo->isodir);3267 sprintf(tmp, "umount -d %s", bkpinfo->isodir); 3268 3268 run_program_and_log_output(tmp, 5); 3269 3269 paranoid_free(mountlist);
Note:
See TracChangeset
for help on using the changeset viewer.
