a test version which just can be run
there is sth wrong with partition-tools and making raid modified: dialog/di_main.py modified: dialog/di_newt.py modified: interface/ri_install.py modified: interface/ri_oper.py modified: new_partition/interface_partition.py modified: new_partition/partition_data.py modified: xml/config.xml modified: xml/dependency.xml
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
|
||||
import ri_data
|
||||
import ri_dep
|
||||
import os,sys
|
||||
import os,sys,time
|
||||
import subprocess
|
||||
import signal
|
||||
sys.path.append('../new_partition/')
|
||||
@@ -136,13 +136,20 @@ class MakePartitions(Operation):
|
||||
set_flg = ''
|
||||
if p_d.Partition.dict[d]['partition'][p]['from_os'] == 'yes':
|
||||
continue
|
||||
fs_type = p_d.Partition.dict[d]['partition'][p]['filesystem']
|
||||
start = p_d.Partition.dict[d]['partition'][p]['start']
|
||||
#fs_type = p_d.Partition.dict[d]['partition'][p]['filesystem']
|
||||
end = p_d.Partition.dict[d]['partition'][p]['end']
|
||||
start = p_d.Partition.dict[d]['partition'][p]['start']
|
||||
start = str(int(filter(str.isdigit,p_d.Partition.dict[d]['partition'][p]['start'])) + 511)+'B'
|
||||
#support 4k align
|
||||
if int(filter(str.isdigit,start)) < 2*1000*1000:
|
||||
start = '1048576B'
|
||||
if int(filter(str.isdigit,end)) < 2*1000*1000:
|
||||
end = '2000000'
|
||||
p_type = p_d.Partition.dict[d]['partition'][p]['type']
|
||||
partition = p_d.Partition.dict[d]['partition'][p]['num']
|
||||
flags = p_d.Partition.dict[d]['partition'][p]['flags']
|
||||
mkpart = "%s mkpart %s %s %s %s" %(d, p_type, fs_type, start, end)
|
||||
#mkpart = "%s mkpart %s %s %s %s" %(d, p_type, fs_type, start, end)
|
||||
mkpart = "%s mkpart %s %s %s" %(d, p_type, start, end)
|
||||
if flags.strip():
|
||||
set_flg = "set %s %s on" %(partition, flags)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user