Artix Linux Forum

Init systems => OpenRC => Topic started by: robto on 07 December 2022, 02:45:37

Title: grep warning
Post by: robto on 07 December 2022, 02:45:37
When i boot artix openrc.  I have a warning:
grep: warning: stray \ before -
grep: warning: stray \ before -
Title: Re: grep warning
Post by: lq on 07 December 2022, 07:07:33
When i boot artix openrc.  I have a warning:
grep: warning: stray \ before -
grep: warning: stray \ before -

The solution is quite simple:

Code: [Select]
sudo -i
sed -i 's/\\-\\-noadjfile/\\--noadjfile/g' /etc/init.d/hwclock
exit

After reboot, the inconvenience is gone.
Title: Re: grep warning
Post by: mrbrklyn on 11 December 2022, 04:29:39
The solution is quite simple:

Code: [Select]
sudo -i
sed -i 's/\\-\\-noadjfile/\\--noadjfile/g' /etc/init.d/hwclock
exit

After reboot, the inconvenience is gone.

there is a scripting error in the hwclock init file?
Title: Re: grep warning
Post by: lq on 11 December 2022, 10:37:03
there is a scripting error in the hwclock init file?

Yes. It is located in the openrc source code.
Title: Re: grep warning
Post by: mrbrklyn on 13 December 2022, 01:36:14
Yes. It is located in the openrc source code.

Shouldn't the package be fixed then?  Is it our package?
Title: Re: grep warning
Post by: onekk on 23 December 2022, 09:47:10
It
Shouldn't the package be fixed then?  Is it our package?

It will be a good thing, as it is annoying having it.

FYI there are some solutions, in another forum I've found an alternative writing, that is told to be more compatible:

Code: [Select]
grep -q -e "--noadjfile";

I've implemented it and now Artix boot without complain.

Regards

Carlo D.