Description: Allow low resource Ubuntu flavours to install on small disks. Author: Jonathan Marsden Bug: https://bugs.launchpad.net/ubuntu/+source/ubiquity/+bug/775124 --- ubiquity/plugins/ubi-prepare.py~ 2011-08-31 02:13:42.000000000 -0700 +++ ubiquity/plugins/ubi-prepare.py 2011-09-03 12:06:51.706081072 -0700 @@ -332,6 +332,12 @@ # TODO substitute into the template for the state box. min_disk_size = size * 2 # fudge factor. + # Revert Evan Dandrea 'fudge factor' for low resource flavours + if os.path.exists('/cdrom/preseed/lubuntu.seed'): + min_disk_size = size + (600 * 1024 * 1024) # 600MB + if os.path.exists('/cdrom/preseed/xubuntu.seed'): + min_disk_size = size + (600 * 1024 * 1024) # 600MB + # Set minimum size to 8GB if current minimum size is larger # than 8GB and we still have an extra 20% of free space if min_disk_size > max_size and size * 1.2 < max_size: