Lines Matching refs:root_path

92 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()
137 DBG_TRACE("%s: Found %s\n", __FUNCTION__, root_path); in imageboot_desired()
146 zfree(ZV_NAMEI, root_path); in imageboot_desired()
154 char *root_path = NULL; in imageboot_needed() local
162 root_path = zalloc(ZV_NAMEI); in imageboot_needed()
166 if (!(PE_parse_boot_argn("rp1", root_path, MAXPATHLEN) || in imageboot_needed()
167 PE_parse_boot_argn(IMAGEBOOT_CONTAINER_ARG, root_path, MAXPATHLEN))) { in imageboot_needed()
172 if (imageboot_format_is_valid(root_path)) { in imageboot_needed()
173 DBG_TRACE("%s: Found %s\n", __FUNCTION__, root_path); in imageboot_needed()
176 __FUNCTION__, root_path); in imageboot_needed()
180 if (root_path != NULL) { in imageboot_needed()
181 zfree(ZV_NAMEI, root_path); in imageboot_needed()
421 imageboot_mount_image(const char *root_path, int height, imageboot_type_t type) in imageboot_mount_image() argument
436 error = di_root_image(root_path, rootdevice, DEVMAXNAMESIZE, &dev); in imageboot_mount_image()
1008 char *root_path = NULL; in imageboot_setup_new() local
1014 root_path = zalloc(ZV_NAMEI); in imageboot_setup_new()
1015 assert(root_path != NULL); in imageboot_setup_new()
1022 if (PE_parse_boot_argn(IMAGEBOOT_CONTAINER_ARG, root_path, MAXPATHLEN) == TRUE) { in imageboot_setup_new()
1023 printf("%s: container image url is %s\n", __FUNCTION__, root_path); in imageboot_setup_new()
1024 error = imageboot_mount_image(root_path, height, type); in imageboot_setup_new()
1032 if (PE_parse_boot_argn(IMAGEBOOT_AUTHROOT_ARG, root_path, MAXPATHLEN) == FALSE && in imageboot_setup_new()
1033 PE_parse_boot_argn(IMAGEBOOT_ROOT_ARG, root_path, MAXPATHLEN) == FALSE) { in imageboot_setup_new()
1040 printf("%s: root image URL is '%s'\n", __func__, root_path); in imageboot_setup_new()
1044 char *path = url_to_path(root_path, &pathsz); in imageboot_setup_new()
1066 error = imageboot_mount_image(root_path, height, type); in imageboot_setup_new()
1069 if (path != root_path) { in imageboot_setup_new()
1094 zfree(ZV_NAMEI, root_path); in imageboot_setup_new()
1102 char *root_path = NULL; in imageboot_setup() local
1122 root_path = zalloc(ZV_NAMEI); in imageboot_setup()
1123 assert(root_path != NULL); in imageboot_setup()
1133 if (PE_parse_boot_argn("arp0", root_path, MAXPATHLEN)) { in imageboot_setup()
1135 char *path = url_to_path(root_path, &pathsz); in imageboot_setup()
1140 panic("Root image %s does not match the manifest", root_path); in imageboot_setup()
1142 if (path != root_path) { in imageboot_setup()
1147 if ((PE_parse_boot_argn("rp", root_path, MAXPATHLEN) == FALSE) && in imageboot_setup()
1148 (PE_parse_boot_argn("rp0", root_path, MAXPATHLEN) == FALSE)) { in imageboot_setup()
1152 DBG_TRACE("%s: root image url is %s\n", __FUNCTION__, root_path); in imageboot_setup()
1154 error = imageboot_mount_image(root_path, 0, type); in imageboot_setup()
1162 if (PE_parse_boot_argn("rp1", root_path, MAXPATHLEN) == FALSE) { in imageboot_setup()
1166 printf("%s: second level root image url is %s\n", __FUNCTION__, root_path); in imageboot_setup()
1172 error = imageboot_mount_image(root_path, 1, type); in imageboot_setup()
1178 zfree(ZV_NAMEI, root_path); in imageboot_setup()