#Kernel Panic after @world update, using btrfs

1 messages ยท Page 1 of 1 (latest)

ember mural
#

Kernel panic right after rebooting when updating world, as it warned me that I needed to reboot for thr nvidia drivers to load properly. Tried chrooting and switching from gentoo-kernel to the -bin variant to save time during this process and remaking grub to see if anything got fixed, but that didn't help. I think someone had a similar issue with ugrd but they were using crypt-setup and it was potentially an issue of ugrd not recognizing the root subvolume. I've attached an image of the kernel panic.

#

VFS: Cannot open root device "PARTUUID=c089f85d-9d8e-4f07-aaf9-dcdb4ff71b60" or unknown-block(0,0): error -6

#

the similar issue but with crypt-setup: #support-archive message

#

@jovial tundra might this be an ugrd issue with btrfs subvolumes?

jovial tundra
#

ugrd doesn't sem to be running there

#

and ugrd will throw an error if it doesn't make an image

#

so if it did make one, it isn't being used

#

also it seems you're passing the subvol option?

#

ugrd will autodetect yours and you don't need to pass it to the cmdline

ember mural
#

so should i chroot and manually run ugrd?

#

i thought re-emerging the kernel would automatically pull ugrd iirc

jovial tundra
#

if you have installkernel setup to use it, it should

#

and yeah either chroot in or use an old workig kernel/initramfs

#

it's worth keeping backups

#

i updared to 6.6.32 on my laptop and now it won't poweroff right lol

#

im glad i kept a 6.6.30 image around

ember mural
#

(snapper)

ember mural
#

nevermind, i did have a 6.6.30 image and my computer works again :D no clue why the fuck 6.6.32 isnt working

jovial tundra
#

it doesn't seem like you have it set to run the right initramfs

#

and you have to make sure installkernel is set to use ugrd

ember mural
#

though i did have some errors when installing my kernel and attempting to fix it by using the binary version instead, which is probably a really stupid idea

ember mural
#

@jovial tundra I've confirmed that my 6.6.32 isnt loading an initramfs, which is strange since nothing's changed on the ugrd side of things since 6.6.30 other than my @world update

#

it should be pulling ugrd through emerging gentoo-kernel

#

so im not sure, maybe ill run ugrd by hand

jovial tundra
#

yeah for me .32 doesn't power off correctly on my laptop

#

it may have issues

#

and you're sure your bootloader is being told to run ugrd?

ember mural
#

@jovial tundra Apparently ugrd was randomly unmerged, likely from when i depcleaned gentoo-kernel-bin in favor of gentoo-kernel (switching back to kernel-bin now)

#

I've set -dracut use flag on installkernel as before, and -initramfs on gentoo-kernel-bin

#

re-emerging the kernel should automatically pull ugrd now, yeah?

#

manually running ugrd just made it remake my 6.6.30 initramfs, even after emerging 6.6.32, it still doesnt pull ugrd for some reason

gentoo-linux /boot # ls
config-6.6.30-gentoo-dist      config-6.6.32-gentoo-dist.old  initramfs-6.6.30-gentoo-dist.img      System.map-6.6.30-gentoo-dist.old  vmlinuz-6.6.30-gentoo-dist      vmlinuz-6.6.32-gentoo-dist.old
config-6.6.30-gentoo-dist.old  EFI                            initramfs-6.6.30-gentoo-dist.img.old  System.map-6.6.32-gentoo-dist      vmlinuz-6.6.30-gentoo-dist.old
config-6.6.32-gentoo-dist      grub                           System.map-6.6.30-gentoo-dist         System.map-6.6.32-gentoo-dist.old  vmlinuz-6.6.32-gentoo-dist
#

it also spat out some issues on nvidia-firmware, which might be why my dgpu isnt really working anymore as of like a few days ago?

ERROR    | [nvidia] Firmware file does not exist: /lib/firmware/nvidia/550.78/gsp_tu10x.bin
ERROR    | [nvidia] Firmware file does not exist: /lib/firmware/nvidia/550.78/gsp_ga10x.bin
WARNING  | [nvidia_modeset] Failed to process autodetected kernel module dependencies: [nvidia_modeset] Kernel module dependency is in ignore list: video
jovial tundra
#

it doesn't do anything by simply existing

jovial tundra
#

very different

jovial tundra
#

it doesn't add video stuff by default

#

but it still tries to gather info

#

that missing firmware is weird but it ultimately doesn't need it because it doesn't pull the video modules

ember mural
#

@jovial tundra I later found out that the missing firmware thing was because nvidia-drivers were updated to only exist on the new (broken) kernel 6.6.32. is there a guide on how to configure ugrd to be used? because i have ugrd and it works to generate initramfs for 6.6.30 but it doesnt do it for 6.6.32 when i emerge the 6.6.32 kernel

jovial tundra
#

installkernel handles if

#

either that or you have to run it manually

ember mural
#

should i like add a ugrd use flag to installkernel and then run the installkernel command? or just add the use flag then emerge gentoo-kernel-bin?

