On Thu, Jul 15, 2021 at 05:35:28PM +0200, Petr Vorel wrote: > From: Jeff Mahoney <je...@suse.com> > > sysfs_partition_path() calls udevadm to resolve the sysfs path for > a block device. That can be accomplished by stating the device node > and using the major/minor to follow the symlinks in /sys/dev/block/. > > This cuts the execution time of grub-mkconfig to somewhere near 55% on > system without LVM (which uses libdevmapper instead sysfs_partition_path()). > > Signed-off-by: Jeff Mahoney <je...@suse.com> > [ pvorel: remove udevadm fallback as it does not help us more than > calling stat() directly; include <grub/osdep/major.h>, update commit > message. ] > Signed-off-by: Petr Vorel <pvo...@suse.cz>
Reviewed-by: Daniel Kiper <daniel.ki...@oracle.com> Daniel _______________________________________________ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel