|
|
|
@ -87,7 +87,7 @@ class AutoPartition:
|
|
|
|
|
"""
|
|
|
|
|
Autopartition maker
|
|
|
|
|
"""
|
|
|
|
|
def recreateSpace(self,table,device,data,lvm,vgname,bios_grub):
|
|
|
|
|
def recreateSpace(self,table,device,data,lvm,vgname,bios_grub,bios_grub_size):
|
|
|
|
|
"""
|
|
|
|
|
Recreate disk space by table device data lvm flag and vgname
|
|
|
|
|
|
|
|
|
@ -158,7 +158,7 @@ class AutoPartition:
|
|
|
|
|
WRITE_AND_QUIT = "w\ny\n"
|
|
|
|
|
|
|
|
|
|
BIOS_BOOT_PART_NUM = 4
|
|
|
|
|
BIOS_BOOT_PART_SIZE = "%dM"%(bios_grub_size / Sizes.M)
|
|
|
|
|
BIOS_BOOT_PART_SIZE = "%dM"%(int(bios_grub_size) / Sizes.M)
|
|
|
|
|
|
|
|
|
|
fdiskProg = getProgPath('/usr/sbin/gdisk')
|
|
|
|
|
fdisk = process(fdiskProg,device[0])
|
|
|
|
|