Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
/boot/vmlinuz executable kernel missing from installation
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Alfanjui
n00b
n00b


Joined: 21 Mar 2022
Posts: 9

PostPosted: Mon Mar 21, 2022 6:02 am    Post subject: /boot/vmlinuz executable kernel missing from installation Reply with quote

I've done several experiments on the installation of a hardened OpenRC stage 3 Gentoo tarball on a Virtual Machine, since I've been wanting to make Gentoo my main operating system. However, I never got the system to boot: the vmlinuz executable in the /boot/ directory is nowhere to be found. I've followed the Handbook carefully and I got experience on booting other linux distributions before.
The first time as I encountered the grub rescue shell, I thought the problem lay at the /boot partition not being correctly mounted or maybe a random error on GRUB2, but no. It was then as I was configuring the LILO Bootloader based on my previous assumptions when I noticed that I didn't have the compressed executable kernel vmlinuz. No errors were received when merging the sys-kernel/gentoo-sources package nor by the forementioned compiling process.

Do you guys have any Idea on what could've happened on my Gentoo installation? I've been trying to figure this out, but no clue on why I don't receive the vmlinuz file to boot my system after rebooting. :?: :cry:

Many thanks in advance for any help given! 8)
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3999

PostPosted: Mon Mar 21, 2022 6:52 am    Post subject: Reply with quote

Alfanjui,
Welcome to gentoo.

Did you run
Code:
make install [all]
after building your kernel?

Thks 4 ur attention, interest & support.
_________________
USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23063

PostPosted: Mon Mar 21, 2022 3:05 pm    Post subject: Reply with quote

If you still need help, please describe exactly what steps you have done. Show us which emerge commands relevant to kernel sources you used. (Rerun them if needed.) Show us the commands you ran to build and install the kernel. Confirm that, when booted in the live media and with the boot filesystem mounted, the files are present (or not, as it seems from what you wrote here).
Back to top
View user's profile Send private message
Alfanjui
n00b
n00b


Joined: 21 Mar 2022
Posts: 9

PostPosted: Mon Mar 21, 2022 3:54 pm    Post subject: Reply with quote

CaptainBlood wrote:
Alfanjui,
Welcome to gentoo.

Did you run
Code:
make install [all]
after building your kernel?

Thks 4 ur attention, interest & support.


Many thanks for the response! :D

I've done it in the past and no error, now I started a new installation process and prompted me this error as I entered the
Code:
make && make install all


The mentioned error:

Code:
/bin/sh line 1: lz4c: Command not found #This is the compression system. Has it not been the correct option while configuring the kernel?
make[2]: *** [arch/x86/boot/compressed/Makefile:137: arch/x86/boot/compressed/vmlinux.bin.lz4c Error 127
make[2]: *** Removing file arch/x86/boot/compressed/vmlinux.bin.lz4c
make[1]: *** [arch/x86/boot/Makefile:115: arch/x86/compressed/vmlinux] Error 2
make: *** [arch/x86/Makefile:253: bzImage] Error 2


To be honest I don't really know what I'm doing wrong, The filesystem is partitioned correctly so as the Kernel configured. According to the error it seems it has something to do with the chosen file compression system.

Best regards,

Alfanjuí 8O
Back to top
View user's profile Send private message
Alfanjui
n00b
n00b


Joined: 21 Mar 2022
Posts: 9

PostPosted: Mon Mar 21, 2022 3:56 pm    Post subject: Reply with quote

Hu wrote:
If you still need help, please describe exactly what steps you have done. Show us which emerge commands relevant to kernel sources you used. (Rerun them if needed.) Show us the commands you ran to build and install the kernel. Confirm that, when booted in the live media and with the boot filesystem mounted, the files are present (or not, as it seems from what you wrote here).


I'll check right away!

Thanks!
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 2000

PostPosted: Mon Mar 21, 2022 4:12 pm    Post subject: Reply with quote

Alfanjui wrote:
The mentioned error:

Code:
/bin/sh line 1: lz4c: Command not found #This is the compression system. Has it not been the correct option while configuring the kernel?
make[2]: *** [arch/x86/boot/compressed/Makefile:137: arch/x86/boot/compressed/vmlinux.bin.lz4c Error 127
make[2]: *** Removing file arch/x86/boot/compressed/vmlinux.bin.lz4c
make[1]: *** [arch/x86/boot/Makefile:115: arch/x86/compressed/vmlinux] Error 2
make: *** [arch/x86/Makefile:253: bzImage] Error 2


You have enabled LZ4 compression somewhere in the kernel config, but do not seem to have app-arch/lz4 installed to complete it.

Either change the compression in the config or install the package.
Back to top
View user's profile Send private message
Alfanjui
n00b
n00b


Joined: 21 Mar 2022
Posts: 9

PostPosted: Mon Mar 21, 2022 7:57 pm    Post subject: Reply with quote

grknight wrote:
Alfanjui wrote:
The mentioned error:

Code:
/bin/sh line 1: lz4c: Command not found #This is the compression system. Has it not been the correct option while configuring the kernel?
make[2]: *** [arch/x86/boot/compressed/Makefile:137: arch/x86/boot/compressed/vmlinux.bin.lz4c Error 127
make[2]: *** Removing file arch/x86/boot/compressed/vmlinux.bin.lz4c
make[1]: *** [arch/x86/boot/Makefile:115: arch/x86/compressed/vmlinux] Error 2
make: *** [arch/x86/Makefile:253: bzImage] Error 2


You have enabled LZ4 compression somewhere in the kernel config, but do not seem to have app-arch/lz4 installed to complete it.

Either change the compression in the config or install the package.


That was the problem, didn't notice I needed a Lz4 package to compile the kernel correctly with this compression system.

Many thanks! I've finally got my installation up and running.

I'm marking the thread as [SOLVED] :twisted:
_________________
Don't feel guilty if you wake up late, you can make up for those hours after midnight :lol:
Alfanjuí
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum