7d42fca843
dracut dies with a usage message here if the version is passed after the image name. This is probably not needed as it turns out but I can't test that without a full clean build which I don't have time for right now.
13 lines
649 B
Diff
13 lines
649 B
Diff
diff -ur lorax-22.1/src/pylorax/treebuilder.py lorax-22.1-patch/src/pylorax/treebuilder.py
|
|
--- lorax-22.1/src/pylorax/treebuilder.py 2014-12-13 11:20:56.000000000 +1300
|
|
+++ lorax-22.1-patch/src/pylorax/treebuilder.py 2016-03-17 15:14:40.539871906 +1300
|
|
@@ -227,7 +227,7 @@
|
|
if backup:
|
|
initrd = joinpaths(self.vars.inroot, outfile)
|
|
os.rename(initrd, initrd + backup)
|
|
- cmd = dracut + [outfile, kernel.version]
|
|
+ cmd = dracut + ["--kver", kernel.version, outfile]
|
|
runcmd(cmd, root=self.vars.inroot)
|
|
|
|
# ppc64 cannot boot images > 32MiB, check size and warn
|