View previous topic :: View next topic |
Author |
Message |
GDH-gentoo Veteran
Joined: 20 Jul 2019 Posts: 1655 Location: South America
|
Posted: Sat Jan 27, 2024 5:55 pm Post subject: |
|
|
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 |
|
|
grknight Retired Dev
Joined: 20 Feb 2015 Posts: 1849
|
Posted: Sun Jan 28, 2024 2:29 am Post subject: |
|
|
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 |
|
|
GDH-gentoo Veteran
Joined: 20 Jul 2019 Posts: 1655 Location: South America
|
Posted: Sun Jan 28, 2024 2:19 pm Post subject: |
|
|
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 |
|
|
papu l33t
Joined: 25 Jan 2008 Posts: 728 Location: Sota algun pi o alzina...
|
Posted: Mon Feb 05, 2024 4:36 pm Post subject: |
|
|
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
|
_________________ --so ~amd64 & openrc --cpu 7700 non-x --ram 2x16GB --gpu RX 470 |
|
Back to top |
|
|
vm666 n00b
Joined: 24 Oct 2003 Posts: 65
|
Posted: Thu Feb 22, 2024 5:29 pm Post subject: |
|
|
Was this problem reported upstream? |
|
Back to top |
|
|
GDH-gentoo Veteran
Joined: 20 Jul 2019 Posts: 1655 Location: South America
|
Posted: Fri Feb 23, 2024 12:08 pm Post subject: |
|
|
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 |
|
|
anh0516 n00b
Joined: 01 Mar 2024 Posts: 2
|
Posted: Fri Mar 01, 2024 6:46 pm Post subject: |
|
|
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 |
|
|
papu l33t
Joined: 25 Jan 2008 Posts: 728 Location: Sota algun pi o alzina...
|
Posted: Mon Mar 11, 2024 1:41 pm Post subject: |
|
|
kernel 6.8.0 is still with same problem but the patch es works well _________________ --so ~amd64 & openrc --cpu 7700 non-x --ram 2x16GB --gpu RX 470 |
|
Back to top |
|
|
papu l33t
Joined: 25 Jan 2008 Posts: 728 Location: Sota algun pi o alzina...
|
Posted: Wed Apr 03, 2024 8:51 pm Post subject: |
|
|
papu wrote: | kernel 6.8.0 is still with same problem but the patch es works well |
6.8.3 finally seems is fixed
thanks! _________________ --so ~amd64 & openrc --cpu 7700 non-x --ram 2x16GB --gpu RX 470 |
|
Back to top |
|
|
|