summaryrefslogtreecommitdiffstats
path: root/scripts/contrib/mkefidisk.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/contrib/mkefidisk.sh')
-rwxr-xr-xscripts/contrib/mkefidisk.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/contrib/mkefidisk.sh b/scripts/contrib/mkefidisk.sh
index 38e22176e3..44ac130a68 100755
--- a/scripts/contrib/mkefidisk.sh
+++ b/scripts/contrib/mkefidisk.sh
@@ -18,6 +18,8 @@
18# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 18# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19# 19#
20 20
21LANG=C
22
21# 23#
22# Defaults 24# Defaults
23# 25#
@@ -123,7 +125,7 @@ fi
123# 125#
124# Partition $DEVICE 126# Partition $DEVICE
125# 127#
126DEVICE_SIZE=$(parted $DEVICE unit mb print | grep Disk | cut -d" " -f 3 | sed -e "s/MB//") 128DEVICE_SIZE=$(parted $DEVICE unit mb print | grep ^Disk | cut -d" " -f 3 | sed -e "s/MB//")
127SWAP_SIZE=$((DEVICE_SIZE*SWAP_RATIO/100)) 129SWAP_SIZE=$((DEVICE_SIZE*SWAP_RATIO/100))
128ROOTFS_SIZE=$((DEVICE_SIZE-BOOT_SIZE-SWAP_SIZE)) 130ROOTFS_SIZE=$((DEVICE_SIZE-BOOT_SIZE-SWAP_SIZE))
129ROOTFS_START=$((BOOT_SIZE)) 131ROOTFS_START=$((BOOT_SIZE))