[rhelv6-beta-list] kernel-release now appends the arch

David Cantrell dcantrell at redhat.com
Thu Apr 29 00:07:58 UTC 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu, 29 Apr 2010, Ned Slider wrote:

> Hi list,
>
> More an observation, but 'uname -r' (kernel-release) now appends the arch. 
> For example:
>
> on RHEL5:
>
> $ uname -r
> 2.6.18-194.el5
>
> on RHEL6:
>
> $ uname -r
> 2.6.32-19.el6.i686
>
> Which causes havoc in scripts/spec files etc that are using 'uname -r'.

How about this for your scripts:

     kver="$(basename $(uname -r) .$(uname -m))"

To emulate RHEL-5 functionality?  Though now [beta] is a good time for you to
update your scripts.

- -- 
David Cantrell <dcantrell at redhat.com>
Red Hat / Honolulu, HI

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAkvYzd4ACgkQ5hsjjIy1VknAigCeJt9jg6iVqK+G0Xhd7oBYmv/P
Oh0AoIX8rmi5Du0vm+APvmqom8IWKikg
=pQEJ
-----END PGP SIGNATURE-----




More information about the rhelv6-beta-list mailing list