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()
1003 char *root_path = NULL; in imageboot_setup_new() local
1009 root_path = zalloc(ZV_NAMEI); in imageboot_setup_new()
1010 assert(root_path != NULL); in imageboot_setup_new()
1017 if (PE_parse_boot_argn(IMAGEBOOT_CONTAINER_ARG, root_path, MAXPATHLEN) == TRUE) { in imageboot_setup_new()
1018 printf("%s: container image url is %s\n", __FUNCTION__, root_path); in imageboot_setup_new()
1019 error = imageboot_mount_image(root_path, height, type); in imageboot_setup_new()
1027 if (PE_parse_boot_argn(IMAGEBOOT_AUTHROOT_ARG, root_path, MAXPATHLEN) == FALSE && in imageboot_setup_new()
1028 PE_parse_boot_argn(IMAGEBOOT_ROOT_ARG, root_path, MAXPATHLEN) == FALSE) { in imageboot_setup_new()
1035 printf("%s: root image URL is '%s'\n", __func__, root_path); in imageboot_setup_new()
1039 char *path = url_to_path(root_path, &pathsz); in imageboot_setup_new()
1061 error = imageboot_mount_image(root_path, height, type); in imageboot_setup_new()
1064 if (path != root_path) { in imageboot_setup_new()
1089 zfree(ZV_NAMEI, root_path); in imageboot_setup_new()
1097 char *root_path = NULL; in imageboot_setup() local
1117 root_path = zalloc(ZV_NAMEI); in imageboot_setup()
1118 assert(root_path != NULL); in imageboot_setup()
1128 if (PE_parse_boot_argn("arp0", root_path, MAXPATHLEN)) { in imageboot_setup()
1130 char *path = url_to_path(root_path, &pathsz); in imageboot_setup()
1135 panic("Root image %s does not match the manifest", root_path); in imageboot_setup()
1137 if (path != root_path) { in imageboot_setup()
1142 if ((PE_parse_boot_argn("rp", root_path, MAXPATHLEN) == FALSE) && in imageboot_setup()
1143 (PE_parse_boot_argn("rp0", root_path, MAXPATHLEN) == FALSE)) { in imageboot_setup()
1147 DBG_TRACE("%s: root image url is %s\n", __FUNCTION__, root_path); in imageboot_setup()
1149 error = imageboot_mount_image(root_path, 0, type); in imageboot_setup()
1157 if (PE_parse_boot_argn("rp1", root_path, MAXPATHLEN) == FALSE) { in imageboot_setup()
1161 printf("%s: second level root image url is %s\n", __FUNCTION__, root_path); in imageboot_setup()
1167 error = imageboot_mount_image(root_path, 1, type); in imageboot_setup()
1173 zfree(ZV_NAMEI, root_path); in imageboot_setup()