diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-core/initrdscripts/files/init-install.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-core/initrdscripts/files/init-install.sh b/meta/recipes-core/initrdscripts/files/init-install.sh index 01ff82926a..3005f2045c 100644 --- a/meta/recipes-core/initrdscripts/files/init-install.sh +++ b/meta/recipes-core/initrdscripts/files/init-install.sh | |||
@@ -81,7 +81,7 @@ cat /proc/mounts > /etc/mtab | |||
81 | 81 | ||
82 | disk_size=$(parted /dev/${device} unit mb print | grep Disk | cut -d" " -f 3 | sed -e "s/MB//") | 82 | disk_size=$(parted /dev/${device} unit mb print | grep Disk | cut -d" " -f 3 | sed -e "s/MB//") |
83 | 83 | ||
84 | swap_size=$((disk_size*5/100)) | 84 | swap_size=$((disk_size*swap_ratio/100)) |
85 | rootfs_size=$((disk_size-boot_size-swap_size)) | 85 | rootfs_size=$((disk_size-boot_size-swap_size)) |
86 | 86 | ||
87 | rootfs_start=$((boot_size + 1)) | 87 | rootfs_start=$((boot_size + 1)) |