Changeset 5f36841 in mainline for uspace/app/sysinst/sysinst.c
- Timestamp:
- 2018-06-28T23:03:50Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- db9c889
- Parents:
- 70fae4e
- git-author:
- Jiri Svoboda <jiri@…> (2018-06-28 22:27:12)
- git-committer:
- Jiri Svoboda <jiri@…> (2018-06-28 23:03:50)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/sysinst/sysinst.c
r70fae4e r5f36841 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.