summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-02-24 18:35:00 +0100
committerGitHub <noreply@github.com>2022-02-24 18:35:00 +0100
commita9789e9edbaed56aa0e8b33f6e6084b06feafacd (patch)
treedeeef1f87e39101286f9bf5fbebb0d16a2204fda
parent803765d8f7ecaa26e586798b08b859ab140b201e (diff)
parentb3ce2cae043c96e9bc32fcb72527ce820c6593a0 (diff)
downloadvyatta-cfg-system-a9789e9edbaed56aa0e8b33f6e6084b06feafacd.tar.gz
vyatta-cfg-system-a9789e9edbaed56aa0e8b33f6e6084b06feafacd.zip
Merge pull request #176 from sarthurdev/equuleus
install: T4262: Fix root partition size for UEFI installs (equuleus)
-rwxr-xr-xscripts/install/install-get-partition4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/install/install-get-partition b/scripts/install/install-get-partition
index c5c7c268..f977f16b 100755
--- a/scripts/install/install-get-partition
+++ b/scripts/install/install-get-partition
@@ -644,7 +644,7 @@ create_partitions() {
fi
if [ -d /sys/firmware/efi ]; then
#Need room for the EFI partition. 512 is standard, but 256 is probably okay here
- root_part_size=$((root_part_size - 256))
+ root_part_size=$((root_part_size - 256))M
##Do GPT/EFI Setup
sgdisk --zap-all /dev/$ldrive
@@ -653,7 +653,7 @@ create_partitions() {
# part3 = ROOT
sgdisk -a1 -n1:34:2047 -t1:EF02 \
-n2:2048:+256M -t2:EF00 \
- -n3:0:0:+$root_part_size -t3:8300 /dev/$ldrive
+ -n3:0:+$root_part_size -t3:8300 /dev/$ldrive
status=$?
if [ "$status" != 0 ]; then
echo -e "Error creating primary partition on $ldrive.\nPlease see $INSTALL_LOG for more details.\nExiting..."