#Dracut could not boot
1 messages · Page 1 of 1 (latest)
Check if that UUID matches your encrypted partition for a first step I think
Okay give me a sec
It exists
That appears to be the UUID of your BTRFS root, your luks container should go there I believe
Change the UUID in the dracut cmdline so it points at your luks container instead of the btrfs root partition
Okay gimme a sec
In /etc/dracut.conf.d
???
Or etc/dracut.conf.d/00-installkernel.conf
Whichever one you set up before
So in etc/dracut.conf.d/00-installkernel.conf i already have right uuid
Pointing to the 49a...
Wait
I wrote 8 instead of 0
wow
IG its time to get glasses
Okay im now sure its correct
Should I reboot now or do installkernel?
I believe you need a space either end of that string
Got it
emerge --config <your kernel> to run all that stuff
What do you mean by "check" here?
I mean by <your kernel> you mean gentoo-kernel or gentoo-kernel-bin
??
Or do I need to type gentoo-6-18-18
Whichever one you installed, I dunno 😄
the versions of packages are not needed unless you want to be specific
It finished
Should I reboot?
What could possibly go wrong?
That's at least a bit different 🤔
So what do I do now
Ah ok I sent that message before seeing this pic with the same error
Identical error suggests that somewhere in your dracut config there is another UUID set that is overriding the one you just did
Or perhaps it is still booting the old kernel/initramfs with that old UUID in it, instead of the new fixed one emerge --config <kernel> just made
Was your ESP mounted when you did all this?
Because you changed something, we should expect different behaviour. With it being identical I think it's worth investigating whether your changes applied properly
Yes, I mounted everything
I think it might be a reason
Do you have the grub flag set in installkernel?
I remember existing some dracut config file
Yes
I see three causes for this, in order of likelihood;
- dracut is misconfigured still
- ESP not mounted when installing the new initramfs, so the old initramfs is being booted (you ruled this out)
- grub not reconfigured to find the new initramfs (grub flag on installkernel should do this for you)
Let me check dracut real quick
To explain your error a bit, until your root is decrypted, it is literally just a big pile of data as far as linux is concerned
Your btrfs partition with that UUID it's looking for doesn't exist until the root is decrypted and the btrfs subvolumes mapped
Not from what I've seen
So
I just checked etc default grub
And it didn't change
These are my flags
And I dont have /etc/dracut.conf.d/luks.conf file
Should i create it and add this line with my uuid?
The whole section needs to be followed for your setup https://wiki.gentoo.org/wiki/Rootfs_encryption#Dracut
It's why the Handbook highlights it
That's wired cuz I remember creating this file
Kernel_cmdline will be my /boot partition?
Or my rootfs?
The whole roofs article is meant to be followed as you go through the handbook install
I followed it
cool
the basic idea is the Handbook doesn't officially support this type of setup so instead we link to this guide to show you show how to enable it along side
so the next step is to see if you missed a step
Okay
So
After I did luks target configurtion
I need to to grub-install --efi-directory=/boot/efi
Right???
Or should I do emerge --config kernelinstall
I don't see where it says that?
Here
It does not say /boot/efi
It's hard to provide support when the ground constantly moves under our feet like this
/boot/efi is a valid layout but is no longer recommended. Just /boot for simplicity, or /efi for split layouts
I go with just /boot, for simplicity
So what should I do now
Share a lsblk so we can start to get a baseline of what is going on
Really not sure what's happening there lol but we can work with it. Unmount /boot and /boot/efi
Okay
Was that little ext4 boot partition an LLM suggestion also?
Yes
I mean gemini pro usually helps me very well, but IG gentoo is beyond llms
Anyway I got it unmounted
What now
I suggest cleaning out everything in /boot to get a clean slate
Then remount your ESP to /boot, which is the simplest layout and one I use and recommend
How should I do that
Please be careful typing that lol
Sure but not strictly necessary right now
Okay
Now you want to mount your fat32 ESP to /boot
I just want this to work RN 🙂
And be encrypted
Just the system not bootloader ofc
That's the objective
Once you've done this, ls /boot please
Its empty
After you mounted the fat32 partition there?
We cleared it out just then so the dir is definitely empty for the partition to mount to
It doesn't need to be empty, linux mounting will just overlay the partition on the dir, but loose stuff in the /boot dir can cause issues
Waif, drive is in use and I need to find out why
Eghhh
Whyyy
I unmounted everything
why are we in cfdisk?
To make it fat32
Ohhh
Okay
I didn't understand the task
I need to mount
So mount /dev/nvme1n1p1 /boot
???
Right
??
Yep
Okay
I don't think panicking is going to help
No rush lol
Thank you so much
I'm back @unborn timber
Sorry for taking soo long
Okay I mounted it to /boot
There is only EFI in /boot now
What do i do now
what is in /boot now?
EFI
Okidoke, I would remove that also
So rm -rf /boot/* again
Should to the trick yep
Now you can --config your kernel again to get your kernel/initramfs there in /boot, then you can install grub into /boot, and then configure grub again to pick up your kernel/initramfs
All in one place now
Oh well all this should have been done in the chroot really, if you've rm'd against just /boot while outside the chroot then you've deleted stuff off the iso
Which is not a problem, but is not what you want
Okay
I should do --config instalkernell or --config gentoo-kernel
??
I have to mount p1 as /efi and p2 as /boot
Right??
shoulda used ugrd
it takes 3 seconds to switch
ot apparently 6 hours to make dracut work
up to you tho
you can see if you have any files in /etc/portage/package.use that set USE flags for installkernel
like "grep -r installkernel /etc/portage/package.use"
if you don't, you can put that line in any file
me running cat was just showing the contents of that file on my system
i want you to slow down and think about what you're doing lol
setting USE flags is a relatively common gentoo process
the goal here is to add the ugrd USE flag and remove the dracut one from the installkernel package
Okay
Now I understand what I must do
Give me one sec
I will do it in a moment
I just must finish one think
once the USE flags are set, you will need to re-emerge that package
unless it has been installed before it's generally best to "oneshot" it
so like emerge --oneshot --verbose sys-kernel/installkernel
when you do that you should see the new USE flags you set are used
--oneshot == -1 (number 1 not l)
this is especially important for packages which are dependencies of other packages, and the kernel depends on installkernel so that is the case here
Well it didn't like this command
you've somehow got dracut and ugrd set
it's saying you need one or the other
if you run that grep command again, you could see if something is setting dracut
nice
And its done
so once that is done, you should be able to emerge --config your kernel again
Okay
and if that works without error, you should be able to reboot?
i did not double check all of your config
but if dracut was running and had errors, ugrd should at least run with your bootloader setup (and should not have errors)
there could be other issues but we'll have to see
Well I still need to mount /boot and /efi
i would recommend only using /boot if you can help it
but yeah you want both mounted if you use both
yeah i think that is the recommended way on the rootfs wiki page
so yeah i would use whatever is fat32 formatted
how is your disk setup?
if your /boot and /efi are one after the other you could even delte both and make a new larger partition to fill the space
but if it's at least 500mb it should be fine
its about 1gb so should be fine
Ehh I mounted boot
you should be able to just mount that to /boot (and adjust fstab if it's in there)
yeah i mean having it split is fine
But it still doesn't like it
you just have to be sure to mount both when you do stuff like this
are they defined in the fstab?
can you wgetpaste the build log it has listed there?
im just gonna guess you don't have btrfs-progs installed?
can you double check that you have that and cryptsetup?
As use flag?
yeah ugrd will error out of those are missing
that may have been part of the problem, dracut can ignore that stuff
you can install wgetpaste
and then do like wgetpaste <file>
and share the link it makes
i think maybe your fstab has issues?
that may have a typo
now its good
can you share your fstab?
i would not have /boot and /boot/efi
Yeah
i would put that efi bit at just /efi
I see
(make sure to unmount and remount)
i think you want the shorter uuid one at /efi
and the olonger one at /boot
if yo want both
but yoiu could just sorta get rid of the one at /boot and put the short uuid (fat32) one at /boot
Aren't we creating only /boot?
wasn't sure if you were gonna do that but yeah if you want that, you want to remove the current /boot entry
and only leave that /boot one you adjusted
then unmount everything
mount /boot again
and then grub-install --efi-directory /boot and then finally the emerge --config for your kernel
i think that looks mostly fine, using a path for the root is not a great idea but should work (with ugrd)
No I umount and mount
yeah
and i would check lsblk to see if anything is still mounted
nothing efi/boot related should be mounted
(before you remount)
Okay
We can change that
Just tell me with what should I change that
you can replace that /dev/mapper/root bit with a uuid like the other entries
being sure to use the fs uuid (btrfs one)
yes
yeah
you should be able to just "mount /boot"
and you'll want to reinstlal grub
Okay it worked
So now grub-install --efi-directory=/boot?
ye
are you EFI booting?
I have uefi
EFI variables are not supported on this system
Written 2 times
or your efivars are not mounted?
How do I check that
Nothing
hmmmm
you could try to manually mount that
you could maybe get away with adding --removable to the grub install
It worked
nice
What now
i think the last step is reinstalling teh kernel
if that wroks you should be able to reboot
ye
ye
hmmm
something with the grub install didn't go quite right
tbh i would try to ensure you're using UEFI mode when going into the livecd
grub is not reading its config
How do I do that
if you can select boot entires and they say "UEFI" be sure to select that option for the livecd
but grub can't find its config
do you have the grub USE flag on installkernel?
hmmm i saw you did
You mean this?
yeah
Okay give me a sec
once you do that, make sure /boot is mounted and try to emerge --config the kernel again
and look for the grub config file in /boot
I'm back in chroot
How do I check that
You mean this?
this bit
and if you are back in the chroot, you can mount /boot again and try to re-run the kernel isntall
grub should make config when that runs
i think there should be config at /boot/grub/grub.cfg
I did that
And there is no grub.cfg
hmmmm
do you see anything in the log about running grub?
what does "emerge -pv installkernel" say?
does it still show the grub USE flag?
yeah you may have set USE flags wrong
can you show all files in /etc/portage/package.use
unless that is not in the chroot?
is that in the live cd env?
i would not set that there
tbh i would remove all that USE stuff from your make.conf
Okay
all you really need is like sys-kernel/installkernel grub ugrd -dracut in some file in /etc/portage/package.use
technically yes but there may be better places to set that
globally setting stuff like that should (Generally) be avoided
Okay
Packsge.use is a directory
Not a file
yeah
it's generally a dir
it could be a file
but you can put files in there with config
yeah you can use that file
the name is mostly used for ordering
ye this stuff is a bit tricky but it's important to learn it for maintaining your gentoo system
yup
it's doin what you told it to do :P
you can set it to -dracut ugrd grub after the sapce
Yep
The more I text here with you the better I understand this system
And how stupid I was when installing it lol
Got it
Let's clear my use flags from make.conf and put them where they should be
ye, USE flags in make.conf can work but can also kinda make a mess
like generally you want to be precise about what packages they apply to
im not sure the cryptsetup/luks flags help
but the main thing is that those flags i described above are set for installkernel
once you do that, you can reinstall it
(emerge -1 installkernel)
So I should remove them?
Okay and where do I put network manager
not sure
i don't use that and im not sure waht that would even be applying to on your setup tbh
i would suggest setting it when/where you know it's needed
Handbook told me to put that line there
IG it can stay
BTW if I used stage3 desktop, bluetooth is included?
Or I need to add it?
Okay
So I will do this now
Done
Should I reboot now?
BTW there is still no config file in /boot/grub
yup
\o/
THANK YOU
happy to help, this is why ugrd was made :P

