init-install: Use swap_ratio in the calulation of swap_size
authorDarren Hart <dvhart@linux.intel.com>
Tue, 3 Jul 2012 20:02:50 +0000 (13:02 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 9 Jul 2012 15:58:58 +0000 (16:58 +0100)
commite35def67e44ea79cc7f4e61f589ee6df81b06dc4
tree6696ed057527ad162904d48c82e6e44eaec9214e
parentf4bdcaff0582988693efffb15cdeecfac57b7c84
init-install: Use swap_ratio in the calulation of swap_size

swap_size currently uses a hard coded percentage and ignores the
swap_ratio variable. Fortunately they are the same value currently. Make
the calculation use the variable to avoid problems in the future.

(From OE-Core rev: 2678ce668499af0e90994b9da8c518e85de56651)

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/initrdscripts/files/init-install.sh