#1105024 cache os-prober?

Package:
grub-common
Source:
grub-common
Description:
GRand Unified Bootloader (common files)
Submitter:
Harald Dunkel
Date:
2025-05-10 05:18:02 UTC
Severity:
normal
#1105024#5
Date:
2025-05-10 05:14:28 UTC
From:
To:
Running os-prober on my PC takes about 30 seconds:

# time os-prober
/dev/mapper/vg00-arch:Arch Linux:Arch:linux
/dev/mapper/vg00-backup:Debian GNU/Linux bookworm/sid:Debian:linux

real	0m26.858s
user	0m0.239s
sys	0m0.343s

If I have to remove a few development kernels via apt, update-grub
and os-prober are run again and again, until the last kernel is gone.
This can take quite some time. Do you think it would be possible to
cache the output of os-prober to reduce run time?