def mount_partitions(self): """Mounts all the vm's partitions and filesystems below .rootmnt""" logging.info('Mounting target filesystems') fss = disk.get_ordered_filesystems(self) for fs in fss: fs.mount() self.distro.post_mount(fs) self.fsmounted = True
def mount_partitions(self): """Mounts all the vm's partitions and filesystems below .rootmnt""" logging.info('Mounting target filesystems') fss = disk.get_ordered_filesystems(self) for fs in fss: fs.mount() self.distro.post_mount(fs) self.fsmounted = True
def install_fstab(self): if self.vm.hypervisor.preferred_storage == VMBuilder.hypervisor.STORAGE_FS_IMAGE: self.install_from_template( '/etc/fstab', 'dapper_fstab_fsimage', { 'fss': disk.get_ordered_filesystems(self.vm), 'prefix': self.disk_prefix }) else: self.install_from_template( '/etc/fstab', 'dapper_fstab', { 'parts': disk.get_ordered_partitions(self.vm.disks), 'prefix': self.disk_prefix })
def install_fstab(self): if self.vm.hypervisor.preferred_storage == VMBuilder.hypervisor.STORAGE_FS_IMAGE: self.install_from_template('/etc/fstab', 'fstab_fsimage', { 'fss' : disk.get_ordered_filesystems(self.vm), 'prefix' : self.disk_prefix }) else: self.install_from_template('/etc/fstab', 'fstab', { 'parts' : disk.get_ordered_partitions(self.vm.disks), 'prefix' : self.disk_prefix })