Fix wrong layer ordering
This commit is contained in:
parent
e355510575
commit
44209ddfb3
@ -1 +1 @@
|
||||
Subproject commit bfd1b7cb2f4b87e7987b66a8c47069e2e06c74db
|
||||
Subproject commit a1ceeb1ead4f254fc285aabab0251beb85992bf3
|
@ -103,10 +103,9 @@ class ImageBuilder:
|
||||
os.chown(image_path, 100000, 100000)
|
||||
|
||||
def set_layers(self, image):
|
||||
# Extend list of layers with the list of layers from parent image
|
||||
# Raies an exception when IMAGE has no name
|
||||
# Prepend list of layers from parent image
|
||||
pkgmgr = PkgMgr()
|
||||
self.image.conf['layers'].extend(pkgmgr.installed_packages['images'][image]['layers'])
|
||||
self.image.conf['layers'] = pkgmgr.installed_packages['images'][image]['layers'] + [self.image.name]
|
||||
|
||||
def copy_files(self, src, dst):
|
||||
# Copy files from the host or download them from a http(s) URL
|
||||
|
Loading…
Reference in New Issue
Block a user