Skip to content

Commit

Permalink
fix(dracut-logger.sh): double dash trigger unknown logger warnings du…
Browse files Browse the repository at this point in the history
…ring run

There are a bunch of `logger: unknown facility name: --user` errors
during a run. This is because logger is getting passed something like:

```
logger -p --user.info
```

Where it should be something like:

```
logger -p user.info
```
  • Loading branch information
dustymabe authored and haraldh committed Apr 15, 2021
1 parent 651fe01 commit 4fbccde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dracut-logger.sh
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ _lvl2char() {
# @retval 0 if @a lvl is correct.
# @result Echoes logger priority.
_lvl2syspri() {
printf "%s" -- "$syslogfacility."
printf -- "%s" "$syslogfacility."
case "$1" in
1) echo crit ;;
2) echo error ;;
Expand Down

0 comments on commit 4fbccde

Please sign in to comment.