- Timestamp:
- Oct 5, 2011, 1:20:58 AM (14 years ago)
- Location:
- branches/2.2.9
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.9/mindi/rootfs/sbin/find-and-mount-cdrom
r2734 r2878 34 34 fi 35 35 LogIt "$device has a CD-ROM in it" 36 umount /mnt/cdrom36 umount -d /mnt/cdrom 37 37 ln -sf $device /dev/cdrom 38 38 if [ "$?" -ne "0" ]; then -
branches/2.2.9/mindi/rootfs/sbin/init
r2846 r2878 825 825 ConfigureLoggingDaemons 826 826 if [ -e "/tmp/USE-DEVFS" ] ; then 827 umount /mnt/cdrom 2> /dev/null827 umount -d /mnt/cdrom 2> /dev/null 828 828 mv /dev/cdrom /cdrom.lnk 2> /dev/null 829 829 CD_MOUNTED_OK="" … … 963 963 else 964 964 echo -en "Type 'exit' to reboot the PC\n" 965 umount /mnt/cdrom 2> /dev/null965 umount -d /mnt/cdrom 2> /dev/null 966 966 mount / -o rw,remount > /dev/null 2> /dev/null 967 967 LogIt "Launching Shell" -
branches/2.2.9/mindi/rootfs/sbin/install-additional-tools
r2371 r2878 58 58 cd $old_pwd 59 59 echo -e -n "\r" 60 [ ! -e "/tmp/CDROM-LIVES-HERE" ] && umount $mountpoint60 [ ! -e "/tmp/CDROM-LIVES-HERE" ] && umount -d $mountpoint 61 61 sleep 1 62 62 fi -
branches/2.2.9/mondo/src/common/libmondo-devices.c
r2866 r2878 1521 1521 1522 1522 /* Now we need to umount the current media to have the next mounted after */ 1523 run_program_and_log_output("umount " MNT_CDROM, FALSE);1523 run_program_and_log_output("umount -d " MNT_CDROM, FALSE); 1524 1524 log_msg(3, "Mounting next media %d",cd_number_i_want); 1525 1525 g_current_media_number = cd_number_i_want; … … 1535 1535 if (is_this_device_mounted(MNT_CDROM)) { 1536 1536 res = 1537 run_program_and_log_output("umount " MNT_CDROM, FALSE);1537 run_program_and_log_output("umount -d " MNT_CDROM, FALSE); 1538 1538 } else { 1539 1539 res = 0; -
branches/2.2.9/mondo/src/common/libmondo-verify.c
r2380 r2878 1026 1026 verify_all_slices_on_CD(mountpoint); 1027 1027 1028 mr_asprintf(&tmp1, "umount %s", mountpoint);1028 mr_asprintf(&tmp1, "umount -d %s", mountpoint); 1029 1029 #ifdef __FreeBSD__ 1030 1030 ret += system(tmp1); … … 1150 1150 #ifdef __FreeBSD__ 1151 1151 ret = 0; 1152 sprintf(command, "umount %s", mountpoint);1152 sprintf(command, "umount -d %s", mountpoint); 1153 1153 ret += system(command); 1154 1154 ret += kick_vn(mddevice); 1155 1155 if (ret) 1156 1156 #else 1157 sprintf(command, "umount %s", mountpoint);1157 sprintf(command, "umount -d %s", mountpoint); 1158 1158 if (system(command)) 1159 1159 #endif … … 1166 1166 } 1167 1167 if (!does_file_exist(fname)) { 1168 sprintf(command, "umount %s", bkpinfo->media_device);1168 sprintf(command, "umount -d %s", bkpinfo->media_device); 1169 1169 run_program_and_log_output(command, 2); 1170 1170 if (!bkpinfo->please_dont_eject -
branches/2.2.9/mondo/src/common/newt-specific.c
r2771 r2878 349 349 chdir("/"); 350 350 if (g_selfmounted_isodir) { 351 sprintf(command, "umount %s", g_selfmounted_isodir);351 sprintf(command, "umount -d %s", g_selfmounted_isodir); 352 352 run_program_and_log_output(command, 5); 353 353 sprintf(command, "rmdir %s", g_selfmounted_isodir); … … 406 406 407 407 chdir("/"); 408 run_program_and_log_output("umount " MNT_CDROM, FALSE);408 run_program_and_log_output("umount -d " MNT_CDROM, FALSE); 409 409 if (g_selfmounted_isodir) { 410 mr_asprintf(&command, "umount %s", g_selfmounted_isodir);410 mr_asprintf(&command, "umount -d %s", g_selfmounted_isodir); 411 411 run_program_and_log_output(command, 1); 412 412 paranoid_free(command); -
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.