Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 66748 - Catalyst support for last-minute kernel patching (patch included)
Summary: Catalyst support for last-minute kernel patching (patch included)
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: Catalyst (show other bugs)
Hardware: All All
: High enhancement
Assignee: John Davis (zhen) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-08 05:28 UTC by Thierry Carrez (RETIRED)
Modified: 2004-10-16 09:04 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
catalyst-1.0.9-kpatchsupport.patch (catalyst.patch,1.85 KB, patch)
2004-10-08 05:29 UTC, Thierry Carrez (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Thierry Carrez (RETIRED) gentoo-dev 2004-10-08 05:28:03 UTC
To have more flexibility in the kernel used in LiveCDs, I added a new feature to Catalyst : the possibility to patch kernels just before they are compiled in livecd-stage2.

I did this because I needed to add squashfs to kernel sources that don't have them in (hardened-dev-sources), and found no other easy way.

The patch adds an optional "boot/kernel/xxx/patch" feature to the livecd-stage2 specfile. It should contain the path to a patch that would apply cleanly using "patch -p1 -d /usr/src/linux".

Patch applies cleanly on catalyst-1.0.9. I can submit a Catalyst documentation diff too, if you need it.
Comment 1 Thierry Carrez (RETIRED) gentoo-dev 2004-10-08 05:29:05 UTC
Created attachment 41356 [details, diff]
catalyst-1.0.9-kpatchsupport.patch

The Catalyst patch
Comment 2 John Davis (zhen) (RETIRED) gentoo-dev 2004-10-12 11:05:27 UTC
i really do not see the need for catalyst to do this. if we allow this for kernels, then why not for the rest of the packages that are built via catalyst?

i would rather that the kernel itself is patched the proper way.
Comment 3 Thierry Carrez (RETIRED) gentoo-dev 2004-10-12 14:00:29 UTC
John:

The problem is that kernel maintainers won't accept patches that are necessary to catalyst but not to the scope of the kernel. I think I'll have difficulties getting hardened-dev-sources to include squashfs for example, yet I need the squashfs patch to build an hardened LiveCD.

So I figured out the simplest way was to add in Catalyst the capability to add LiveCD-needed kernel patches, rather than try to convince kernel maintainers it is necessary to include them or just limit the choices to kernels that have squashfs included...
Comment 4 Chris Gianelloni (RETIRED) gentoo-dev 2004-10-16 07:38:14 UTC
You could use zisofs and try to convince the kernel maintainers.

Who is the maintainer for hardened-dev-sources?
Comment 5 Thierry Carrez (RETIRED) gentoo-dev 2004-10-16 08:02:24 UTC
I managed to convince solar to convince h-d-s to include the patch :)
Comment 6 Chris Gianelloni (RETIRED) gentoo-dev 2004-10-16 09:04:01 UTC
Sweet