Changeset View
Changeset View
Standalone View
Standalone View
usr.sbin/makefs/cd9660.c
Show First 20 Lines • Show All 303 Lines • ▼ Show 20 Lines | const option_t cd9660_options[] = { | ||||
OPT_STR('V', "volumeid", "Volume Set Identifier"), | OPT_STR('V', "volumeid", "Volume Set Identifier"), | ||||
OPT_STR('B', "bootimage", "Boot image parameter"), | OPT_STR('B', "bootimage", "Boot image parameter"), | ||||
OPT_STR('G', "generic-bootimage", "Generic boot image param"), | OPT_STR('G', "generic-bootimage", "Generic boot image param"), | ||||
OPT_STR('\0', "bootimagedir", "Boot image directory"), | OPT_STR('\0', "bootimagedir", "Boot image directory"), | ||||
OPT_STR('\0', "no-emul-boot", "No boot emulation"), | OPT_STR('\0', "no-emul-boot", "No boot emulation"), | ||||
OPT_STR('\0', "no-boot", "No boot support"), | OPT_STR('\0', "no-boot", "No boot support"), | ||||
OPT_STR('\0', "hard-disk-boot", "Boot from hard disk"), | OPT_STR('\0', "hard-disk-boot", "Boot from hard disk"), | ||||
OPT_STR('\0', "boot-load-segment", "Boot load segment"), | OPT_STR('\0', "boot-load-segment", "Boot load segment"), | ||||
OPT_STR('\0', "platformid", "Section Header Platform ID"), | |||||
{ .name = NULL } | { .name = NULL } | ||||
}; | }; | ||||
fsopts->fs_specific = diskStructure; | fsopts->fs_specific = diskStructure; | ||||
fsopts->fs_options = copy_opts(cd9660_options); | fsopts->fs_options = copy_opts(cd9660_options); | ||||
cd9660_set_defaults(diskStructure); | cd9660_set_defaults(diskStructure); | ||||
▲ Show 20 Lines • Show All 119 Lines • ▼ Show 20 Lines | if (strcmp(name, "bootimagedir") == 0) { | ||||
'd', diskStructure->boot_image_directory); | 'd', diskStructure->boot_image_directory); | ||||
} | } | ||||
} else if (strcmp(name, "no-emul-boot") == 0 || | } else if (strcmp(name, "no-emul-boot") == 0 || | ||||
strcmp(name, "no-boot") == 0 || | strcmp(name, "no-boot") == 0 || | ||||
strcmp(name, "hard-disk-boot") == 0) { | strcmp(name, "hard-disk-boot") == 0) { | ||||
/* RRIP */ | /* RRIP */ | ||||
cd9660_eltorito_add_boot_option(diskStructure, name, 0); | cd9660_eltorito_add_boot_option(diskStructure, name, 0); | ||||
rv = 1; | rv = 1; | ||||
} else if (strcmp(name, "boot-load-segment") == 0) { | } else if (strcmp(name, "boot-load-segment") == 0 || | ||||
strcmp(name, "platformid") == 0) { | |||||
if (buf[0] == '\0') { | if (buf[0] == '\0') { | ||||
warnx("Option `%s' doesn't contain a value", | warnx("Option `%s' doesn't contain a value", | ||||
name); | name); | ||||
rv = 0; | rv = 0; | ||||
} else { | } else { | ||||
cd9660_eltorito_add_boot_option(diskStructure, | cd9660_eltorito_add_boot_option(diskStructure, | ||||
name, buf); | name, buf); | ||||
rv = 1; | rv = 1; | ||||
▲ Show 20 Lines • Show All 1,676 Lines • Show Last 20 Lines |