Lines Matching refs:rootfs
146 # Skip all files and folders without rootfs subfolder.
149 'rootfs'))):
410 # Path to the rootfs of the container. This will be initialized when
411 # property rootfs is retrieved.
431 def rootfs(self):
432 """Path to the rootfs of the container.
434 This property returns the path to the rootfs of the container, that is,
436 attribute lxc.rootfs from the config file of the container, e.g.,
437 lxc.rootfs = /usr/local/autotest/containers/t4/rootfs
438 If the container is created with snapshot, the rootfs is a chain of
441 lxc.rootfs = overlayfs:/usr/local/autotest/containers/base/rootfs:
446 Files in the rootfs will be accessible directly within container. For
447 example, a folder in host "[rootfs]/usr/local/file1", can be accessed
452 @return: Path to the rootfs of the container.
455 cmd = ('sudo lxc-info -P %s -n %s -c lxc.rootfs' %
458 match = re.match('lxc.rootfs = (.*)', lxc_rootfs_config)
461 'Failed to locate rootfs for container %s. lxc.rootfs '
578 utils.run('sudo mkdir -p %s' % os.path.join(self.rootfs, destination))
862 usr_local_path = os.path.join(container.rootfs, 'usr', 'local')