On 12/15/2017 06:43 AM, Pascal Hambourg wrote:
Le 15/12/2017 à 13:18, Steve Keller a écrit :
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.
This is due to os-prober invoked by update-grub. To avoid it, you can
either
- remove the os-prober package
- or add GRUB_DISABLE_OS_PROBER=true in /etc/default/grub.
I have 2 similar problems which wouldn't be solved by disabling os-prober.
The common characteristic is wishing to probe all operating systems
residing on on a specific physical device. I multi-boot. There may be an
OS on any number of mounted devices (flash drives etc) which I do not
wish to probe.
I also install Debian to a USB flash drive (intended to be multi-boot)
for an unrelated machine. When I install the grub adds all OS from the
"host" machine. This may be more an installer issue than a pure grub
issue. Manually editing grub.cfg "solves" the initial problem. And yes,
I know why that's not a recommended practice ;)