Changeset 1937 in MondoRescue for branches/2.2.6/mondo
- Timestamp:
- May 15, 2008, 1:58:56 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.6/mondo/src/mondorestore/mondo-rstr-tools.c
r1934 r1937 563 563 sprintf(tmp, "Mounting device %s ", device); 564 564 log_msg(1, tmp); 565 if (writeable) { 566 strcpy(additional_parameters, "-o rw"); 567 } else { 568 strcpy(additional_parameters, "-o ro"); 569 } 570 if (find_home_of_exe("setfattr")) { 571 strcat(additional_parameters, ",user_xattr"); 572 } 573 if (find_home_of_exe("setfacl")) { 574 strcat(additional_parameters, ",acl"); 565 /* Deal with additional params only if not /proc or /sys */ 566 if (strcmp(format, "proc") && strcmp(format, "sys")) { 567 if (writeable) { 568 strcpy(additional_parameters, "-o rw"); 569 } else { 570 strcpy(additional_parameters, "-o ro"); 571 } 572 if (find_home_of_exe("setfattr")) { 573 strcat(additional_parameters, ",user_xattr"); 574 } 575 if (find_home_of_exe("setfacl")) { 576 strcat(additional_parameters, ",acl"); 577 } 575 578 } 576 579 … … 727 730 mvaddstr_and_log_it(g_currentY++, 74, "Done."); 728 731 } 732 /* Also mounting under MNT_RESTORING special FS */ 733 (void)mount_device("/proc","/proc","proc",TRUE); 734 (void)mount_device("/sys","/sys","sysfs",TRUE); 729 735 run_program_and_log_output("df -m", 3); 730 736 paranoid_free(mountlist);
Note:
See TracChangeset
for help on using the changeset viewer.