dracutdevs / dracut

dracut the event driven initramfs infrastructure
https://github.com/dracutdevs/dracut/wiki
GNU General Public License v2.0
600 stars 399 forks source link

Make rd.udev.debug work in systemd-based initrds #2576

Closed dtardon closed 10 months ago

dtardon commented 10 months ago

This makes rd.udev.debug work in systemd-based initrds too.

Changes

A systemd generator is added that sets log level of systemd-udevd.service to debug if rd.udev.debug is present on the kernel command line.

Note

rd.udev.info is ignored as that's the default log level of udevd. The existence of this option makes some sense in the legacy init.sh, as it sets the log level of udevd to err by default, but I don't think we want to go this way...

Checklist

LaszloGombos commented 10 months ago

Lint error :-)

-getargbool 0 rd.udev.debug -d -y rdudevdebug && cat > "$1" <<EOF
+getargbool 0 rd.udev.debug -d -y rdudevdebug && cat > "$1" << EOF
dtardon commented 10 months ago

Oops, sorry. Apparently I wasn't fully awake yet when I tried this in the morning... The option is handled (in modules.d/98dracut-systemd/dracut-cmdline.sh), I just didn't find it.