Re: update-grub: how to avoid scanning all devices
On Fri 15 Dec 2017 at 13:18:17 +0100, Steve Keller wrote:
> When calling update-grub, it scans all devices for operating systems
> to put into the GRUB config. It even mounts all block devices to do
> the scan. I'd like to avoid this and let it scan only a number of
> configured directories, in my case only /boot. Scanning all devices
> is annoying because
>
> * all disks that are normally idle and that have spun down (e.g. my
> backup drives) have to spin up. This wears off my disks
> unnecessarily and also causes long delays.
>
> * update-grub finds a number of operating systems that I don't want in
> the GRUB config, e.g. on logical volumes for virtual machines,
> backup images of old machines, etc.
>
> I haven't found anything on this topic in the documentation.
Purge os-prober.
--
Brian.
Reply to: