#805152 grub-pc: file descriptor leaked on vgs invocation

Package:
grub-pc
Source:
grub2
Description:
GRand Unified Bootloader, version 2 (PC/BIOS version)
Submitter:
Arturo Borrero Gonzalez
Date:
2023-10-21 18:21:03 UTC
Severity:
minor
Tags:
#805152#5
Date:
2015-11-15 11:33:06 UTC
From:
To:
dear maintainers, thanks for your work with grub.

Today, upgrading the grub-pc package (amd64 2.02~beta2-31) using
aptitude, this happened:

[...]
Configuring grub-pc-bin (2.02~beta2-31) ...
Configuring grub-pc (2.02~beta2-31) ...
Installing for i386-pc platform.
File descriptor 3 (pipe:[55356]) leaked on vgs invocation. Parent PID 5143: grub-install
File descriptor 3 (pipe:[55356]) leaked on vgs invocation. Parent PID 5143: grub-install
File descriptor 3 (pipe:[55356]) leaked on vgs invocation. Parent PID 5143: grub-install
Intallation finished. No errors reported.
Generating grub configuration file ...
Found background image: /usr/share/images/desktop-base/desktop-grub.png
Encontrada imagen de linux: /boot/vmlinuz-4.2.0-1-amd64
Encontrada imagen de memoria inicial: /boot/initrd.img-4.2.0-1-amd64
[...]

#805152#10
Date:
2015-11-15 19:47:21 UTC
From:
To:
Hi,

perhaps this bug belongs to lvm2? I don't know.

Please, reassign if necessary.

thanks, best regards.

#805152#15
Date:
2023-10-21 18:19:11 UTC
From:
To:
Repros on current sid,
started seeing it since I switched this system to LVM.
Patch attached, derivation below.