modified: di_dialog.py
modified: di_main.py
This commit is contained in:
@@ -32,8 +32,6 @@ class Welcome(Dialog):
|
||||
|
||||
def set_data(self):
|
||||
s=Dialog.dialog.yesno(self.text,self.height,self.width,title='welcome',clear=1)
|
||||
if s == 0 :
|
||||
ri_data.init()
|
||||
return s
|
||||
|
||||
class SerialNumber(Dialog):
|
||||
@@ -164,7 +162,7 @@ class Raid(Dialog):
|
||||
|
||||
from_os_list= [ R.from_os for R in ri_data.Raid.dict.values() if R.from_os == 'no' ]
|
||||
|
||||
if len(fd_devices) < 3 and not from_os_list :
|
||||
if len(fd_devices) < 2 and not from_os_list :
|
||||
return 0
|
||||
|
||||
if not fd_devices :
|
||||
|
||||
@@ -13,10 +13,10 @@ di_dialog.Group(30,70)
|
||||
di_dialog.Service(25,50)
|
||||
di_dialog.Prepar_installation(40,100)
|
||||
|
||||
|
||||
list=['welcome','raid','mountpoint','serialnumber','network','group','service','information']
|
||||
|
||||
if len(di_dialog.Raid.raid_raw_init()) < 3:
|
||||
ri_data.init()
|
||||
if len(di_dialog.Raid.raid_raw_init()) < 2:
|
||||
del list[1]
|
||||
|
||||
count=0
|
||||
|
||||
Reference in New Issue
Block a user