Files
new_install/operation/partition_disks.sh
Peng Zhihui a2e217c99b Correct the problem of reumount operation
Text mode uses python-newt to show install progress

	modified:   interface/ri_inst_cli.py
	modified:   interface/ri_install.py
	modified:   operation/exec_finish_install.sh
	modified:   operation/functions
	modified:   operation/partition_disks.sh
2014-03-06 16:07:57 +08:00

45 lines
860 B
Bash
Executable File

#!/bin/bash
#===============================================================================
#
# FILE: partition_disks.sh
#
# USAGE: ./partition_disks.sh
#
# DESCRIPTION:
#
# OPTIONS: ---
# REQUIREMENTS: ---
# BUGS: ---
# NOTES: ---
# AUTHOR: bqin (), bqin@linx-info.com
# COMPANY: linx-info
# COPYRIGHT: Copyright 2001-2013 Beijing Linx Technology Co.,Ltd.
# CREATED: 2013年12月23日 16时18分10秒 CST
# REVISION: ---
#===============================================================================
source ./functions
main ()
{
reumount /mnt/
while read line;do
info "$line" stdout
[ -z "$line" ] && continue
parted -s $line
ret=$?
if [ $ret -ne 0 ];then
exit $ret
else
info "partition disk $line success" stdout
fi
done
}
main "$@"