Changes in uspace/app/sysinst/sysinst.c [9b95b964:ca127f37] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/sysinst/sysinst.c
r9b95b964 rca127f37 41 41 #include <errno.h> 42 42 #include <fdisk.h> 43 #include <futil.h> 43 44 #include <loc.h> 44 45 #include <stdio.h> … … 49 50 #include <vol.h> 50 51 51 #include "futil.h"52 52 #include "grub.h" 53 53 #include "rdimg.h" … … 80 80 #define BOOT_BLOCK_IDX 0 /* MBR */ 81 81 82 #define CFG_FILES_SRC "/cfg" 83 #define CFG_FILES_DEST MOUNT_POINT "/cfg" 84 82 85 static const char *default_devs[] = { 83 86 DEFAULT_DEV_0, … … 227 230 path = NULL; 228 231 232 /* Copy initial configuration files */ 233 rc = futil_rcopy_contents(CFG_FILES_SRC, CFG_FILES_DEST); 234 if (rc != EOK) 235 return rc; 236 229 237 return EOK; 230 238 error: … … 271 279 } 272 280 273 rv = asprintf(&path, "%s%s", rdpath, "/cfg/ volsrv.sif");281 rv = asprintf(&path, "%s%s", rdpath, "/cfg/initvol.sif"); 274 282 if (rv < 0) { 275 283 rc = ENOMEM; … … 298 306 printf("Error creating system partition configuration.\n"); 299 307 rc = EIO; 308 goto error; 309 } 310 311 rc = vol_volumes_sync(volumes); 312 if (rc != EOK) { 313 printf("Error saving volume confiuration.\n"); 300 314 goto error; 301 315 }
Note:
See TracChangeset
for help on using the changeset viewer.