#

cause from before all i remember is needing to specify -dracut on installkernel and it would automatically use ugrd

ember mural
jovial tundra
#

by pull I mean portage installs the package

ember mural
#

ohhh gotcha

jovial tundra
#

installkernel is what should use ugrd to make the initramfs image

#

like when the kernel is emerged

ember mural
#

yeah it's installed, installkernel just isnt using it for some reason

jovial tundra
#

when you emerge ugrd it should warn about that

#

but you have to set /etc/kernel/install.conf I think

#

you put like "initrd_generator=ugrd"

ember mural
#

ohh lemme try that

jovial tundra
#

ugrd may be hitting Gentoo real soon

ember mural
#

no clue why it's not using ugrd

jovial tundra
#

hmm it should run then

#

when emerge installs the kernel

ember mural
#

should i emerge the kernel with -N maybe?

ember mural
#

dracut gives me brain damage

jovial tundra
#

emerge should be running installkernel regardless

#

and that will use system config

#

idk why it would install for .30 but not .32

#

are you sure you didn't make it for .30 manually?

ember mural
#

im currently on .30 because .32 kernel panics due to no initramfs being in /boot for that version

#

manually running ugrd seems to only want to make it for my current kernel version

#

though im a complete ugrd noob and there's probably a flag to specify kernel version

#

but there wasnt a manpage and i couldnt really gather anything from github

jovial tundra
#

you can run --kver

#

--help describes all of the cmdline args

ember mural
#

so would i do --kver linux-6.6.32-gentoo-dist or just 6.6.32?

jovial tundra
#

the whole thing, it should autocomplete

#

it more or less has to correspond to the name of a modules dir

ember mural
#

would it be the vmlinuz file in /boot?

#

sudo ugrd --kver /boot/vmlinuz-6.6.32-gentoo-dist

jovial tundra
#

no

#

just the name bit

#

not the full path

#

it should tab complete

#

maybe not if you're using a root zsh shell

ember mural
#

it wasnt tab autocompleting so i was worried it might be an issue with being in a shell as a user (on kde plasma)

#

so i just need to specify the vmlinuz file?

#

no /boot?

jovial tundra
#

no

#

you specify a dir name in /lib/modules

#

those may line up

#

but the script reads that dir as that is where kmod info is stored

latent scarab
#

what filesystem are you using, and what is the output of blkid?

latent scarab
#

well that's good, I would assume it's just a wrong root=PARTUUID= option

#

kernel command line option

ember mural
#

would I be correct in running: sudo ugrd --kver /lib/modules/6.6.32-gentoo-dist/?

jovial tundra
#

no

#

just the dir name

ember mural
#

it autocompleted but theres more in there

jovial tundra
#

not the full path

ember mural
#

oh ok

#

cool lemme try rebooting, it seems to have done it!

#

sike i dont see a 6.6.32 initramfs in /boot

jovial tundra
#

look at the output

#

it says where it's putting it

#

by default it doesn

ember mural
#

do i mv it to here?

jovial tundra
#

t put it in boot, you can tell it to put it in boot

ember mural
#

ok

jovial tundra
#

just add /boot to the end of the command

#

or do that

ember mural
#

can i keep it as a .xz file?

jovial tundra
#

the extenion barely matters

#

but may affect how things like grub autodetect it

#

if you're adding your own boot entries that doesn't matter

ember mural
#

nope... kernel panic again

jovial tundra
#

are you telling it to use the initramfs?

#

you can't just run it and have it make a file and expect it to do anything

#

this all has to be configured, which is why using installkernel is generally the best idea

#

because using that should automatically put it in the right place and configure your bootloader to use it

ember mural
#

i am using installkernel afaik

#

do i have to manually run it?

jovial tundra
#

you're not if you're running ugrd manualyl

#

you can

ember mural
#

ah

jovial tundra
#

or you can let portage do it

#

if you're running emerge with -v it should show everything run

#

you just have to run emerge --config <kernel package name>

#

if you run it with -a it will let you select the version

ember mural
#

emerge --config gentoo-kernel-bin finds no initrd image for 6.6.32, how can i use installkernel to run ugrd?

jovial tundra
#

"finds no initrd imave"

#

what do you mean

#

can you share a log or something

#

emerge --config shouldn't be finding anything it should be making it

ember mural
#
gqt@gentoo-linux ~ $ sudo emerge --config sys-kernel/gentoo-kernel-bin


Ready to configure sys-kernel/gentoo-kernel-bin-6.6.32? [Yes/No] y

 * Your boot partition was detected as being mounted at /boot.
 * Files will be installed there for gentoo-kernel-bin to function correctly.
 * Installing the kernel via installkernel ...
Reading /etc/kernel/install.conf...

Running /usr/lib/kernel/preinst.d/52-ugrd.install 6.6.32-gentoo-dist /usr/src/linux-6.6.32-gentoo-dist/arch/x86/boot/bzImage


Running /usr/lib/kernel/postinst.d/91-grub-mkconfig.install 6.6.32-gentoo-dist /boot/vmlinuz-6.6.32-gentoo-dist

 * Backing up existing grub config as /boot/grub/grub.cfg~
'/boot/grub/grub.cfg' -> '/boot/grub/grub.cfg~'
 * Generating new GRUB config as /boot/grub/grub.cfg
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-6.6.32-gentoo-dist
Found linux image: /boot/vmlinuz-6.6.32-gentoo-dist.old
Found linux image: /boot/vmlinuz-6.6.30-gentoo-dist
Found initrd image: /boot/initramfs-6.6.30-gentoo-dist.img
Found linux image: /boot/vmlinuz-6.6.30-gentoo-dist.old
Found initrd image: /boot/initramfs-6.6.30-gentoo-dist.img.old
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.
Adding boot menu entry for UEFI Firmware Settings ...
done```
jovial tundra
#

cat is in /etc/kernel/install.conf

#

can you run it with -v

#

it's clearly not running ugrd

#

that message lower is grub-mkconfig

#

it has no output so it's not running

#

you likely don't have it set to run

#

if you run it with -v it should show the set initrd_generaotr

ember mural
jovial tundra
#

it should show the set vars with verbose mode

#

like installkernel vars

ember mural
jovial tundra
#

yeah

ember mural
#
gqt@gentoo-linux ~ $ sudo !!
sudo emerge --config sys-kernel/gentoo-kernel-bin:6.6.32


Ready to configure sys-kernel/gentoo-kernel-bin-6.6.32? [Yes/No] y

 * Your boot partition was detected as being mounted at /boot.
 * Files will be installed there for gentoo-kernel-bin to function correctly.
 * Installing the kernel via installkernel ...
Reading /etc/kernel/install.conf...
/etc/kernel/install.conf: line 2: !w: command not found                                                           [ !! ]
 * Installing the kernel failed
 * 
 * The kernel files were copied to disk successfully but the kernel
 * was not deployed successfully.  Once you resolve the problems,
 * please run the equivalent of the following command to try again:
 * 
 *     emerge --config sys-kernel/gentoo-kernel-bin:6.6.32
 * ERROR: sys-kernel/gentoo-kernel-bin-6.6.32::gentoo failed (config phase):
 *   Kernel install failed, please fix the problems and run emerge --config sys-kernel/gentoo-kernel-bin:6.6.32
 * 
 * Call stack:
 *     ebuild.sh, line  136:  Called pkg_config
 *   environment, line 1957:  Called kernel-install_pkg_config
 *   environment, line 1453:  Called kernel-install_install_all '6.6.32-gentoo-dist'
 *   environment, line 1447:  Called die
 * The specific snippet of code:
 *           die "Kernel install failed, please fix the problems and run emerge --config ${CATEGORY}/${PN}:${SLOT}";
 * 
 * If you need support, post the output of `emerge --info '=sys-kernel/gentoo-kernel-bin-6.6.32::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-kernel/gentoo-kernel-bin-6.6.32::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sys-kernel/gentoo-kernel-bin-6.6.32/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-kernel/gentoo-kernel-bin-6.6.32/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-kernel/gentoo-kernel-bin-6.6.32/empty'
 * S: '/var/tmp/portage/sys-kernel/gentoo-kernel-bin-6.6.32/work/gentoo-kernel-bin-6.6.32'
jovial tundra
#

you put vim in your file

ember mural
#

lmfao i thought you told me to edit my file to look like your cat

#

i was so confused

jovial tundra
#

no lol i was just showing you my config file

ember mural
#

so should i maybe write initrd_generator instead of initramd_generator?

jovial tundra
#

yes

ember mural
#

maybe my dumbass made a typo a while back and never noticed somehow

jovial tundra
#

yeah i make typos too but this info should be in the wiki

#

and in the man page

ember mural
#

lmao i definitely mistyped

#

whoops

#

just rebooted and it works now, thanks a lot for your time and im so sorry such a stupid typo wasted so much of your time ๐Ÿ˜…

#

really curious how i even got 6.6.30 to work

jovial tundra
#

yw lol

#

i think you made it manually last time

#

ugrd is fiiiiiinally almost ready to be in ::gentoo ๐Ÿ˜„

ember mural
#

i wish there was something i could do to help other than test stuff on my other machine (gentoo arm vm) but all i know in terms of coding is MATLAB and a bit of Python wails_big_sobs

ember mural
jovial tundra
ember mural
#

@jovial tundra my computer isn't powering off properly with 6.6.32 either

#

rebooting turns off the display but keeps my keyboard lights on and my fans still running until i manually hold down the power button

#

seems like a pattern?

#

same thing happens with shutdown

#

ill raise an issue to github but idk how id get logs for this

jovial tundra
#

yeah I think it halts

#

doesn't poweroff

ember mural
#

im not able to figure out what exactly is causing it so it'll probably get lost in linux mailing lists

#

annoyingly nvidia firmware only installs onto the latest linux kernel so i can't use my graphics card on 6.6.30