Use DataHolder instead of namedtuple for holding initrd info
This commit is contained in:
parent
0224cdf660
commit
4ff7d533b6
@ -43,7 +43,7 @@ import itertools
|
|||||||
import glob
|
import glob
|
||||||
import math
|
import math
|
||||||
|
|
||||||
from base import BaseLoraxClass
|
from base import BaseLoraxClass, DataHolder
|
||||||
import output
|
import output
|
||||||
|
|
||||||
import yum
|
import yum
|
||||||
@ -395,8 +395,8 @@ class Lorax(BaseLoraxClass):
|
|||||||
self.installtree.cleanup_python_files()
|
self.installtree.cleanup_python_files()
|
||||||
|
|
||||||
# compress install tree
|
# compress install tree
|
||||||
InitRD = namedtuple("InitRD", "fname fpath")
|
initrd = DataHolder(fname="initrd.img",
|
||||||
initrd = InitRD("initrd.img", joinpaths(self.workdir, "initrd.img"))
|
fpath=joinpaths(self.workdir, "initrd.img"))
|
||||||
|
|
||||||
logger.info("compressing install tree")
|
logger.info("compressing install tree")
|
||||||
ok, elapsed = self.installtree.compress(initrd)
|
ok, elapsed = self.installtree.compress(initrd)
|
||||||
|
Loading…
Reference in New Issue
Block a user