PVE 7 build kernel

tomten

Member
Jul 12, 2021
4
1
8
I'm trying to build the latest kernel on Ubuntu 21.04 but I'm getting an error when it's trying to checkout the ubuntu submodule:

test -f "submodules/ubuntu-hirsute/README" || git submodule update --init submodules/ubuntu-hirsute
error: Server does not allow request for unadvertised object e7bd377c9219094136ecce5e2258f04edbed58a0
Fetched in submodule path 'submodules/ubuntu-hirsute', but it did not contain e7bd377c9219094136ecce5e2258f04edbed58a0. Direct fetching of that commit failed.
make: *** [Makefile:121: submodule] Error 1

That commit id doesn't appear to be in my local git nor in the upstream git it's fetching from, something forgotten or am I missing something ?
 
@fabian seems to be the same issue again with the latest kernel:

test -f "submodules/ubuntu-hirsute/README" || git submodule update --init submodules/ubuntu-hirsute
error: Server does not allow request for unadvertised object 28b10a79cd47f0df03d510642e764ff300251a78
Fetched in submodule path 'submodules/ubuntu-hirsute', but it did not contain 28b10a79cd47f0df03d510642e764ff300251a78. Direct fetching of that commit failed.
make: *** [Makefile:122: submodule] Error 1
 
if this is an existing checkout, you might need to go into the submodule directory (submodules/ubuntu-hirsute), then run git fetch --tags, and then repeat (back in the top-level dir) the submodule update.
 
Yes it's an existing checkout and your suggestion solved the problem, I did a distclean and make though.