Files
new_install/text/get_instmode.sh
PengZhihui 911c08a72a bug 2017:修改安装程序,使6.0.42.41系统支持在fakeraid上安装
修改:      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>
2014-09-17 11:18:23 +08:00

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