Skip to content

dkms: always use read_conf_or_die#354

Merged
scaronni merged 1 commit intodkms-project:masterfrom
evelikov:fatal-conf
Oct 21, 2023
Merged

dkms: always use read_conf_or_die#354
scaronni merged 1 commit intodkms-project:masterfrom
evelikov:fatal-conf

Conversation

@evelikov
Copy link
Collaborator

Currently dkms status and by extension dkms autoinstall use read_conf, which prints an error yet results in the commands succeeding.

Browsing across Arch and Debian, this can only happen on user error. As such lets flip it to the fatal "_or_die" variant, like all the other instances in the codebase.


See #352 for context.

/cc @scaronni @anbe42 @C0rn3j do shout if you think this is a bad idea, thanks in advance.

Currently dkms status and by extension dkms autoinstall use read_conf,
which prints an error yet results in the commands succeeding.

Browsing across Arch and Debian, this can only happen on user error. As
such lets flip it to the fatal "_or_die" variant, like all the other
instances in the codebase.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
@scaronni scaronni merged commit c0004f0 into dkms-project:master Oct 21, 2023
@evelikov evelikov deleted the fatal-conf branch October 21, 2023 19:58
@evelikov evelikov mentioned this pull request Oct 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants