Changeset 2144 in MondoRescue for branches/2.2.9/mondo/src/mondorestore/mondo-rstr-tools.c
- Timestamp:
- Feb 14, 2009, 2:10:28 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.9/mondo/src/mondorestore/mondo-rstr-tools.c
r2143 r2144 721 721 run_program_and_log_output("mkdir -p " MNT_RESTORING 722 722 "/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_RESTORING725 "/var/lock", FALSE);726 run_program_and_log_output("mkdir -p " MNT_RESTORING727 "/var/run", FALSE);728 723 run_program_and_log_output("chmod 777 " MNT_RESTORING "/dev/null", 729 724 FALSE); … … 2091 2086 sprintf(command, "umount " MNT_RESTORING "%s", 2092 2087 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 } 2093 2096 } 2094 2097 }
Note:
See TracChangeset
for help on using the changeset viewer.