Пример #1
0
    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
Пример #2
0
    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
Пример #3
0
 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
             })
Пример #4
0
 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 })