Remove 3G minimum from lorax-composer
The reason for the 3G minimum was because anaconda had a bug with how it calculated minimum disk size when using kickstart. The fix for this has been in Anaconda since 29.16, so we can now remove our limit and create somewhat smaller disk images. Resolves: rhbz#1677741
This commit is contained in:
parent
8b9c2d5999
commit
865fedde4e
@ -383,9 +383,7 @@ def start_build(cfg, dnflock, gitlock, branch, recipe_name, compose_type, test_m
|
||||
log.debug("installed_size = %d, template_size=%d", installed_size, template_size)
|
||||
|
||||
# Minimum LMC disk size is 1GiB, and anaconda bumps the estimated size up by 10% (which doesn't always work).
|
||||
# XXX BUT Anaconda has a bug, it won't execute a kickstart on a disk smaller than 3000 MB
|
||||
# XXX There is an upstream patch pending, but until then, use that as the minimum
|
||||
installed_size = max(3e9, int((installed_size+template_size))) * 1.2
|
||||
installed_size = int((installed_size+template_size)) * 1.2
|
||||
log.debug("/ partition size = %d", installed_size)
|
||||
|
||||
# Create the results directory
|
||||
|
Loading…
Reference in New Issue
Block a user