def fstab(self): retval = '''# /etc/fstab: static file system information. # # <file system> <mount point> <type> <options> <dump> <pass> proc /proc proc defaults 0 0 ''' parts = disk.get_ordered_partitions(self.context.disks) for part in parts: retval += "UUID=%-40s %15s %7s %15s %d %d\n" % (part.fs.uuid, part.fs.mntpnt, part.fs.fstab_fstype(), part.fs.fstab_options(), 0, 0) return retval
def fstab(self): retval = '''# /etc/fstab: static file system information. # # <file system> <mount point> <type> <options> <dump> <pass> proc /proc proc defaults 0 0 ''' parts = disk.get_ordered_partitions(self.vm.disks) for part in parts: retval += "UUID=%-40s %15s %7s %15s %d %d\n" % (part.fs.uuid, part.fs.mntpnt, part.fs.fstab_fstype(), part.fs.fstab_options(), 0, 0) return retval
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, disks, filesystems): self.install_from_template('/etc/fstab', 'dapper_fstab', { 'parts' : disk.get_ordered_partitions(disks), 'prefix' : self.disk_prefix })
def install_fstab(self, disks, filesystems): self.install_from_template( '/etc/fstab', 'fstab', {'parts': disk.get_ordered_partitions(disks)})
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 })
def install_fstab(self, disks, filesystems): self.install_from_template( "/etc/fstab", "dapper_fstab", {"parts": disk.get_ordered_partitions(disks), "prefix": self.disk_prefix} )
def install_fstab(self, disks, filesystems): self.install_from_template( '/etc/fstab', 'dapper_fstab', { 'parts': disk.get_ordered_partitions(disks), 'prefix': self.disk_prefix })