[PVE-User] Source code for Kernel with patches

Saint Michael venefax at gmail.com
Fri May 17 12:56:04 CEST 2019


Maybe you should share the patch here so we benefit from it.

On Fri, May 17, 2019 at 2:14 AM Thomas Lamprecht <t.lamprecht at proxmox.com>
wrote:

> Hi,
>
> On 5/17/19 2:57 AM, Mike O'Connor wrote:
> > Hi Guys
> >
> > Where can I download the source code for the PVE kernels with there
> > patches (including old releases) ? I want to apply a patch to fix an
> issue.
> >
>
> All our sources are available at: https://git.proxmox.com/
>
> For cloning the kernel do:
> $ git clone git://git.proxmox.com/git/pve-kernel
> $ cd pve-kernel
>
> # init submodules (would be done automatically on first build, but for
> # applying patches you may want to have it earlier)
> $ make submodule
>
> on-top patches belong in the "patches/kernel" directory as .patch file,
> which the 'patch' tool should be able understand.
>
> What I often do is changing into the submodule directory, currently that'd
> be:
> $ git submodule update --init  # ensure all is checked out as desired
> $ cd submodules/ubuntu-bionic
>
> changing to a new branch
> $ git chechkout -b backport-foo
>
> then applying upstream/backported patches
> $ git am <patches...>
>
> then formating them out to the correct directory:
> $ git format-patch -s -o ../../patches/kernel/ --start-number=100
> --no-numbered --no-signature --zero-commit  Ubuntu-4.15.0-46.49..
>
> (you may want to change start-number and the last parameter above, it is
> the
> commit/tag/branch from which you want to base your work on), if you add a
> single
> patch you could also just use "-1" ("-2" for two, ...) instead of
> "Ubuntu-4.15.0-X.Y"
>
> Hope that helps.
>
> cheers,
> Thomas
>
> _______________________________________________
> pve-user mailing list
> pve-user at pve.proxmox.com
> https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user
>


More information about the pve-user mailing list