Changeset 2776 in MondoRescue
- Timestamp:
- Apr 29, 2011, 3:35:47 PM (14 years ago)
- Location:
- branches/2.2.8/mondo/src/mondorestore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified branches/2.2.8/mondo/src/mondorestore/mondo-rstr-tools.c ¶
r2775 r2776 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 } -
TabularUnified branches/2.2.8/mondo/src/mondorestore/mondorestore.c ¶
r2136 r2776 655 655 protect_against_braindead_sysadmins(); 656 656 retval += unmount_all_devices(mountlist); 657 657 658 /* if (restore_some || restore_all || */ 658 659 if (ask_me_yes_or_no
Note:
See TracChangeset
for help on using the changeset viewer.