Changeset 3acb63b5 in mainline for uspace/srv/system/system.c


Ignore:
Timestamp:
2025-04-09T20:01:05Z (2 weeks ago)
Author:
GitHub <noreply@…>
Children:
a92290d
Parents:
9f945464 (diff), a188131 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
git-author:
Wayne Thornton <wmthornton-dev@…> (2025-04-09 20:01:05)
git-committer:
GitHub <noreply@…> (2025-04-09 20:01:05)
Message:

Merge pull request #4 from HelenOS/master

Add UI to system installer

File:
1 edited

Legend:

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

    r9f945464 r3acb63b5  
    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.