[CentOS] CentOS grub.conf
Rodrigo Barbosa
rodrigob at suespammers.org
Fri Jun 10 20:36:44 UTC 2005
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Fri, Jun 10, 2005 at 09:01:31PM +0200, Maciej ?enczykowski wrote:
> i believe this is in /sbin/new-kernel-pkg in mkinitrd-4.1.18-2
> on line 132:
>
> title="$(sed 's/ release.*$//' < /etc/redhat-release) ($version)"
>
> which IMHO should be:
>
> title="$(sed 's/ release.*$//' < /etc/redhat-release | head -n 1)
> ($version)"
There is no need to use "head", since sed can handle that on its own.
Just make it 's/ release.*$//;q'. It will only process 1 line from
the input file, even if 's' doesn't match anything.
- --
Rodrigo Barbosa <rodrigob at suespammers.org>
"Quid quid Latine dictum sit, altum viditur"
"Be excellent to each other ..." - Bill & Ted (Wyld Stallyns)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
iD8DBQFCqfncpdyWzQ5b5ckRAoBwAJ4/e578WsJdia3TPzOmkUfmhTF5GwCgnYfh
4o3mQaBNkGSO5OC/1vMARms=
=+eiI
-----END PGP SIGNATURE-----
More information about the CentOS
mailing list