Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
I lost my vmlinuz
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
pdv
n00b
n00b


Joined: 01 Mar 2018
Posts: 15
Location: India

PostPosted: Fri Mar 02, 2018 5:46 am    Post subject: I lost my vmlinuz Reply with quote

EDIT:This is all during installation

I built my kernel using genkernel.

Then I was trying to install grub and I wanted to check a few things with BIOS and UEFI so I rebooted my system. Now I came back and mounted the correct partition to /boot and I can no longer find my vmlinuz.

I had built the kernel after chrooting so the compiled kernel should be on the drive.

Am I missing something? Do I have to recompile the kernel?
Back to top
View user's profile Send private message
The Doctor
Moderator
Moderator


Joined: 27 Jul 2010
Posts: 2600

PostPosted: Fri Mar 02, 2018 5:51 am    Post subject: Reply with quote

Your /boot is/was not mounted. Also possible (although unlikely) that you tried to copy the image to your CD /boot which, of course, would have failed.
_________________
First things first, but not necessarily in that order.

Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box.
Back to top
View user's profile Send private message
pdv
n00b
n00b


Joined: 01 Mar 2018
Posts: 15
Location: India

PostPosted: Fri Mar 02, 2018 6:03 am    Post subject: Reply with quote

The Doctor wrote:
Your /boot is/was not mounted. Also possible (although unlikely) that you tried to copy the image to your CD /boot which, of course, would have failed.


Thanks for your reply

The output of ls in /boot is
Code:

initramfs-genkernel-x86_64-4.9.76-gentoo-r1
kernel-genkernel-x86_64-4.9.76-gentoo-r1
lost+found
System.map-genkernel-x86_64-4.9.76-gentoo-r1


So I have to recompile the kernel?
Back to top
View user's profile Send private message
The Doctor
Moderator
Moderator


Joined: 27 Jul 2010
Posts: 2600

PostPosted: Fri Mar 02, 2018 6:22 am    Post subject: Reply with quote

No need, it is right there. Genkernel names its kernel "kernel-genkernel-x86_64-4.9.76-gentoo-r1" 8)
_________________
First things first, but not necessarily in that order.

Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box.
Back to top
View user's profile Send private message
pdv
n00b
n00b


Joined: 01 Mar 2018
Posts: 15
Location: India

PostPosted: Fri Mar 02, 2018 6:48 am    Post subject: Reply with quote

The Doctor wrote:
No need, it is right there. Genkernel names its kernel "kernel-genkernel-x86_64-4.9.76-gentoo-r1" 8)


Ok. I didn't know that. Thanks.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 44181
Location: 56N 3W

PostPosted: Fri Mar 02, 2018 11:55 am    Post subject: Reply with quote

pdv,

The reason for the renaming is that all kernels build to the vmlinuz file.
However they don't all work. The renaming serves two purposes
a) you can have more that one kernel in boot
b) you can tell the kernels apart, so you can remove old ones later.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
ekigwana
n00b
n00b


Joined: 09 Jan 2018
Posts: 2

PostPosted: Fri Mar 02, 2018 11:49 pm    Post subject: Reply with quote

NeddySeagoon wrote:
pdv,

The reason for the renaming is that all kernels build to the vmlinuz file.
However they don't all work. The renaming serves two purposes
a) you can have more that one kernel in boot
b) you can tell the kernels apart, so you can remove old ones later.


Then it it appears the tboot script '20_linux_tboot ' is busted because it only looks for /boot/vmlinu[xz]-* /vmlinu[xz]-*

I just switched to genkernel and trying to setup tboot for TPM measured support

To fix the tboot script which is part of the sys-boot/tboot package
Code:

Showing differences between /etc/grub.d/20_linux_tboot and /etc/grub.d/._cfg0000_20_linux_tboot
--- /etc/grub.d/20_linux_tboot  2018-03-02 23:56:33.923145525 +0000
+++ /etc/grub.d/._cfg0000_20_linux_tboot        2018-03-02 23:57:58.000000000 +0000
@@ -182,10 +182,10 @@
     *) GENKERNEL_ARCH="$machine" ;;
 esac
 
-linux_list=`for i in /boot/vmlinu[xz]-* /vmlinu[xz]-* /boot/kernel-* ; do
+linux_list=`for i in /boot/vmlinu[xz]-* /vmlinu[xz]-* ; do
        basename=$(basename $i)
        version=$(echo $basename | sed -e "s,^[^0-9]*-,,g")
-        if grub_file_is_not_garbage "$i" && grep -qx "CONFIG_INTEL_TXT=y" /boot/config-${version} /etc/kernels/kernel-config-${version} 2> /dev/null ; then echo -n "$i " ; fi
+        if grub_file_is_not_garbage "$i" && grep -qx "CONFIG_INTEL_TXT=y" /boot/config-${version} 2> /dev/null ; then echo -n "$i " ; fi
       done`
 tboot_list=`for i in /boot/tboot*.gz; do
         if grub_file_is_not_garbage "$i" ; then echo -n "$i " ; fi
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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