Ignore:
Timestamp:
Apr 29, 2011, 3:35:47 PM (13 years ago)
Author:
Bruno Cornec
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


File:
1 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            }
Note: See TracChangeset for help on using the changeset viewer.