modify the comment and error message

This commit is contained in:
Lewis Kang
2016-05-13 09:38:32 +08:00
parent 3d8a473b65
commit 04414276f3

View File

@@ -277,10 +277,10 @@ installer_standard_gpt_install()
DEV=$1; shift
if [ -z $DEV ]; then
# Install on the same block device as ONIE
# Install NOS to the same block device as ONIE image
DEV=$(blkid | grep ONIE-BOOT | awk '{print $1}' | sed -e 's/[1-9][0-9]*:.*$//' | sed -e 's/\([0-9]\)\(p\)/\1/' | head -n 1)
[ -b "$DEV" ] || {
echo "Error: Unable to determine block device of ONIE install"
echo "Error: Unable to determine the block device to install NOS"
return 1
}
fi