Bug#388724: grub: automatically update /etc/kernel-img.conf
Robert Millan
rmh at aybabtu.com
Sun Sep 24 10:01:06 UTC 2006
On Sat, Sep 23, 2006 at 04:31:56PM -0700, Karl Chen wrote:
> >>>>> On 2006-09-23 01:57 PDT, Robert Millan writes:
>
> Robert> That matches more things than necessary (e.g. replaces
> Robert> /usr/sbin/update-grub with /usr/update-grub). If at
> Robert> all, it would have to be something like:
>
> Robert> sed -i /etc/kernel-img.conf -e "s,\(.*\)
> Robert> */sbin/update-grub$,\1 update-grub,g"
>
> Good point. That line looks good (do you need the g though?).
I always add the g so that I don't have to worry on wether I need the g or not.
When I want a more strict regex that would only match once, then I write a more
strict regex rather than removing g. It is easier for me to read it this way.
--
Robert Millan
My spam trap is honeypot at aybabtu.com. Note: this address is only intended for
spam harvesters. Writing to it will get you added to my black list.
More information about the Pkg-grub-devel
mailing list