diff -r 060d83d8eca9 -r 715b18dc94f3 razor-root.c --- a/razor-root.c Mon Jun 09 16:38:58 2008 -0400 +++ b/razor-root.c Mon Jun 09 22:58:49 2008 -0400 @@ -107,6 +107,17 @@ return image; } +struct razor_set * +razor_root_open_read_only(const char *root) +{ + char path[PATH_MAX]; + + snprintf(path, sizeof path, "%s%s/%s", + root, razor_root_path, system_repo_filename); + + return razor_set_open(path); +} + struct razor_transaction * razor_root_create_transaction(struct razor_root *image, struct razor_set *upstream)