diff --git a/lorax/0001_pass_kernel_version_as_an_arg.patch b/lorax/0001_pass_kernel_version_as_an_arg.patch new file mode 100644 index 0000000..cd5a30c --- /dev/null +++ b/lorax/0001_pass_kernel_version_as_an_arg.patch @@ -0,0 +1,12 @@ +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 diff --git a/lorax/lorax.spec b/lorax/lorax.spec index 605a791..afbc59b 100644 --- a/lorax/lorax.spec +++ b/lorax/lorax.spec @@ -16,7 +16,7 @@ Group: Applications/System License: GPLv2+ URL: http://git.fedorahosted.org/git/?p=lorax.git Source0: https://fedorahosted.org/releases/l/o/%{name}/%{name}-%{version}.tar.gz - +Patch0: 0001_pass_kernel_version_as_an_arg.patch BuildRequires: python2-devel Requires: GConf2 @@ -85,6 +85,7 @@ Anaconda's image install feature. %prep %setup -q +%patch0 -p1 %build %install