Searched refs:image (Results 1 - 25 of 33) sorted by relevance

12

/pkg/src/modules/client/
H A Dindexer.py38 def __init__(self, image, get_manf_func, get_manifest_path,
40 indexer.Indexer.__init__(self, image.index_dir, get_manf_func,
42 self.image = image
H A Dimageplan.py78 """ImagePlan object contains the plan for changing the image...
80 image modifying operations; evaluation (comparing manifests
89 def __init__(self, image, op, progtrack, check_cancel, noexecute=False,
92 self.image = image
119 self.__old_excludes = image.list_excludes()
174 self.pd._new_avoid_obs = (self.image.avoid_set_get(),
175 self.image.avoid_set_get(implicit=True),
176 self.image.obsolete_set_get())
179 self.image
[all...]
H A Dpkgplan.py70 "image",
85 # we don't serialize our image object pointer. that has to be reset
95 "image",
122 def __init__(self, image=None):
130 self.image = image
187 obj.image = None
233 path = os.path.join(self.image.root, dest.attrs["path"])
315 dest_pub = self.image.get_publisher(
323 sig_pol = self.image
[all...]
H A Dactuator.py42 affected image isn't the current root image, the OS may
279 def exec_prep(self, image):
280 if not image.is_liveroot():
285 if image.type != IMG_USER:
286 path = os.path.join(image.root,
300 def exec_pre_actuators(self, image):
342 def exec_fail_actuators(self, image):
354 def exec_post_actuators(self, image):
/pkg/src/modules/actions/
H A Dgroup.py73 root = pkgplan.image.get_root()
81 gr = GroupFile(pkgplan.image)
99 usernames = pkgplan.image.get_usernames_by_gid(
135 img = pkgplan.image
146 groups = pkgplan.image._groups
154 correctly installed in the given image."""
206 gr = GroupFile(pkgplan.image)
H A Dfile.py82 path = orig.get_installed_path(pkgplan.image.get_root())
87 path = self.get_installed_path(pkgplan.image.get_root())
109 retrieved = pkgplan.image.imageplan._retrieved
111 pkgplan.image.get_root()))
118 # destination and will not be stored in the image download
121 pub = pkgplan.image.get_publisher(
123 data = pkgplan.image.transport.get_datastream(pub,
127 pkgplan.image.cleanup_downloads()
144 final_path = self.get_installed_path(pkgplan.image.get_root())
168 orig = self.restore_file(pkgplan.image)
[all...]
H A Ddriver.py139 def remove_aliases(driver_name, aliases, image):
142 rem_base = (DriverAction.update_drv, "-b", image.get_root(), "-d")
155 image = pkgplan.image
157 if image.is_zone():
164 image, "etc/name_to_major", minfields=2,
173 # target image to see if this driver will bind to an alias that
191 image, "etc/driver_aliases", raw=True, minfields=2,
205 a2d = getattr(image.imageplan, "alias_to_driver", None)
206 driver_actions = image
[all...]
H A Ddepend.py84 in order to install this package; if root-image=true, dependency is
85 on version installed in / rather than image being modified.
88 the parent image. if the current image is not a child then this
97 group - a version of package is required unless stem is in image
102 required unless stem is in image avoid list; version part of fmri is
115 def __check_parent_installed(self, image, fmri):
117 if not image.linked.ischild():
125 for i in image.linked.parent_fmris()
132 "parent image {
[all...]
H A Duser.py106 def readstate(self, image, username, lock=False):
108 root = image.get_root()
110 gr = GroupFile(image)
118 image.get_name_by_gid(int(cur_attrs["gid"]))
143 self.readstate(pkgplan.image, username, lock=True)
145 self.attrs["gid"] = str(pkgplan.image.get_group_by_name(
197 img = pkgplan.image
216 users = pkgplan.image._users
224 correctly installed in the given image."""
319 root = pkgplan.image
[all...]
H A Dlegacy.py64 pkgdir = os.path.join(pkgplan.image.get_root(), "var/sadm/pkg",
80 "arch": pkgplan.image.get_arch(),
115 open(os.path.join(pkgplan.image.get_root(),
140 correctly installed in the given image."""
167 pkgdir = os.path.join(pkgplan.image.get_root(), "var/sadm/pkg",
H A Dhardlink.py49 """ return a path for target that is relative to image"""
55 # that all ".." are removed to constrain target to image
70 path = self.get_installed_path(pkgplan.image.get_root())
83 (pkgplan.image.get_root(), target)))
104 correctly installed in the given image."""
H A Dlicense.py68 # the path must be relative to the root of the image.
70 pkgplan.image.get_license_dir(pkgplan.destination_fmri),
72 pkgplan.image.get_root())
85 path = self.get_installed_path(pkgplan.image.get_root())
134 correctly installed in the given image."""
164 pkgplan.image.get_license_dir(pkgplan.origin_fmri),
H A Dlink.py61 path = self.get_installed_path(pkgplan.image.get_root())
80 correctly installed in the given image."""
105 path = self.get_installed_path(pkgplan.image.get_root())
H A Ddirectory.py153 path = self.get_installed_path(pkgplan.image.get_root())
213 correctly installed in the given image."""
220 path = self.get_installed_path(pkgplan.image.get_root())
H A Dgeneric.py485 if pkgplan.image.cfg.get_policy_str(
595 """Given an image root, return the installed path of the action
746 those actions have been installed in an image. Stripped
748 for conflicting actions checks during image planning
781 correctly installed in the given image."""
851 path = self.get_installed_path(pkgplan.image.get_root())
859 owner = pkgplan.image.get_user_by_name(owner)
867 pd = pkgplan.image.imageplan.pd
901 group = pkgplan.image.get_group_by_name(group)
910 pd = pkgplan.image
[all...]
/pkg/src/tests/api/
H A Dt_altroot.py39 import pkg.client.image as image namespace
56 "image{0:d}".format(i))
59 # image path
62 # image files and directories
78 # first assign paths. we'll use the image paths even
86 # simulate a user image
88 os.path.join(r, image.img_user_prefix))
90 # simulate a root image
92 os.path.join(r, image
[all...]
H A Dt_plat.py37 import pkg.client.image as image namespace
88 # create an image, copy an executable into it,
91 img1 = image.Image(tdir1, imgtype=image.IMG_USER,
131 # create an image, copy an executable into it,
134 img1 = image.Image(tdir1, imgtype=image.IMG_USER,
/pkg/src/modules/portable/
H A Dos_windows.py123 # within the image containing the file. A single image is assumed to be
129 # done on an image. The image module cannot be imported when this module is
135 # cached_image_info is a list of tuples (image root, image trash directory) for
138 # image object for it each time.
145 the directory. If path is not contained within an image, return None.
151 import pkg.client.image as image namespace
[all...]
/pkg/src/modules/
H A Daltroot.py71 # Functions for accessing files in an alternate image
380 managed image can be found at 'root'. If 'root' does point to a
381 pkg(7) image, then we return the relative path to the image metadata
384 import pkg.client.image as image namespace
389 if ar_isdir(root, image.img_user_prefix):
392 if ar_isdir(root, image.img_root_prefix):
397 # why would an image have two pkg metadata directories.
398 # is this image corrup
[all...]
H A Dcfgfiles.py311 def __init__(self, image):
312 self.__image = image
313 CfgFile.__init__(self, os.path.join(image.get_root(), "etc/group"),
H A Dindexer.py702 tmp_index_dir=None, image=None):
706 added or the pkgplans for the change in the image.
714 The "image" parameter must be set if "input_type" is pkgplans.
748 assert image
766 image.gen_installed_pkgs(),
807 def client_update_index(self, pkgplan_list, image, tmp_index_dir=None):
813 accidentally removing files. Image the image object. This is
817 tmp_index_dir=tmp_index_dir, image=image)
/pkg/src/modules/client/linkedimage/
H A Dsystem.py28 System linked image module classes. System linked images support both child
29 and parent linking. System linked image child configuration information is
30 stored within a parent images pkg5.image configuration file.
36 # import linked image common code
57 self.__img = linked.image
75 # this may be a new image that hasn't actually been
117 # Delete this linked image
/pkg/doc/
H A DMakefile56 image.txt \
/pkg/src/web/_themes/opensolaris.org/en/
H A Dbase.css62 background-image: url(http://www.opensolaris.org/images/header.png);
139 background-image: url(../feed-icon-14x14.png);
/pkg/src/tests/cli/
H A Dt_pkg_image_create.py36 import pkg.client.image as image namespace
73 """ Create an image, verify it. """
81 self.pkg("image-create -@", exit=2)
82 self.pkg("image-create --bozo", exit=2)
83 self.pkg("image-create", exit=2)
85 self.pkg("image-create --facet foo=NONE -p test1={0} {1}".format(
87 self.pkg("image-create --facet foo= -p test1={0} {1}".format(
89 self.pkg("image-create --facet foo -p test1={0} {1}".format(
92 self.pkg("image
[all...]

Completed in 41 milliseconds

12