Trouble Building a Custom Kernel

rtilson

Member
Jan 29, 2020
12
1
6
41
I have been attempting to build a customer kernel following thread: Building the PVE kernel on Proxmox VE 6.x
Also been doing the steps below.
  1. git clone git://git.proxmox.com/git/pve-kernel.git
  2. git checkout -bv54 origin/pve-kernel-5.4
  3. git submodule foreach git fetch --tag
  4. git submodule update --init
  5. make
I consistently encounter:
dpkg-source: info: using source format '3.0 (quilt)'
dpkg-source: info: building zfs-linux using existing ./zfs-linux_2.0.1.orig.tar.gz
dpkg-source: info: using patch list from debian/patches/series
can't find file to patch at input line 16
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|From: Debian ZFS on Linux maintainers
| <pkg-zfsonlinux-devel@alioth-lists.debian.net>
|Date: Wed, 30 Jan 2019 15:12:04 +0100
|Subject: [PATCH] Check-for-META-and-DCH-consistency-in-autoconf
|
|Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
|---
| config/zfs-meta.m4 | 34 +++++++++++++++++++++++++++++-----
| 1 file changed, 29 insertions(+), 5 deletions(-)
|
|diff --git a/config/zfs-meta.m4 b/config/zfs-meta.m4
|index b3c1befaa..660d8ccb9 100644
|--- a/config/zfs-meta.m4
|+++ b/config/zfs-meta.m4
--------------------------
No file to patch. Skipping patch.
3 out of 3 hunks ignored
dpkg-source: info: the patch has fuzz which is not allowed, or is malformed
dpkg-source: info: if patch '0001-Check-for-META-and-DCH-consistency-in-autoconf.patch' is correctly applied by quilt, use 'quilt refresh' to
update it
dpkg-source: error: LC_ALL=C patch -t -F 0 -N -p1 -u -V never -E -b -B .pc/0001-Check-for-META-and-DCH-consistency-in-autoconf.patch/ --rejec
t-file=- < zfs-linux_2.0.1.orig.wkfxMq/debian/patches/0001-Check-for-META-and-DCH-consistency-in-autoconf.patch subprocess returned exit stat
us 1
dpkg-buildpackage: error: dpkg-source -b . subprocess returned exit status 2
make[1]: *** [Makefile:53: zfs-linux_2.0.1-pve1.dsc] Error 2
make[1]: Leaving directory '/home/richard/pve-kernel/build/modules/tmp'

What am I missing to get a kernel to built? I have previously successfully built a kernel in this vm and the dependencies _should_ be met but I still encounter this failure.

Edit:
Fixed formatting
 
Last edited:
Ok,

So I was finally able to build a new kernel. The steps I took were:
  1. git clone git://git.proxmox.com/git/pve-kernel.git
  2. git checkout -bv54 origin/pve-kernel-5.4
  3. make submodule
  4. make
I am not sure why that worked, but it did. I have been finding thread after thread after thread on how to do this and nothing seems consistent. The threads could be a couple of years old but also the one I referenced was dated back to September.