Changeset a188131 in mainline for uspace/srv/system/system.c


Ignore:
Timestamp:
2025-04-09T19:05:44Z (6 days ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master
Children:
3acb63b5, a78b0a0
Parents:
597fa24
Message:

Add UI to system installer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/system/system.c

    r597fa24 ra188131  
    328328        size_t nparts;
    329329        bool sv_mounted;
     330        futil_t *futil = NULL;
    330331        size_t i;
    331332        errno_t rc;
     
    380381
    381382                /* Copy initial configuration files */
    382                 rc = futil_rcopy_contents("/cfg", "/w/cfg");
     383                rc = futil_create(NULL, NULL, &futil);
    383384                if (rc != EOK)
    384385                        goto error;
     386
     387                rc = futil_rcopy_contents(futil, "/cfg", "/w/cfg");
     388                if (rc != EOK)
     389                        goto error;
     390
     391                futil_destroy(futil);
     392                futil = NULL;
    385393        } else {
    386394                printf("%s: System volume is configured.\n", NAME);
     
    429437        if (part_ids != NULL)
    430438                free(part_ids);
     439        if (futil != NULL)
     440                futil_destroy(futil);
    431441
    432442        return rc;
Note: See TracChangeset for help on using the changeset viewer.