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.
#Kernel Panic after @world update, using btrfs
1 messages ยท Page 1 of 1 (latest)
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?
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
so should i chroot and manually run ugrd?
i thought re-emerging the kernel would automatically pull ugrd iirc
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
i did. removed the dracut flag from installkernel and initramfs from gentoo-kernel-bin. i dont think i have any kernel backups and btrfs rollback isn't working for me
(snapper)
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
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
im pretty sure it is since i removed the dracut flag and i remember setting my system up to use ugrd with 6.6.30
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
@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
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?
@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
it should automatically use ugrd if it's installed and configured to be used
it doesn't do anything by simply existing
doesn't pull it or doesn't use it?
very different
that should be fine more or less
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
@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
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
mind explaining the difference? ๐
idk pull could mean "installs ugrd" or "builds the image with the kernel"
by pull I mean portage installs the package
ohhh gotcha
installkernel is what should use ugrd to make the initramfs image
like when the kernel is emerged
yeah it's installed, installkernel just isnt using it for some reason
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"
ohh lemme try that
ugrd may be hitting Gentoo real soon
i have the line "initramd_generator=ugrd" in there
no clue why it's not using ugrd
should i emerge the kernel with -N maybe?
based af
dracut gives me brain damage
i don't think you need that
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?
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
if you run it manually it autodetects your kernel version
you can run --kver
--help describes all of the cmdline args
so would i do --kver linux-6.6.32-gentoo-dist or just 6.6.32?
the whole thing, it should autocomplete
it more or less has to correspond to the name of a modules dir
would it be the vmlinuz file in /boot?
sudo ugrd --kver /boot/vmlinuz-6.6.32-gentoo-dist
no
just the name bit
not the full path
it should tab complete
maybe not if you're using a root zsh shell
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?
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
what filesystem are you using, and what is the output of blkid?
well that's good, I would assume it's just a wrong root=PARTUUID= option
kernel command line option
would I be correct in running: sudo ugrd --kver /lib/modules/6.6.32-gentoo-dist/?
it autocompleted but theres more in there
not the full path
oh ok
cool lemme try rebooting, it seems to have done it!
sike i dont see a 6.6.32 initramfs in /boot
do i mv it to here?
t put it in boot, you can tell it to put it in boot
ok
can i keep it as a .xz file?
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
nope... kernel panic again
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
ah
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
emerge --config gentoo-kernel-bin finds no initrd image for 6.6.32, how can i use installkernel to run ugrd?
"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
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```
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
that was with -v, -v is in my default opts
added, do i run it again?
yeah
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'
no lol i was just showing you my config file
so should i maybe write initrd_generator instead of initramd_generator?
yes
maybe my dumbass made a typo a while back and never noticed somehow
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
yw lol
i think you made it manually last time
ugrd is fiiiiiinally almost ready to be in ::gentoo ๐
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 
possible
it's mostly python you could help by reading the code and documenting it a bit more
@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