After uninstalling the dkms-nvidia module I got the error message "warning egrep is obsolete using grep -e" on boot directly after the message "checking for new hardware". I am not sure which systemd file is responsible for it and what script still contains the egrep command. Please hint me if you have found it.
Thank you for the report, not the first about this warning (from another place): Bug 30844 . Doubtless we shall see it again... I do not have either the hardware check or the egrep error message in my system journal. Can you post a short section of the journal before it? Assigning to basesystem for systemd.
Source RPM: (none) => systemd-252.4-1.mga9.src.rpmSee Also: (none) => https://bugs.mageia.org/show_bug.cgi?id=30844Assignee: bugsquad => basesystem
The checking for new hardware is from mandrake_everytime. I'm running m8 currently. # grep egrep /etc/init.d/* /etc/init.d/mandrake_everytime: NUMPROC=`egrep -c "^cpu[0-9]+" /proc/stat` # rpm -q -f /etc/init.d/mandrake_everytime initscripts-9.78-27.mga8 It's still there in cauldron https://svnweb.mageia.org/packages/cauldron/initscripts/current/SOURCES/initscripts-10.04-mageia.patch?revision=1614631&view=markup#l1961
Source RPM: systemd-252.4-1.mga9.src.rpm => initscripts-10.04-2.mga9.src.rpmCC: (none) => davidwhodgins
Strange, it did not end up in the syslog. I have run 'journalctl --since "2022-12-26"| grep egrep' and I got no result. Instead there are multiple matches for an obsolete fgrep concerning Shorewall. I have seen the "obsolete egrep, use grep -E" at least two times on boot.
Checking initscripts was a good hint, Dave, since at me (Mageia not Mandrake) there was (I had tried it as I filed the bug) not match in /etc/init.d or /etc/rc.*. # grep egrep $(rpm -ql initscripts) 2>/dev/null /usr/libexec/mageia_everytime: NUMPROC=`egrep -c "^cpu[0-9]+" /proc/stat` /usr/sbin/service: egrep -q 'restart.*\)' $subsys || continue /usr/sbin/service: echo $(egrep -a '^#.*chkconfig: ' $subsys|awk '{print $4}') $subsys /usr/sbin/service: if egrep -q ".*disable.*yes.*" ${xinetddir}/${serv};then /usr/sbin/service: if egrep -q '^([^#]*)status\)' $service;then
Created attachment 13602 [details] grep [ef]grep $(rpm -ql shorewall) 2>/dev/null Shall I also paste the fgrep-s for Shorewall here or open an on bug on Shorewall for it? There was no fgrep in initscripts on Mageia 9.
Created attachment 13603 [details] grep -n [ef]grep $(rpm -ql shorewall) 2>/dev/null It shall be done with grep -n to get line numbers: # grep -n egrep $(rpm -ql initscripts) 2>/dev/null /usr/libexec/mageia_everytime:77: NUMPROC=`egrep -c "^cpu[0-9]+" /proc/stat` /usr/sbin/service:34: egrep -q 'restart.*\)' $subsys || continue /usr/sbin/service:37: echo $(egrep -a '^#.*chkconfig: ' $subsys|awk '{print $4}') $subsys /usr/sbin/service:58: if egrep -q ".*disable.*yes.*" ${xinetddir}/${serv};then /usr/sbin/service:120: if egrep -q '^([^#]*)status\)' $service;then
Attachment 13602 is obsolete: 0 => 1
On Mageia 8 ... $ grep -n [ef]grep $(rpm -ql initscripts) 2>/dev/null /etc/rc.d/init.d/mandrake_everytime:77: NUMPROC=`egrep -c "^cpu[0-9]+" /proc/stat` /etc/sysconfig/network-scripts/ifdown-eth:121: ps xw | egrep "${CLIENTS}" | grep ${DEVICE} | awk '{print $1;}' /etc/sysconfig/network-scripts/ifdown-eth:164: for ip in `ip addr show | egrep ${DEVICE}\$ | grep inet | awk '{print $2;}'`; do /etc/sysconfig/network-scripts/ifup-wireless:136: echo "$WIRELESS_ENC_KEY" | egrep -q '^(open|restricted) ' /usr/sbin/service:34: egrep -q 'restart.*\)' $subsys || continue /usr/sbin/service:37: echo $(egrep -a '^#.*chkconfig: ' $subsys|awk '{print $4}') $subsys /usr/sbin/service:58: if egrep -q ".*disable.*yes.*" ${xinetddir}/${serv};then /usr/sbin/service:120: if egrep -q '^([^#]*)status\)' $service;then
One bug per package. Optionally a tracker bug that depends on all of the other bugs.
Attachment 13603 is obsolete: 0 => 1
bug for Shorewall is no bug 31334.
See Also: (none) => https://bugs.mageia.org/show_bug.cgi?id=31334