View previous topic :: View next topic |
Author |
Message |
Banifatsiy04 n00b
Joined: 30 Aug 2023 Posts: 27 Location: Moscow
|
Posted: Sat Apr 13, 2024 11:21 am Post subject: |
|
|
Here are all files with eudev in their name in my system:
Code: | /usr/share/genkernel/distfiles/eudev-3.2.10.tar.gz
/usr/share/genkernel/gkbuilds/eudev.gkbuild
/usr/share/genkernel/patches/eudev/3.2.10/eudev-3.2.10-static.patch
/var/cache/distfiles/eudev-3.2.10.tar.gz
/var/cache/genkernel/4.3.10/eudev-3.2.10-x86_64.tar.xz
/var/db/repos/gentoo/metadata/news/2021-08-24-eudev-retirement/2021-08-24-eudev-retirement.en.txt |
|
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54319 Location: 56N 3W
|
Posted: Sat Apr 13, 2024 12:19 pm Post subject: |
|
|
Banifatsiy04,
That's a good sign.
Is sys-apps/systemd-utils built with the udev USE flag? _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
Banifatsiy04 n00b
Joined: 30 Aug 2023 Posts: 27 Location: Moscow
|
Posted: Sat Apr 13, 2024 12:49 pm Post subject: |
|
|
Yes, it's built with tmpfiles and udev USE flags enabled (all other USE flags are disabled) |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54319 Location: 56N 3W
|
Posted: Sat Apr 13, 2024 1:02 pm Post subject: |
|
|
Banifatsiy04,
Odd. You have all the bits. eudev is not installed, so it can't start.
What doesoutput? _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
Banifatsiy04 n00b
Joined: 30 Aug 2023 Posts: 27 Location: Moscow
|
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54319 Location: 56N 3W
|
Posted: Sat Apr 13, 2024 1:35 pm Post subject: |
|
|
Banifatsiy04,
Mount your /boot and post the output of
If you use grub, the content of /boot/grub/grub.cfg will be good too.
I'm surprised to see eudev in the initrd and udev in the main filesystem.
Here's a theory.
The initrd does not belong to the kernel you are booting, so the modules cannot load from there.
The modules in /lib/modules are correct, so modprobe after login works. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
Banifatsiy04 n00b
Joined: 30 Aug 2023 Posts: 27 Location: Moscow
|
Posted: Sat Apr 13, 2024 2:07 pm Post subject: |
|
|
Interestingly, I have found that my /boot/ isn't empty even when it isn't mounted (and it usually isn't mounted). I have probably compiled the kernel once or twice without mounting it, but shouldn't it be mounted automatically? Anyways, here are the files: |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 21724
|
Posted: Sat Apr 13, 2024 2:21 pm Post subject: |
|
|
Banifatsiy04 wrote: | I have found that my /boot/ isn't empty even when it isn't mounted (and it usually isn't mounted). | For this reason, I often encourage people to arrange that the boot directory on the / filesystem is not writable (such as by setting the immutable attribute), so that erroneous attempts to install to it will fail immediately with a clear error message, instead of successfully installing files in a location where they will never be read. Banifatsiy04 wrote: | I have probably compiled the kernel once or twice without mounting it, but shouldn't it be mounted automatically? | That depends on whether /etc/fstab says to mount it automatically or not. Some people prefer making it noauto, so that it will not mount except when requested. This can be helpful to avoid leaving boot dirty unnecessarily. |
|
Back to top |
|
|
Banifatsiy04 n00b
Joined: 30 Aug 2023 Posts: 27 Location: Moscow
|
Posted: Sat Apr 13, 2024 3:00 pm Post subject: |
|
|
Thanks, I am going to do that. I am just so confused on the new need to mount the boot partition (/dev/sda2 in this case) onto /efi instead of on /boot
==Edit==
Should I try to compile the kernel with genkernel after mounting /dev/sda2 onto /boot? |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54319 Location: 56N 3W
|
Posted: Sat Apr 13, 2024 3:33 pm Post subject: |
|
|
Banifatsiy04,
We cannot tell which boot is being used.
The mounted one is dated Apr 9.
The after mounting is a mix of Apr 12 and Apr 9.
Your dmesg a few posts ago gives a kernel build timestamp of Fri Apr 12 12:38:01 MSK 2024.
Its in the first line.
Booting goes like this.
The EFI firmare does its thing then loads an EFI compliant program from the EFI System partition. That will be grub.efi.
grub.efi loads grub stage2 from /boot/grub ... but which /boot/grub ?
grub stage2 loads the kernel and initrd.
As dmesg shows an Apr 12 date, the files dated Apr 9 are not being used.
Don't delete anything. yet _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
Banifatsiy04 n00b
Joined: 30 Aug 2023 Posts: 27 Location: Moscow
|
Posted: Sat Apr 13, 2024 4:15 pm Post subject: |
|
|
I have configured my /etc/fstab in a way, that my boot partition (/dev/sda2) mounts onto /efi on boot. Since /dev/sda2 is mounted on /efi and not on /boot, it probably tries to use the /boot/grub that was there before (this one) |
|
Back to top |
|
|
Banifatsiy04 n00b
Joined: 30 Aug 2023 Posts: 27 Location: Moscow
|
Posted: Sat Apr 20, 2024 9:26 am Post subject: |
|
|
I have backed up files in /boot/, removed everything in /boot/, monted /dev/sda2 onto /boot and recompiled the kernel. Now it gives me grub rescue and an error: Code: | error: file '/boot/grub/x86_64-efi/normal.mod' was not found | . I will try to remove /efi directory and replace it completely with the /boot directory. I don't really understand the /efi directory, so if anyone could give me a link to an article, I would be very much appreciative. Thank you in advance!
==Edit==
After reconfiguring /etc/fstab and grub I got it to boot, but it still doesn't load the correct modules. What should I do? |
|
Back to top |
|
|
Banifatsiy04 n00b
Joined: 30 Aug 2023 Posts: 27 Location: Moscow
|
Posted: Mon Apr 22, 2024 11:01 am Post subject: |
|
|
Should I repost the issue maybe? Into the same forum, but in the Kernel section? |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 21724
|
Posted: Mon Apr 22, 2024 3:13 pm Post subject: |
|
|
No, but if you think this is now the wrong forum, you can ask to have this topic moved to a different forum. Shall I move this topic to Kernel & Hardware for you? |
|
Back to top |
|
|
Banifatsiy04 n00b
Joined: 30 Aug 2023 Posts: 27 Location: Moscow
|
Posted: Mon Apr 22, 2024 5:40 pm Post subject: |
|
|
Yes, Hu, thank you |
|
Back to top |
|
|
|