Lines Matching refs:root

234         def init_root(self, root):
244 operating on an image in an alternate root then return an
490 root location of the image. (The only time we change the root
495 assert self.__img.root, \
496 "root = {0}".format(str(self.__img.root))
504 # figure out the new root image path
505 root = self.__img.root.rstrip(os.sep) + os.sep
508 self.__root = root
541 lip.init_root(root)
664 paths if we're executing within an alternate root environment.
681 operating on is located within an alternate root. One way to
686 # ask each plugin if we're operating in an alternate root
961 root=path,
1430 path = pimg.root
1447 # If we're in an alternate root, the parent must also be within
1448 # that alternate root.
1689 # If we're in an alternate root, the child must also be within
1690 # that alternate root
1753 # Make sure we're not linking the root image as a child.
2779 def __push_data(self, root, path, data, tmp, test):
2786 save_data(path_tmp, data, root=root,
2796 root=root, decode=False,
2800 root=root, decode=False,
2819 ar.ar_unlink(root, path_tmp)
2823 ar.ar_rename(root, path_tmp, path)
3590 def save_data(path, data, root="/", catch_exception=True):
3598 if not ar.ar_exists(root, path_dir):
3599 ar.ar_mkdir(root, path_dir, misc.PKG_DIR_MODE)
3602 fd = ar.ar_open(root, pathtmp, os.O_WRONLY,
3610 ar.ar_rename(root, pathtmp, path)
3618 def load_data(path, missing_ok=False, root="/", decode=True,
3627 if missing_ok and not path_exists(path, root=root):
3630 fd = ar.ar_open(root, path, os.O_RDONLY)
3744 path = li.image.root
3765 # Functions for accessing files in the current root
3767 def path_exists(path, root="/"):
3768 """Simple wrapper for accessing files in the current root."""
3771 return ar.ar_exists(root, path)
3778 """Simple wrapper for accessing files in the current root."""
3788 """Simple wrapper for accessing files in the current root."""
3798 """Simple wrapper for accessing files in the current root."""
3882 # Old root and new root should start and end with a '/'.