Fix destination root dev

master3.3
Mike Hiretsky 15 years ago
parent cb937b4320
commit e6b3d7a827

@ -303,6 +303,25 @@ class DirectoryDistributive(Distributive):
self.copy(dFrom.directory,self.directory)
class PartitionDistributive(Distributive):
# TODO: need node value for ext2 ext3
formatUtilities = { 'ext2':'/sbin/mkfs.ext2 %s',
'ext3':'/sbin/mkfs.ext3 %s',
'ext4':'/sbin/mkfs.ext4 %s',
'jfs':'/sbin/mkfs.jfs -f %s',
'reiserfs':'/sbin/mkfs.reiserfs -f %s',
'xfs':'/sbin/mkfs.xfs -f %s',
'vfat':'/sbin/mkfs.vfat -F 32 %s',
}
formatId = { 'ext2' : '83',
'ext3' : '83',
'ext4' : '83',
'reiserfs' : '83',
'jfs' : '83',
'xfs' : '83',
'vfat' : 'b',
}
def __init__(self,partition,parent=None,mdirectory="/mnt/calculate",
check=False,multipartition=None):
"""Initialize partition distributive
@ -344,25 +363,6 @@ class PartitionDistributive(Distributive):
self._mountPartition(self.partition,mdirectory)
return DirectoryDistributive(mdirectory,parent=self)
# TODO: need node value for ext2 ext3
formatUtilities = { 'ext2':'/sbin/mkfs.ext2 %s',
'ext3':'/sbin/mkfs.ext3 %s',
'ext4':'/sbin/mkfs.ext4 %s',
'jfs':'/sbin/mkfs.jfs -f %s',
'reiserfs':'/sbin/mkfs.reiserfs -f %s',
'xfs':'/sbin/mkfs.xfs -f %s',
'vfat':'/sbin/mkfs.vfat -F 32 %s',
}
formatId = { 'ext2' : '83',
'ext3' : '83',
'ext4' : '83',
'reiserfs' : '83',
'jfs' : '83',
'xfs' : '83',
'vfat' : 'b',
}
def formatPartition(self,format="reiserfs"):
"""Format partition"""
if not format in self.formatUtilities:

@ -343,7 +343,7 @@ class cl_install(color_print):
error = None
try:
targetDistr = self.getTargetDistributive(
self.clVars.Get('os_root_dev'),buildermode)
self.clVars.Get('os_install_root_dev'),buildermode)
distRep = DistributiveRepository()
distName = self.clVars.Get('cl_image')
if distName:

Loading…
Cancel
Save