Changeset d3b2ffa in mainline for uspace/app/sysinst/sysinst.c
- Timestamp:
- 2018-06-29T15:40:10Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5e904dd
- Parents:
- 1e472ee (diff), 1a9174e (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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/sysinst/sysinst.c
r1e472ee rd3b2ffa 69 69 #define MOUNT_POINT "/inst" 70 70 71 /** Device containing HelenOS live CD */ 72 #define CD_DEV "devices/\\hw\\pci0\\00:01.0\\ata-c2\\d0" 73 74 #define CD_FS_TYPE "cdfs" 75 #define CD_FS_SRV "/srv/cdfs" 76 #define CD_MOUNT_POINT "/cdrom" 77 78 #define BOOT_FILES_SRC "/cdrom" 71 /** HelenOS live CD volume label */ 72 #define CD_VOL_LABEL "HelenOS-CD" 73 #define CD_MOUNT_POINT "/vol/" CD_VOL_LABEL 74 75 #define BOOT_FILES_SRC CD_MOUNT_POINT 79 76 #define BOOT_BLOCK_IDX 0 /* MBR */ 80 77 … … 196 193 static errno_t sysinst_copy_boot_files(void) 197 194 { 198 task_wait_t twait; 199 task_exit_t texit; 200 errno_t rc; 201 int trc; 202 203 printf("sysinst_copy_boot_files(): start filesystem server\n"); 204 rc = task_spawnl(NULL, &twait, CD_FS_SRV, CD_FS_SRV, NULL); 205 if (rc != EOK) 206 return rc; 207 208 printf("sysinst_copy_boot_files(): wait for filesystem server\n"); 209 rc = task_wait(&twait, &texit, &trc); 210 if (rc != EOK) 211 return rc; 212 213 printf("sysinst_copy_boot_files(): verify filesystem server result\n"); 214 if (texit != TASK_EXIT_NORMAL || trc != 0) { 215 printf("sysinst_fs_mount(): not successful, but could be already loaded.\n"); 216 } 217 218 printf("sysinst_copy_boot_files(): create CD mount point\n"); 219 rc = vfs_link_path(CD_MOUNT_POINT, KIND_DIRECTORY, NULL); 220 if (rc != EOK) 221 return rc; 222 223 printf("sysinst_copy_boot_files(): mount CD filesystem\n"); 224 rc = vfs_mount_path(CD_MOUNT_POINT, CD_FS_TYPE, CD_DEV, "", 0, 0); 225 if (rc != EOK) 226 return rc; 195 errno_t rc; 227 196 228 197 printf("sysinst_copy_boot_files(): copy bootloader files\n");
Note:
See TracChangeset
for help on using the changeset viewer.