Lines Matching refs:currdev
72 static void init_zfs_bootenv(char *currdev);
311 init_zfs_bootenv(char *currdev) in init_zfs_bootenv() argument
315 if (strlen(currdev) == 0) in init_zfs_bootenv()
317 if(strncmp(currdev, "zfs:", 4) != 0) in init_zfs_bootenv()
320 currdev[strlen(currdev) - 1] = '\0'; in init_zfs_bootenv()
321 setenv("zfs_be_active", currdev, 1); in init_zfs_bootenv()
324 setenv("vfs.root.mountfrom", currdev, 0); in init_zfs_bootenv()
326 currdev = strchr(currdev, ':'); in init_zfs_bootenv()
327 currdev++; in init_zfs_bootenv()
329 beroot = strrchr(currdev, '/'); in init_zfs_bootenv()
332 beroot = currdev; in init_zfs_bootenv()