Changeset 04e520e in mainline for uspace/app/sysinst/sysinst.c


Ignore:
Timestamp:
2024-07-24T10:33:58Z (6 months ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master
Children:
3d2d455b, 53bff11, ddfe233
Parents:
145d4e2e
git-author:
Jiri Svoboda <jiri@…> (2024-07-23 17:33:46)
git-committer:
Jiri Svoboda <jiri@…> (2024-07-24 10:33:58)
Message:

Config file persistence

Copy /cfg to /w/cfg when installing and when starting live image
Move futil to separate library
Wait for /w to be mounted while booting from disk
Change taskbar and taskbar-cfg to work with /w/cfg/taskbar.sif

File:
1 edited

Legend:

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

    r145d4e2e r04e520e  
    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,
     
    226229        free(path);
    227230        path = NULL;
     231
     232        /* Copy initial configuration files */
     233        rc = futil_rcopy_contents(CFG_FILES_SRC, CFG_FILES_DEST);
     234        if (rc != EOK)
     235                return rc;
    228236
    229237        return EOK;
Note: See TracChangeset for help on using the changeset viewer.