Unverified Commit 89b7232b authored by f0rdprefect's avatar f0rdprefect Committed by GitHub
Browse files

Fix GPT option not working if disk is over 2TB (#387)

parent 1186caba
...@@ -144,7 +144,7 @@ if [ "$MODE" = "install" ]; then ...@@ -144,7 +144,7 @@ if [ "$MODE" = "install" ]; then
disk_sector_num=$(cat /sys/block/${DISK#/dev/}/size) disk_sector_num=$(cat /sys/block/${DISK#/dev/}/size)
disk_size_gb=$(expr $disk_sector_num / 2097152) disk_size_gb=$(expr $disk_sector_num / 2097152)
if [ $disk_sector_num -gt 4294967296 ]; then if [ $disk_sector_num -gt 4294967296 ] && [ -z $VTGPT ]; then
vterr "$DISK is over 2TB size, MBR will not work on it." vterr "$DISK is over 2TB size, MBR will not work on it."
exit 1 exit 1
fi fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment