On Wed, 20 Nov 2019 15:08:25 -0500 Nick Anderegg <n...@anderegg.io> wrote:
> I can confirm that mounting /run in the chroot significantly speeds up
> `update-grub' as well as lvm scan commands.
>
> I'm bootstrapping a new virtual machine from a live disk and
> `update-grub` was running in the chroot. In a separate terminal, I
> entered the following command and `update-grub` finished nearly
> instantly:
>
> $ sudo mount --bind /run /mnt/target/run
>
> This is not a solution to the bug, but it's certainly a viable
workaround.

In my case it was sufficient as workaround to bind mount /run/udev
rather than the whole of /run.

lvdisplay went from 6m41s to 152ms!  And update-grub doesn't 'hang' for
hours.

Reply via email to