plus3it / plus3it/amigen8

[Feature Request] Suppress ``grub2-mkconfig` file-descriptor warnings

Open Beginner friendly
#143 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Shell
Stars
10
Forks
16
PR merge metrics
No merged PRs in 30d

Description

When running the final phases of the automation (when grub2-mkconfig -o /boot/grub2/grub.cfg is being run), the logs fill up with:

Generating grub configuration file ...
File descriptor 10 (/dev/pts/0) leaked on vgs invocation. Parent PID 110906: /usr/sbin/grub2-probe
File descriptor 11 (/dev/pts/0) leaked on vgs invocation. Parent PID 110906: /usr/sbin/grub2-probe
File descriptor 12 (/dev/pts/0) leaked on vgs invocation. Parent PID 110906: /usr/sbin/grub2-probe
[...elided...]

Messages. While non-fatal, it's annoying and needlessly "chatty". Adding LVM_SUPPRESS_FD_WARNINGS=1 when invoking grub2-mkconfig would make the logged activity-output cleaner.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Find the final automation phase that invokes grub2-mkconfig -o /boot/grub2/grub.cfg, then reproduce or inspect its logged output. Update that invocation to include LVM_SUPPRESS_FD_WARNINGS=1; the work is done when the GRUB configuration still completes and the non-fatal file-descriptor warnings no longer appear.

Written by the indexing model from the issue text.

Assessment

Tech stack
shell
Domain
devops
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
74/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.