* [pve-devel] [PATCH pve-manager] pve7to8: fix broken pipe warning for dkms status invocation
@ 2025-03-28 17:48 Christian Ebner
2025-04-04 10:50 ` [pve-devel] applied: " Thomas Lamprecht
0 siblings, 1 reply; 2+ messages in thread
From: Christian Ebner @ 2025-03-28 17:48 UTC (permalink / raw)
To: pve-devel
The check for dkms kernel modules relies on the output of `dkms
status`. dkms command invocation will perform the following sanity
check:
```
if [ ! -e <(echo) ]; then
warn $"dkms will not function properly if /proc is not mounted."
fi
```
This check will however throw the following warning when SIGPIPE is
set to be ignored:
```
sbin/dkms: line 2497: echo: write error: Broken pipe
```
While only cosmetic, this can be confusing. Therefore, temporarily
enable SIGPIPE before calling dkms, restoring the originally setting
afterwards.
Reported-by: Alexander Zeidler <a.zeidler@proxmox.com>
Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
---
PVE/CLI/pve7to8.pm | 3 +++
1 file changed, 3 insertions(+)
diff --git a/PVE/CLI/pve7to8.pm b/PVE/CLI/pve7to8.pm
index 416ec79b..61710178 100644
--- a/PVE/CLI/pve7to8.pm
+++ b/PVE/CLI/pve7to8.pm
@@ -1356,9 +1356,12 @@ sub check_dkms_modules {
$count = scalar @_;
};
+ my $sig_pipe = $SIG{PIPE};
+ $SIG{PIPE} = "DEFAULT";
my $exit_code = eval {
run_command(['dkms', 'status', '-k', '`uname -r`'], outfunc => $set_count, noerr => 1)
};
+ $SIG{PIPE} = $sig_pipe;
if ($exit_code != 0) {
log_skip("could not get dkms status");
--
2.39.5
_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
* [pve-devel] applied: [PATCH pve-manager] pve7to8: fix broken pipe warning for dkms status invocation
2025-03-28 17:48 [pve-devel] [PATCH pve-manager] pve7to8: fix broken pipe warning for dkms status invocation Christian Ebner
@ 2025-04-04 10:50 ` Thomas Lamprecht
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Lamprecht @ 2025-04-04 10:50 UTC (permalink / raw)
To: Proxmox VE development discussion, Christian Ebner
Am 28.03.25 um 18:48 schrieb Christian Ebner:
> The check for dkms kernel modules relies on the output of `dkms
> status`. dkms command invocation will perform the following sanity
> check:
> ```
> if [ ! -e <(echo) ]; then
> warn $"dkms will not function properly if /proc is not mounted."
> fi
> ```
>
> This check will however throw the following warning when SIGPIPE is
> set to be ignored:
>
> ```
> sbin/dkms: line 2497: echo: write error: Broken pipe
> ```
>
> While only cosmetic, this can be confusing. Therefore, temporarily
> enable SIGPIPE before calling dkms, restoring the originally setting
> afterwards.
>
> Reported-by: Alexander Zeidler <a.zeidler@proxmox.com>
> Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
> ---
> PVE/CLI/pve7to8.pm | 3 +++
> 1 file changed, 3 insertions(+)
>
>
applied, thanks!
Also backported this to stable-7 and bumped a new version there with
some small other fixes included that mostly help on upgrade; as while
PVE 7 is EOL in general, I'm fine with rolling out polishing to make
upgrade easier, as that takes away even more excuses for not upgrading
already.
_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-04-04 10:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-03-28 17:48 [pve-devel] [PATCH pve-manager] pve7to8: fix broken pipe warning for dkms status invocation Christian Ebner
2025-04-04 10:50 ` [pve-devel] applied: " Thomas Lamprecht
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal