From 7d42fca843cc41f34b65b2e4f66210580a883f01 Mon Sep 17 00:00:00 2001 From: Jon Griffiths Date: Thu, 17 Mar 2016 15:18:05 +1300 Subject: [PATCH] lorax: Pass the kernel version to dracut as --kver 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. --- lorax/0001_pass_kernel_version_as_an_arg.patch | 12 ++++++++++++ lorax/lorax.spec | 3 ++- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 lorax/0001_pass_kernel_version_as_an_arg.patch 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