Lines Matching defs:stage1

146 	/* read the stage1 file from filesystem */
149 read(fd, dest->stage1, SECTOR_SIZE) != SECTOR_SIZE) {
150 (void) fprintf(stderr, gettext("cannot read stage1 file %s\n"),
411 * set up data for case stage1 is installed as MBR
425 data->stage1 + STAGE1_BPB_OFFSET, STAGE1_BPB_SIZE);
429 bcopy(device->mbr + STAGE1_SIG, data->stage1 + STAGE1_SIG,
433 *((uint16_t *)(data->stage1 + STAGE1_STAGE2_SIZE)) =
443 *((uint64_t *)(data->stage1 + STAGE1_STAGE2_LBA)) =
446 *((uint64_t *)(data->stage1 + STAGE1_STAGE2_LBA)) =
454 uuid_generate(data->stage1 + STAGE1_STAGE2_UUID);
555 if (write_out(device->stage.fd, data->stage1,
556 sizeof (data->stage1), 0) != BC_SUCCESS) {
563 (void) fprintf(stdout, gettext("stage1 written to "
576 if (write_out(device->target.fd, data->stage1,
577 sizeof (data->stage1), 0) != BC_SUCCESS) {
584 (void) fprintf(stdout, gettext("stage1 written to "
591 if (write_out(device->fd, data->stage1,
592 sizeof (data->stage1), 0) != BC_SUCCESS) {
599 gettext("stage1 written to master boot sector\n"));
1149 /* read the stage1 file from source disk */
1150 if (read(src->device.fd, dest->stage1, SECTOR_SIZE) != SECTOR_SIZE) {
1151 (void) fprintf(stderr, gettext("cannot read stage1 from %s\n"),
1194 (void) fprintf(stderr, gettext("Error updating the stage1 "
1224 char *stage1 = NULL;
1229 stage1 = strdup(argv[0]);
1233 if (!device_path || !bootblock || !stage1) {
1239 BOOT_DEBUG("device path: %s, stage1 path: %s bootblock path: %s\n",
1240 device_path, stage1, bootblock);
1249 if (read_stage1_from_file(stage1, &install_data) != BC_SUCCESS) {
1250 (void) fprintf(stderr, gettext("Error opening %s\n"), stage1);
1280 free(stage1);
1452 #define USAGE_STRING "Usage:\t%s [-h|-m|-f|-n|-F|-u verstr] stage1 stage2 " \