[Bug 466587] New: uname script not showing the proper kernel version {coreutils->post-build-checks}
https://bugzilla.novell.com/show_bug.cgi?id=466587 User vjsanjay@gmail.com added comment https://bugzilla.novell.com/show_bug.cgi?id=466587#c1 Summary: uname script not showing the proper kernel version {coreutils->post-build-checks} Classification: openSUSE Product: openSUSE 11.1 Version: RC 2 Platform: All OS/Version: openSUSE 11.1 Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: vjsanjay@gmail.com QAContact: qa@suse.de Found By: --- User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1b2) Gecko/20081208 SUSE/3.1b2-3.7 Firefox/3.1b2 I have compiled and installed the custom kernel 2.6.29-rc1. After booting up the custom kernel and issuing uname -a shows incorrect version. vjsanjay@sbvn:~> uname -a Linux sbvn 2.6.27.7-9-default #1 SMP PREEMPT Thu Jan 15 19:10:37 IST 2009 x86_64 x86_64 x86_64 GNU/Linux vjsanjay@sbvn:~> uname.bin -a Linux sbvn 2.6.29-rc1-9-default #1 SMP PREEMPT Thu Jan 15 19:10:37 IST 2009 x86_64 x86_64 x86_64 GNU/Linux vjsanjay@sbvn:~> Reproducible: Always Steps to Reproduce: 1. build a custom kernel and boot it 2. issue uname -a 3. Actual Results: vjsanjay@sbvn:~> uname -a Linux sbvn 2.6.27.7-9-default #1 SMP PREEMPT Thu Jan 15 19:10:37 IST 2009 x86_64 x86_64 x86_64 GNU/Linux vjsanjay@sbvn:~> Expected Results: vjsanjay@sbvn:~> uname -a Linux sbvn 2.6.29-rc1-9-default #1 SMP PREEMPT Thu Jan 15 19:10:37 IST 2009 x86_64 x86_64 x86_64 GNU/Linux vjsanjay@sbvn:~> -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=466587 Sanjay Kumar J <vjsanjay@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Version|RC 2 |Final -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=466587 User vjsanjay@gmail.com added comment https://bugzilla.novell.com/show_bug.cgi?id=466587#c1 --- Comment #1 from Sanjay Kumar J <vjsanjay@gmail.com> 2009-01-15 14:19:07 MST --- vjsanjay@sbvn:~> more /bin/uname #!/bin/bash OUTPUT=`uname.bin $*` if test -f /.kernelversion ; then MREL=`cat /.kernelversion` fi if test -z "$MREL" -a -L /usr/src/linux -a -d /usr/src/linux ; then MREL=$( shopt -s nullglob; set -- /lib/modules/*-default /lib/modules/* ; basename $1 ) fi if test -z "$MREL" -a -f /usr/src/linux/Makefile ; then MREL=`grep "^VERSION = " /usr/src/linux/Makefile 2> /dev/null | sed -e "s/VERSION = //"` MREL=$MREL.`grep "^PATCHLEVEL = " /usr/src/linux/Makefile 2> /dev/null | sed -e "s/PATCHLEVEL = //"` MREL=$MREL.`grep "^SUBLEVEL = " /usr/src/linux/Makefile 2> /dev/null | sed -e "s/SUBLEVEL = //"` fi if test -z "$MREL" ; then MREL=`grep UTS /usr/include/linux/version.h 2> /dev/null | sed -ne "s/.*\"\(.*\)\".*/\1/p;q"` fi if test -n "$MREL" ; then echo $OUTPUT | sed -e "s/[0-9]\.[0-9]\.[0-9][-.0-9a-zA-Z_]*/$MREL/" else echo $OUTPUT fi vjsanjay@sbvn:~> vjsanjay@sbvn:~> bash -x /bin/uname -a ++ uname.bin -a + OUTPUT='Linux sbvn 2.6.29-rc1-9-default #1 SMP PREEMPT Thu Jan 15 19:10:37 IST 2009 x86_64 x86_64 x86_64 GNU/Linux' + test -f /.kernelversion + test -z '' -a -L /usr/src/linux -a -d /usr/src/linux ++ shopt -s nullglob ++ set -- /lib/modules/2.6.27.7-9-default /lib/modules/2.6.29-rc1-9-default /lib/modules/2.6.27.7-9-debug /lib/modules/2.6.27.7-9-default /lib/modules/2.6.27.7-9-trace /lib/modules/2.6.27.7-9-xen /lib/modules/2.6.29-rc1-9-default ++ basename /lib/modules/2.6.27.7-9-default + MREL=2.6.27.7-9-default + test -z 2.6.27.7-9-default -a -f /usr/src/linux/Makefile + test -z 2.6.27.7-9-default + test -n 2.6.27.7-9-default + echo Linux sbvn 2.6.29-rc1-9-default '#1' SMP PREEMPT Thu Jan 15 19:10:37 IST 2009 x86_64 x86_64 x86_64 GNU/Linux + sed -e 's/[0-9]\.[0-9]\.[0-9][-.0-9a-zA-Z_]*/2.6.27.7-9-default/' Linux sbvn 2.6.27.7-9-default #1 SMP PREEMPT Thu Jan 15 19:10:37 IST 2009 x86_64 x86_64 x86_64 GNU/Linux vjsanjay@sbvn:~> -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=466587 User chrubis@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=466587#c2 Cyril Hrubis <chrubis@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |vjsanjay@gmail.com --- Comment #2 from Cyril Hrubis <chrubis@novell.com> 2009-01-18 10:54:02 MST --- What's output from "rpm -qf /bin/uname" and "rpm -qf /bin/uname.bin"? In my installation /bin/uname is directly binary uname from coreutils. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=466587 User vjsanjay@gmail.com added comment https://bugzilla.novell.com/show_bug.cgi?id=466587#c3 --- Comment #3 from Sanjay Kumar J <vjsanjay@gmail.com> 2009-01-18 11:08:41 MST --- vjsanjay@sbvn:~> rpm -qf /bin/uname coreutils-6.12-32.10 vjsanjay@sbvn:~> rpm -qf /bin/uname.bin file /bin/uname.bin is not owned by any package vjsanjay@sbvn:~> -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=466587 User chrubis@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=466587#c4 --- Comment #4 from Cyril Hrubis <chrubis@novell.com> 2009-01-18 11:22:28 MST --- It looks like some script have moved /bin/uname to /bin/uname.bin and have created /bin/uname script. Do you have any idea what could caused this? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=466587 User vjsanjay@gmail.com added comment https://bugzilla.novell.com/show_bug.cgi?id=466587#c5 --- Comment #5 from Sanjay Kumar J <vjsanjay@gmail.com> 2009-01-18 11:32:59 MST --- vjsanjay@sbvn:~> ls -al /bin/uname lrwxrwxrwx 1 root root 30 2009-01-14 18:44 /bin/uname -> /usr/lib/build/helper/uname.sh vjsanjay@sbvn:~>rpm -qf /usr/lib/build/helper/uname.sh post-build-checks-1.0-53.12.1 vjsanjay@sbvn:~> post-build-checks from the 11.1 update repo -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=466587 Cyril Hrubis <chrubis@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |chrubis@novell.com AssignedTo|bnc-team-screening@forge.pr |ro@novell.com |ovo.novell.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=466587 Cyril Hrubis <chrubis@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|vjsanjay@gmail.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=466587 User ro@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=466587#c6 Ruediger Oertel <ro@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #6 from Ruediger Oertel <ro@novell.com> 2009-01-18 18:16:07 MST --- post-build-checks is _never_ intended to be installed in a running system, it's for package build environments (chrooted or xen-jailed) only. The broken uname is just one of the smaller issues you'll see. %description some scripts to check for problems like test-installing the newly created rpms and checking the logfile for errors. This package will also set/change the following sysconfig variables, so it may not be a good idea to install this to a running system: /etc/sysconfig/security:PERMISSION_SECURITY="secure" /etc/sysconfig/clock:TIMEZONE="UTC" -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com