Bug#1017411: dracut: 90kernel-modules spends 150ms doing a 3ms grep in bash

2022-10-13 Thread наб
Control: forwarded -1 https://github.com/dracutdevs/dracut/pull/2002 On Thu, Oct 13, 2022 at 05:50:48PM +0200, Thomas Lange wrote: > > which, after shedding the bashisms and the meaningless IFS=:, is just > > -- >8 -- > > grep ^/ "$srcmods/modules.dep" 2> /dev/null | instmods > > -

Bug#1017411: dracut: 90kernel-modules spends 150ms doing a 3ms grep in bash

2022-10-13 Thread Thomas Lange
> which, after shedding the bashisms and the meaningless IFS=:, is just > -- >8 -- > grep ^/ "$srcmods/modules.dep" 2> /dev/null | instmods > -- >8 -- I guess the dracut upstream developers do not want to have grep inside the initrd if not strictly needed. Only a few dracut module

Bug#1017411: dracut: 90kernel-modules spends 150ms doing a 3ms grep in bash

2022-08-15 Thread наб
Now it's attached. --- dracut-056.orig/modules.d/90kernel-modules/module-setup.sh +++ dracut-056/modules.d/90kernel-modules/module-setup.sh @@ -5,16 +5,6 @@ installkernel() { local _blockfuncs='ahci_platform_get_resources|ata_scsi_ioctl|scsi_add_host|blk_cleanup_queue|register_mtd_blktrans|scs