libera/#eudev/ Friday, 2023-09-29

TxLogicGuyI have created an initramfs file from scratch.  My system (CRUX) is booting OK but I would like to optimize the initramfs some.  Specifically, I would like to determine which .rules file I actually need.  Is there a way to get eudev to output a trace of which rules files it is actually using?22:20
TxLogicGuyI tried setting dev_log=info in /etc/udev/udev.conf, but that didn't do anything as far as I could tell.22:21
TxLogicGuyI tried setting dev_log=debug in /etc/udev/udev.conf and that resulted in two messages appearing in the console: "calling: trigger" and "calling: settle".  If eudev is outputing more debug information somewhere I don't know where to find it.22:23
bb|hcbTxLogicGuy: It is loading all the rules, so logging which files were loaded will most probably not help you.22:52
genr8eofl_thats a good feature to have but I havent seen a way to do it22:52
bb|hcbOTOH logging which devices were detected and what rules applied to create their dev nodes is also not very helpful, imho, because that depends on what devices you have on that particular system22:53
genr8eofl_i see it helpful22:55
TxLogicGuyI know that it depends on the system but I am trying to optimize the initramfs for my particular system.22:56
bb|hcbAnd I'd presume that in the initramfs you only need the rules for the devices used to boot. My wild, uneducated guess would be that in many cases you can boot without eudev at all22:56
bb|hcbgenr8eofl_: Agreed, for debugging and understanding what is happening...22:57
TxLogicGuyyes22:57
genr8eofl_what about running udevd with --debug ?22:58
genr8eofl_combined with the option you mentioned.23:00
TxLogicGuyI tried boot without eudev. My root partition is on a RAID0 array.  I could execute "mdadm --assemble --scan" and the main raid array, /dev/md126, was detected, but the partitions, md126p1, md126p2, etc. did not appear in /dev without eudev running.23:00
TxLogicGuyI'll try running udevd with --debug along with udev_log=debug23:04
TxLogicGuyOh, wow! That output tons of messages.  Is there a way to save all those messages that scrolled off the screen so I can analyze them?23:19
bb|hcbBTW. man mdadm, search for -a, --auto{=yes,md,mdp,part,p}{NN}23:43
bb|hcbI'd guess that mdadm defaults to md23:43
bb|hcbHTH :)23:46

Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!