Changeset 2776


Ignore:
Timestamp:
Apr 29, 2011, 3:35:47 PM (8 years ago)
Author:
bruno
Message:

r2145@localhost (orig r2144): bruno | 2009-02-14 02:10:28 +0100
Ok, really fix the Ubuntu problem as we need first to umount /var and then create the dirs


Location:
branches/2.2.8/mondo/src/mondorestore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.8/mondo/src/mondorestore/mondo-rstr-tools.c

    r2775 r2776  
    721721run_program_and_log_output("mkdir -p " MNT_RESTORING
    722722                       "/var/run/console", FALSE);
    723 /* To support latest Ubuntu where /var is a separate FS Cf: http://linux.derkeiler.com/Mailing-Lists/Ubuntu/2007-04/msg01319.html */
    724 run_program_and_log_output("mkdir -p " MNT_RESTORING
    725                        "/var/lock", FALSE);
    726 run_program_and_log_output("mkdir -p " MNT_RESTORING
    727                        "/var/run", FALSE);
    728723run_program_and_log_output("chmod 777 " MNT_RESTORING "/dev/null",
    729724                       FALSE);
     
    20912086                    sprintf(command, "umount " MNT_RESTORING "%s",
    20922087                            mountlist->el[lino].mountpoint);
     2088
     2089                    /* To support latest Ubuntu where /var is a separate FS
     2090                     * Cf: http://linux.derkeiler.com/Mailing-Lists/Ubuntu/2007-04/msg01319.html
     2091                     * we need to create some dirs under the real / before unmounting it */
     2092                    if (!strcmp(mountlist->el[lino].mountpoint, "/")) {
     2093                        run_program_and_log_output("mkdir -p " MNT_RESTORING "/var/lock", FALSE);
     2094                        run_program_and_log_output("mkdir -p " MNT_RESTORING "/var/run", FALSE);
     2095                    }
    20932096                }
    20942097            }
  • branches/2.2.8/mondo/src/mondorestore/mondorestore.c

    r2136 r2776  
    655655    protect_against_braindead_sysadmins();
    656656    retval += unmount_all_devices(mountlist);
     657
    657658    /*  if (restore_some || restore_all || */
    658659    if (ask_me_yes_or_no
Note: See TracChangeset for help on using the changeset viewer.