Home
last modified time | relevance | path

Searched refs:root_path (Results 1 – 4 of 4) sorted by relevance

/xnu-11215.1.10/bsd/kern/
H A Dimageboot.c92 imageboot_format_is_valid(const char *root_path) in imageboot_format_is_valid() argument
94 return strncmp(root_path, kIBFilePrefix, in imageboot_format_is_valid()
111 char *root_path = NULL; in imageboot_desired() local
112 root_path = zalloc(ZV_NAMEI); in imageboot_desired()
125 if (!(PE_parse_boot_argn("rp0", root_path, MAXPATHLEN) || in imageboot_desired()
127 PE_parse_boot_argn("arp0", root_path, MAXPATHLEN) || in imageboot_desired()
129 PE_parse_boot_argn("rp", root_path, MAXPATHLEN) || in imageboot_desired()
130 PE_parse_boot_argn(IMAGEBOOT_ROOT_ARG, root_path, MAXPATHLEN) || in imageboot_desired()
131 PE_parse_boot_argn(IMAGEBOOT_AUTHROOT_ARG, root_path, MAXPATHLEN))) { in imageboot_desired()
136 if (imageboot_format_is_valid(root_path)) { in imageboot_desired()
[all …]
H A Dnetboot.c264 get_root_path(char * root_path) in get_root_path() argument
297 memcpy(root_path, path, len); in get_root_path()
298 root_path[len] = '\0'; in get_root_path()
320 char * root_path = NULL; in netboot_info_init() local
327 root_path = zalloc(ZV_NAMEI); in netboot_info_init()
329 if (PE_parse_boot_argn("rp0", root_path, MAXPATHLEN) == TRUE in netboot_info_init()
330 || PE_parse_boot_argn("rp", root_path, MAXPATHLEN) == TRUE in netboot_info_init()
331 || PE_parse_boot_argn("rootpath", root_path, MAXPATHLEN) == TRUE) { in netboot_info_init()
332 if (imageboot_format_is_valid(root_path)) { in netboot_info_init()
334 " ignoring\n", root_path); in netboot_info_init()
[all …]
H A Dchunklist.c97 construct_chunklist_path(char path[static MAXPATHLEN], const char *root_path) in construct_chunklist_path() argument
101 len = strnlen(root_path, MAXPATHLEN); in construct_chunklist_path()
109 len = strlcpy(path, root_path, MAXPATHLEN); in construct_chunklist_path()
183 validate_root_image(const char *root_path, void *chunklist) in validate_root_image() argument
200 AUTHDBG("validating root dmg %s", root_path); in validate_root_image()
202 vp = imgboot_get_image_file(root_path, &fsize, &err); in validate_root_image()
/xnu-11215.1.10/bsd/sys/
H A Dimageboot.h42 int imageboot_format_is_valid(const char *root_path);
43 int imageboot_mount_image(const char *root_path, int height, imageboot_type_t type);