Bug 43329 - grub.filetrigger calls egrep(1)
Summary: grub.filetrigger calls egrep(1)
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: grub (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: Николай Костригин
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-07-24 20:59 MSK by Arseny Maslennikov
Modified: 2022-08-23 18:36 MSK (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Arseny Maslennikov 2022-07-24 20:59:50 MSK
https://git.altlinux.org/gears/g/grub.git?p=grub.git;a=blob;f=grub.filetrigger;h=2faf9f9057c7ee735e56325dd82efa755f265546;hb=b18b6c524372a422c9fc2a10df2c3bbe06564908

> if egrep '^/boot/(vmlinuz|xen|memtest)|^/usr/lib(64|)/grub'; then
>         grub-mkconfig -o "$GRUB_AUTOUPDATE_CFGNAME" ||:
> fi | if egrep -qs '^/usr/lib(64|)/grub'; then

Скрипт обращается к egrep(1). Замените, пожалуйста, на 'grep -E' при следующем обновлении пакета.

Аналогично с grub-efi:
https://git.altlinux.org/gears/g/grub.git?p=grub.git;a=blob;f=grub-efi.filetrigger;h=bfdb401395056e6b7ccf828501d9cd0b39f7f22a;hb=b18b6c524372a422c9fc2a10df2c3bbe06564908

>         if egrep -qs '^/usr/lib/shim/BOOT.*\.CSV|^/usr/lib(64|)/grub'; then

P.S. Сам grub-install дёргает и egrep, и fgrep множество раз. С этим надо тоже что-то делать: или к апстриму идти, или собственную обёртку без диагностики упаковывать и в PATH подкладывать.
Comment 1 Repository Robot 2022-08-23 18:36:32 MSK
grub-2.06-alt8 -> sisyphus:

 Mon Aug 15 2022 Nikolai Kostrigin <nickel@altlinux> 2.06-alt8
 - fix FTBFS with new gnulib (upstream patchset)
 - grub(-efi): switch from 'egrep' to 'grep -E' in filetriggers (closes: #43329)
 - update os-alt patch: switch from 'fgrep' to 'grep -F'
 - add alt-util-grub.d-switch-from-fgrep-to-grep-F patch