Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/sysinst/sysinst.c

    r9b95b964 rca127f37  
    4141#include <errno.h>
    4242#include <fdisk.h>
     43#include <futil.h>
    4344#include <loc.h>
    4445#include <stdio.h>
     
    4950#include <vol.h>
    5051
    51 #include "futil.h"
    5252#include "grub.h"
    5353#include "rdimg.h"
     
    8080#define BOOT_BLOCK_IDX 0 /* MBR */
    8181
     82#define CFG_FILES_SRC "/cfg"
     83#define CFG_FILES_DEST MOUNT_POINT "/cfg"
     84
    8285static const char *default_devs[] = {
    8386        DEFAULT_DEV_0,
     
    227230        path = NULL;
    228231
     232        /* Copy initial configuration files */
     233        rc = futil_rcopy_contents(CFG_FILES_SRC, CFG_FILES_DEST);
     234        if (rc != EOK)
     235                return rc;
     236
    229237        return EOK;
    230238error:
     
    271279        }
    272280
    273         rv = asprintf(&path, "%s%s", rdpath, "/cfg/volsrv.sif");
     281        rv = asprintf(&path, "%s%s", rdpath, "/cfg/initvol.sif");
    274282        if (rv < 0) {
    275283                rc = ENOMEM;
     
    298306                printf("Error creating system partition configuration.\n");
    299307                rc = EIO;
     308                goto error;
     309        }
     310
     311        rc = vol_volumes_sync(volumes);
     312        if (rc != EOK) {
     313                printf("Error saving volume confiuration.\n");
    300314                goto error;
    301315        }
Note: See TracChangeset for help on using the changeset viewer.