Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
cannot find a device for / (is /dev mounted?)
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3  
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
GDH-gentoo
Veteran
Veteran


Joined: 20 Jul 2019
Posts: 1531
Location: South America

PostPosted: Sat Jan 27, 2024 5:55 pm    Post subject: Reply with quote

By the way, which kernel packages exhibit this behaviour with the ioctl? sys-kernel/gentoo-sources I take it?
_________________
NeddySeagoon wrote:
I'm not a witch, I'm a retired electronics engineer :)
Ionen wrote:
As a packager I just don't want things to get messier with weird build systems and multiple toolchains requirements though :)
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 1660

PostPosted: Sun Jan 28, 2024 2:29 am    Post subject: Reply with quote

FWIW, this seems to relate to Bug 438380
Also, on my OpenRC, the udev-trigger script will create /dev/root via udev as part of its startup by default unless disabled in /etc/conf.d/udev-trigger (created at /run/udev/rules.d/61-dev-root-link.rules)
Back to top
View user's profile Send private message
GDH-gentoo
Veteran
Veteran


Joined: 20 Jul 2019
Posts: 1531
Location: South America

PostPosted: Sun Jan 28, 2024 2:19 pm    Post subject: Reply with quote

grknight wrote:
Also, on my OpenRC, the udev-trigger script will create /dev/root via udev as part of its startup by default unless disabled in /etc/conf.d/udev-trigger (created at /run/udev/rules.d/61-dev-root-link.rules)

Which is also skipped for Btrfs:

/etc/init.d/udev-trigger
Code:
# This is here because some software expects /dev/root to exist.
# For more information, see this bug:
# https://bugs.gentoo.org/show_bug.cgi?id=438380
dev_root_link() {
   # ...
   eval $(udevadm info --export --export-prefix=ROOT_ --device-id-of-file=/ ||
      true)
   # ...
   # btrfs filesystems have bogus major/minor numbers
   [ "$ROOT_MAJOR" != 0 ] || return 0
   # ...
}

Probably for the same underlying reason why GRUB's final fallback (step #9) fails.
_________________
NeddySeagoon wrote:
I'm not a witch, I'm a retired electronics engineer :)
Ionen wrote:
As a packager I just don't want things to get messier with weird build systems and multiple toolchains requirements though :)
Back to top
View user's profile Send private message
papu
l33t
l33t


Joined: 25 Jan 2008
Posts: 709
Location: Sota algun pi o alzina...

PostPosted: Mon Feb 05, 2024 4:36 pm    Post subject: Reply with quote

the is a working patch here
https://bugs.gentoo.org/922809

i patched my 6.7.3 and now it's ok

Code:
# eselect kernel list
Available kernel symlink targets:
  [1]   linux-6.6.13-gentoo
  [2]   linux-6.7.3-gentoo *


# lah /boot/
total 25M
drwxr-xr-x 4 root root 2,5K  1 de gen.   1970 .
drwxr-xr-x 1 root root  136  9 de gen.  18:45 ..
-rwxr-xr-x 1 root root 175K 29 d’ag.    20:46 config-6.4.12-gentoo
-rwxr-xr-x 1 root root 171K 26 d’oct.   00:18 config-6.5.9-gentoo
-rwxr-xr-x 1 root root 173K 23 de gen.  02:19 config-6.6.13-gentoo
-rwxr-xr-x 1 root root 261K 17 de nov.  02:09 config-6.6.1-gentoo-dist
-rwxr-xr-x 1 root root 174K  5 de febr. 17:14 config-6.7.3-gentoo
drwxr-xr-x 3 root root  512 10 de gen.  13:03 EFI
drwxr-xr-x 6 root root 1,0K  5 de febr. 17:18 grub
-rwxr-xr-x 1 root root 4,3M 23 de gen.  02:19 System.map-6.6.13-gentoo
-rwxr-xr-x 1 root root 4,3M  5 de febr. 17:14 System.map-6.7.3-gentoo
-rwxr-xr-x 1 root root 7,7M 23 de gen.  02:19 vmlinuz-6.6.13-gentoo
-rwxr-xr-x 1 root root 7,7M  5 de febr. 17:14 vmlinuz-6.7.3-gentoo


# LC_MESSAGES=C.utf8 grub-mkconfig -o /boot/grub/grub.cfg
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-6.7.3-gentoo
Found linux image: /boot/vmlinuz-6.6.13-gentoo
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


:wink:
_________________
"~amd64" --cpu 7700 non-x --DDR5 2x16GB 6000MHz --gpu RX 470
Back to top
View user's profile Send private message
vm666
n00b
n00b


Joined: 24 Oct 2003
Posts: 56

PostPosted: Thu Feb 22, 2024 5:29 pm    Post subject: Reply with quote

Was this problem reported upstream?
Back to top
View user's profile Send private message
GDH-gentoo
Veteran
Veteran


Joined: 20 Jul 2019
Posts: 1531
Location: South America

PostPosted: Fri Feb 23, 2024 12:08 pm    Post subject: Reply with quote

vm666 wrote:
Was this problem reported upstream?

Something very similar was reported as kernel bug #218353, although it mentions the content of /proc/self/mountinfo rather than the result of the BTRFS_IOC_DEV_INFO ioctl. The patch may or may not have fixed both problems. Running the test program in this thread's previous page on a system with a patched kernel should tell.
_________________
NeddySeagoon wrote:
I'm not a witch, I'm a retired electronics engineer :)
Ionen wrote:
As a packager I just don't want things to get messier with weird build systems and multiple toolchains requirements though :)
Back to top
View user's profile Send private message
anh0516
n00b
n00b


Joined: 01 Mar 2024
Posts: 1

PostPosted: Fri Mar 01, 2024 6:46 pm    Post subject: Reply with quote

I found a really easy workaround. Just create a symbolic link from /dev/root to /dev/<root block device>, and then run your GRUB commands. You could probably automate this with a udev rule.

I'm not well-versed enough to understand exactly what's going on with BTRFS_IOC_DEV_INFO in fs/btrfs/ioctl.c.
Back to top
View user's profile Send private message
papu
l33t
l33t


Joined: 25 Jan 2008
Posts: 709
Location: Sota algun pi o alzina...

PostPosted: Mon Mar 11, 2024 1:41 pm    Post subject: Reply with quote

kernel 6.8.0 is still with same problem :roll: but the patch es works well
_________________
"~amd64" --cpu 7700 non-x --DDR5 2x16GB 6000MHz --gpu RX 470
Back to top
View user's profile Send private message
papu
l33t
l33t


Joined: 25 Jan 2008
Posts: 709
Location: Sota algun pi o alzina...

PostPosted: Wed Apr 03, 2024 8:51 pm    Post subject: Reply with quote

papu wrote:
kernel 6.8.0 is still with same problem :roll: but the patch es works well


6.8.3 finally seems is fixed

thanks!
_________________
"~amd64" --cpu 7700 non-x --DDR5 2x16GB 6000MHz --gpu RX 470
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Goto page Previous  1, 2, 3
Page 3 of 3

 
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