diff options
Diffstat (limited to 'scripts/contrib/mkefidisk.sh')
-rwxr-xr-x | scripts/contrib/mkefidisk.sh | 4 |
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 | ||
21 | LANG=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 | # |
126 | DEVICE_SIZE=$(parted $DEVICE unit mb print | grep Disk | cut -d" " -f 3 | sed -e "s/MB//") | 128 | DEVICE_SIZE=$(parted $DEVICE unit mb print | grep ^Disk | cut -d" " -f 3 | sed -e "s/MB//") |
127 | SWAP_SIZE=$((DEVICE_SIZE*SWAP_RATIO/100)) | 129 | SWAP_SIZE=$((DEVICE_SIZE*SWAP_RATIO/100)) |
128 | ROOTFS_SIZE=$((DEVICE_SIZE-BOOT_SIZE-SWAP_SIZE)) | 130 | ROOTFS_SIZE=$((DEVICE_SIZE-BOOT_SIZE-SWAP_SIZE)) |
129 | ROOTFS_START=$((BOOT_SIZE)) | 131 | ROOTFS_START=$((BOOT_SIZE)) |