Skip to content

Commit

Permalink
fix(dracut-systemd): replace rd.udev.log-priority with `rd.udev.log…
Browse files Browse the repository at this point in the history
…_level`

`rd.udev.log-priority` is deprecated since systemd-v247
(systemd/systemd@64a3494c)

Also, fix deprecation warning not being displayed for `rdudevinfo` and
`rdudevdebug`.
  • Loading branch information
aafeijoo-suse committed Jan 24, 2024
1 parent 4980bad commit 778ba5d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions modules.d/98dracut-systemd/dracut-cmdline.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@ fi

info "Using kernel command line parameters:" "$(getcmdline)"

getargbool 0 rd.udev.log-priority=info -d rd.udev.info -d -n -y rdudevinfo && echo 'udev_log="info"' >> /etc/udev/udev.conf
getargbool 0 rd.udev.log-priority=debug -d rd.udev.debug -d -n -y rdudevdebug && echo 'udev_log="debug"' >> /etc/udev/udev.conf
getargbool 0 rd.udev.log_level=info -d rd.udev.log-priority=info -d rd.udev.info -d -y rdudevinfo \
&& echo 'udev_log="info"' >> /etc/udev/udev.conf
getargbool 0 rd.udev.log_level=debug -d rd.udev.log-priority=debug -d rd.udev.debug -d -y rdudevdebug \
&& echo 'udev_log="debug"' >> /etc/udev/udev.conf

source_conf /etc/conf.d

Expand Down

0 comments on commit 778ba5d

Please sign in to comment.