Changeset 1939 in MondoRescue for branches/stable/mondo/src/mondorestore/mondo-rstr-tools.c
- Timestamp:
- May 17, 2008, 1:29:54 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mondo/src/mondorestore/mondo-rstr-tools.c
r1924 r1939 21 21 extern char *bkptype_to_string(t_bkptype bt); 22 22 23 extern bool g_sigpipe_caught;24 23 extern bool g_ISO_restore_mode; /* are we in Iso Mode? */ 25 24 extern bool g_I_have_just_nuked; … … 414 413 } 415 414 mr_msg(1, "Mounting device %s ", device); 416 if (writeable) { 417 mr_asprintf(&additional_parameters, "-o rw"); 418 } else { 419 mr_asprintf(&additional_parameters, "-o ro"); 420 } 421 if (find_home_of_exe("setfattr")) { 422 mr_strcat(additional_parameters, ",user_xattr"); 423 } 424 if (find_home_of_exe("setfacl")) { 425 mr_strcat(additional_parameters, ",acl"); 415 /* Deal with additional params only if not /proc or /sys */ 416 if (strcmp(format, "proc") && strcmp(format, "sys")) { 417 if (writeable) { 418 mr_asprintf(&additional_parameters, "-o rw"); 419 } else { 420 mr_asprintf(&additional_parameters, "-o ro"); 421 } 422 if (find_home_of_exe("setfattr")) { 423 mr_strcat(additional_parameters, ",user_xattr"); 424 } 425 if (find_home_of_exe("setfacl")) { 426 mr_strcat(additional_parameters, ",acl"); 427 } 426 428 } 427 429 … … 586 588 mvaddstr_and_log_it(g_currentY++, 74, _("Done.")); 587 589 } 590 /* Also mounting under MNT_RESTORING special FS */ 591 (void)mount_device("/proc","/proc","proc",TRUE); 592 (void)mount_device("/sys","/sys","sysfs",TRUE); 588 593 run_program_and_log_output("df -m", 3); 589 594 mr_free(mountlist);
Note:
See TracChangeset
for help on using the changeset viewer.