Ignore:
Timestamp:
Oct 5, 2011, 1:20:58 AM (13 years ago)
Author:
Bruno Cornec
Message:
  • Uses the -d option of the mount command to avoid leaving loop devices in use. Probably provoked by the usage of a more recent busybox, but anyway that option doesn't hurt, and does nothing for non-loop devices. Should fix the problems reported on the ML with NFS and more than 8 ISO images (8 being the default number of loop devices available)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.9/mondo/src/common/newt-specific.c

    r2771 r2878  
    349349        chdir("/");
    350350        if (g_selfmounted_isodir) {
    351             sprintf(command, "umount %s", g_selfmounted_isodir);
     351            sprintf(command, "umount -d %s", g_selfmounted_isodir);
    352352            run_program_and_log_output(command, 5);
    353353            sprintf(command, "rmdir %s", g_selfmounted_isodir);
     
    406406
    407407        chdir("/");
    408         run_program_and_log_output("umount " MNT_CDROM, FALSE);
     408        run_program_and_log_output("umount -d " MNT_CDROM, FALSE);
    409409        if (g_selfmounted_isodir) {
    410             mr_asprintf(&command, "umount %s", g_selfmounted_isodir);
     410            mr_asprintf(&command, "umount -d %s", g_selfmounted_isodir);
    411411            run_program_and_log_output(command, 1);
    412412            paranoid_free(command);
Note: See TracChangeset for help on using the changeset viewer.