Changeset 0cec807a in mainline for uspace/app/sysinst/sysinst.c
- Timestamp:
- 2025-05-06T16:18:58Z (8 weeks ago)
- Branches:
- master
- Children:
- 61f28c4
- Parents:
- 21cd0c8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/sysinst/sysinst.c
r21cd0c8 r0cec807a 592 592 rc = futil_rcopy_contents(sysinst->futil, CFG_FILES_SRC, 593 593 CFG_FILES_DEST); 594 if (rc != EOK) 595 return rc; 594 if (rc != EOK) { 595 sysinst_error(sysinst, "Error copying initial configuration " 596 "files."); 597 return rc; 598 } 596 599 597 600 return EOK; … … 613 616 "sysinst_copy_boot_files(): copy bootloader files"); 614 617 rc = futil_rcopy_contents(sysinst->futil, BOOT_FILES_SRC, MOUNT_POINT); 615 if (rc != EOK) 616 return rc; 618 if (rc != EOK) { 619 sysinst_error(sysinst, "Error copying bootloader " 620 "files."); 621 return rc; 622 } 617 623 618 624 sysinst_debug(sysinst, "sysinst_copy_boot_files(): OK"); … … 983 989 { 984 990 errno_t rc; 991 bool clean_dev = false; 985 992 986 993 sysinst_action(sysinst, "Creating device label and file system."); … … 988 995 rc = sysinst_label_dev(sysinst, dev); 989 996 if (rc != EOK) 990 return rc; 997 goto error; 998 999 clean_dev = true; 991 1000 992 1001 sysinst_action(sysinst, "Creating system directory structure."); 993 1002 rc = sysinst_setup_sysvol(sysinst); 994 1003 if (rc != EOK) 995 return rc;1004 goto error; 996 1005 997 1006 sysinst_action(sysinst, "Copying boot files."); 998 1007 rc = sysinst_copy_boot_files(sysinst); 999 1008 if (rc != EOK) 1000 return rc;1009 goto error; 1001 1010 1002 1011 sysinst_action(sysinst, "Configuring the system."); 1003 1012 rc = sysinst_customize_initrd(sysinst); 1004 1013 if (rc != EOK) 1005 return rc;1014 goto error; 1006 1015 1007 1016 sysinst_action(sysinst, "Finishing system volume."); 1008 1017 rc = sysinst_finish_dev(sysinst); 1009 1018 if (rc != EOK) 1010 return rc; 1019 goto error; 1020 1021 clean_dev = false; 1011 1022 1012 1023 sysinst_action(sysinst, "Installing boot blocks."); … … 1021 1032 1022 1033 return EOK; 1034 error: 1035 if (clean_dev) 1036 (void)sysinst_finish_dev(sysinst); 1037 return rc; 1023 1038 } 1024 1039
Note:
See TracChangeset
for help on using the changeset viewer.