修改: main/begin-install 修改: new_partition/interface_partition.py 修改: new_partition/parted_devices.py 修改: new_partition/partition_data.py 修改: operation/install_bootloader.sh 修改: text/get_instmode.sh Signed-off-by: PengZhihui <zhihuipeng@linx-info.com>
19 lines
452 B
Bash
Executable File
19 lines
452 B
Bash
Executable File
#!/bin/bash
|
|
# get or set instmode's value
|
|
|
|
tmp_file="/tmp/xrasmxioecnz"
|
|
|
|
select_inst_mode(){
|
|
python /usr/lib/new_install/text/select_inst_mode.py
|
|
instmode=$(cat ${tmp_file})
|
|
rm ${tmp_file}
|
|
}
|
|
|
|
[ -z $instmode ] && instmode=`cat /proc/cmdline | sed 's/.*instmode=\([^ ]*\).*/\1/'`
|
|
|
|
if [ "$instmode" = "HdInstall" -o "$instmode" = "NetInstall" -o "$instmode" = "NoRaid" -o "$instmode" = "Dmraid" ];then
|
|
select_inst_mode
|
|
fi
|
|
|
|
export instmode
|