Allow environmental override for the ONL_BOOT partition size.

- Mostly for testing.
This commit is contained in:
Jeffrey Townsend
2016-05-10 20:16:34 +00:00
parent e3233fc49b
commit c7c30e87ef

View File

@@ -178,6 +178,13 @@ installer_blockdev_format() {
local partition3size=$4
local partition4size=$5
if [ -n "$ONL_BOOT_SIZE" ]; then
echo "Using ONL_BOOT_SIZE override ($ONL_BOOT_SIZE)"
partition1size=$ONL_BOOT_SIZE
fi
onl_config_partition=$(blkid | grep ONL-CONFIG | awk '{print $1}' | tr -d ':')
#