Declare [image]check-size as integer in config schema

svn path=/dists/trunk/linux/; revision=22183
This commit is contained in:
Ben Hutchings 2014-12-10 16:37:52 +00:00
parent ae85b67cf6
commit af6c30e62e
2 changed files with 1 additions and 2 deletions

View File

@ -198,8 +198,6 @@ class CheckImage(object):
if not value:
return 0
value = int(value)
size = os.stat(image)[stat.ST_SIZE]
if size > value:

View File

@ -33,6 +33,7 @@ class Gencontrol(Base):
'bootloaders': config.SchemaItemList(),
'configs': config.SchemaItemList(),
'initramfs-generators': config.SchemaItemList(),
'check-size': config.SchemaItemInteger(),
},
'relations': {
},