Changeset View
Changeset View
Standalone View
Standalone View
usr.sbin/bsdinstall/partedit/partedit_powerpc.c
Show First 20 Lines • Show All 103 Lines • ▼ Show 20 Lines | |||||
} | } | ||||
const char * | const char * | ||||
bootcode_path(const char *part_type) { | bootcode_path(const char *part_type) { | ||||
return (NULL); | return (NULL); | ||||
} | } | ||||
const char * | const char * | ||||
partcode_path(const char *part_type, const char *fs_type) { | partcode_path(const char *scheme, const char *fs_type, const char *part_type) { | ||||
size_t platlen = sizeof(platform); | size_t platlen = sizeof(platform); | ||||
if (strlen(platform) == 0) | if (strlen(platform) == 0) | ||||
sysctlbyname("hw.platform", platform, &platlen, NULL, -1); | sysctlbyname("hw.platform", platform, &platlen, NULL, -1); | ||||
if (strcmp(part_type, "APM") == 0) | if (strcmp(scheme, "APM") == 0) | ||||
return ("/boot/boot1.hfs"); | return ("/boot/boot1.hfs"); | ||||
if (strcmp(part_type, "MBR") == 0 || | if (strcmp(scheme, "MBR") == 0 || | ||||
(strcmp(platform, "chrp") == 0 && strcmp(part_type, "GPT") == 0)) | (strcmp(platform, "chrp") == 0 && strcmp(scheme, "GPT") == 0)) | ||||
return ("/boot/boot1.elf"); | return ("/boot/boot1.elf"); | ||||
return (NULL); | return (NULL); | ||||
} | } | ||||
intmax_t | |||||
create_bootpart(struct ggeom *geom, const char *scheme, intmax_t start, | |||||
intmax_t sector) { | |||||
return (0); | |||||
} |