Enable to select install mode when net-install and hd-install
modified: interface/ri_inst_cli.py new file: main/begin-install modified: operation/finish_install/98state_grid_custom.py new file: text/get_instmode.sh new file: text/select_inst_mode.py
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
# Ling Fen 2010-09-04 create
|
||||
#
|
||||
|
||||
import ri_progress,re
|
||||
import ri_progress,re,os
|
||||
from ri_oper import language, Rate
|
||||
from snack import *
|
||||
def set_task(task_name):
|
||||
@@ -29,14 +29,14 @@ def set_task_scale():
|
||||
ri_progress.i_percent = int(Rate.value)
|
||||
|
||||
def set_task_over():
|
||||
f = open('/proc/cmdline', 'r')
|
||||
cmdline = f.readline().strip()
|
||||
f.close()
|
||||
#instmode = cmdline.split(' ')[0].split('=')[1]
|
||||
for i in cmdline.split(' '):
|
||||
if re.match('instmode=',i):
|
||||
instmode = i.split('=')[1]
|
||||
break
|
||||
#f = open('/proc/cmdline', 'r')
|
||||
#cmdline = f.readline().strip()
|
||||
#f.close()
|
||||
#for i in cmdline.split(' '):
|
||||
# if re.match('instmode=',i):
|
||||
# instmode = i.split('=')[1]
|
||||
# break
|
||||
instmode = os.environ["instmode"]
|
||||
screen = SnackScreen()
|
||||
screen.drawRootText(0, 0, 'Rocky Security OS Install')
|
||||
screen.pushHelpLine(' ')
|
||||
|
||||
Reference in New Issue
Block a user