View previous topic :: View next topic |
Author |
Message |
Alfanjui n00b
Joined: 21 Mar 2022 Posts: 9
|
Posted: Mon Mar 21, 2022 6:02 am Post subject: /boot/vmlinuz executable kernel missing from installation |
|
|
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.
Many thanks in advance for any help given! |
|
Back to top |
|
|
CaptainBlood Advocate
Joined: 24 Jan 2010 Posts: 3999
|
Posted: Mon Mar 21, 2022 6:52 am Post subject: |
|
|
Alfanjui,
Welcome to gentoo.
Did you runafter 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 |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 23063
|
Posted: Mon Mar 21, 2022 3:05 pm Post subject: |
|
|
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 |
|
|
Alfanjui n00b
Joined: 21 Mar 2022 Posts: 9
|
Posted: Mon Mar 21, 2022 3:54 pm Post subject: |
|
|
CaptainBlood wrote: | Alfanjui,
Welcome to gentoo.
Did you runafter building your kernel?
Thks 4 ur attention, interest & support. |
Many thanks for the response!
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í |
|
Back to top |
|
|
Alfanjui n00b
Joined: 21 Mar 2022 Posts: 9
|
Posted: Mon Mar 21, 2022 3:56 pm Post subject: |
|
|
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 |
|
|
grknight Retired Dev
Joined: 20 Feb 2015 Posts: 2000
|
Posted: Mon Mar 21, 2022 4:12 pm Post subject: |
|
|
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 |
|
|
Alfanjui n00b
Joined: 21 Mar 2022 Posts: 9
|
Posted: Mon Mar 21, 2022 7:57 pm Post subject: |
|
|
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] _________________ Don't feel guilty if you wake up late, you can make up for those hours after midnight
Alfanjuí |
|
Back to top |
|
|
|