razor-root.c
changeset 240 edd5fe0a00ba
parent 235 060d83d8eca9
     1.1 --- a/razor-root.c	Mon Jun 09 16:38:58 2008 -0400
     1.2 +++ b/razor-root.c	Sun Jun 15 23:15:59 2008 -0400
     1.3 @@ -107,6 +107,17 @@
     1.4  	return image;
     1.5  }
     1.6  
     1.7 +struct razor_set *
     1.8 +razor_root_open_read_only(const char *root)
     1.9 +{
    1.10 +	char path[PATH_MAX];
    1.11 +
    1.12 +	snprintf(path, sizeof path, "%s%s/%s",
    1.13 +		 root, razor_root_path, system_repo_filename);
    1.14 +
    1.15 +	return razor_set_open(path);
    1.16 +}
    1.17 +
    1.18  struct razor_transaction *
    1.19  razor_root_create_transaction(struct razor_root *image,
    1.20  			      struct razor_set *upstream)