Lines Matching refs:root_path

61 imageboot_format_is_valid(const char *root_path)
63 return (strncmp(root_path, kIBFilePrefix,
79 char *root_path = NULL;
83 MALLOC_ZONE(root_path, caddr_t, MAXPATHLEN, M_NAMEI, M_WAITOK);
84 if (root_path == NULL)
88 if (!(PE_parse_boot_argn("rp0", root_path, MAXPATHLEN) ||
89 PE_parse_boot_argn("rp", root_path, MAXPATHLEN) ||
90 PE_parse_boot_argn(IMAGEBOOT_ROOT_ARG, root_path, MAXPATHLEN))) {
95 if (imageboot_format_is_valid(root_path)) {
96 DBG_TRACE("%s: Found %s\n", __FUNCTION__, root_path);
104 if (!(PE_parse_boot_argn("rp1", root_path, MAXPATHLEN) ||
105 PE_parse_boot_argn(IMAGEBOOT_CONTAINER_ARG, root_path, MAXPATHLEN))) {
110 if (imageboot_format_is_valid(root_path)) {
111 DBG_TRACE("%s: Found %s\n", __FUNCTION__, root_path);
114 __FUNCTION__, root_path);
118 FREE_ZONE(root_path, MAXPATHLEN, M_NAMEI);
132 imageboot_mount_image(const char *root_path, int height)
140 error = di_root_image(root_path, rootdevice, &dev);
209 char *root_path = NULL;
213 MALLOC_ZONE(root_path, caddr_t, MAXPATHLEN, M_NAMEI, M_WAITOK);
214 assert(root_path != NULL);
216 if(PE_parse_boot_argn(IMAGEBOOT_CONTAINER_ARG, root_path, MAXPATHLEN) == TRUE) {
217 printf("%s: container image url is %s\n", __FUNCTION__, root_path);
218 error = imageboot_mount_image(root_path, height);
226 if (PE_parse_boot_argn(IMAGEBOOT_ROOT_ARG, root_path, MAXPATHLEN) == FALSE) {
234 printf("%s: root image url is %s\n", __FUNCTION__, root_path);
236 error = imageboot_mount_image(root_path, height);
244 FREE_ZONE(root_path, MAXPATHLEN, M_NAMEI);
252 char *root_path = NULL;
269 MALLOC_ZONE(root_path, caddr_t, MAXPATHLEN, M_NAMEI, M_WAITOK);
270 assert(root_path != NULL);
279 if((PE_parse_boot_argn("rp", root_path, MAXPATHLEN) == FALSE) &&
280 (PE_parse_boot_argn("rp0", root_path, MAXPATHLEN) == FALSE)) {
284 printf("%s: root image url is %s\n", __FUNCTION__, root_path);
286 error = imageboot_mount_image(root_path, 0);
294 if(PE_parse_boot_argn("rp1", root_path, MAXPATHLEN) == FALSE) {
298 printf("%s: second level root image url is %s\n", __FUNCTION__, root_path);
304 error = imageboot_mount_image(root_path, 1);
310 FREE_ZONE(root_path, MAXPATHLEN, M_NAMEI);