[opensuse-kernel] [PATCH] Continue if kernel arch doesn-t match
The point of the existing code is to preserve /boot/vmlinux if a kernel is installed that cant possibly boot on the system. I suggest to check why the wrong kernel.arch.rpm is installed in the build chroot. Olaf On Mon, Sep 02, Dinar Valeev wrote:
While building pacakges within OBS, VM runs 64bit kernel all the time. Don't exit if arch doesn't match, Warning should be enough for user. --- rpm/post.sh | 1 - 1 file changed, 1 deletion(-)
diff --git a/rpm/post.sh b/rpm/post.sh index 1aa6190..f964519 100644 --- a/rpm/post.sh +++ b/rpm/post.sh @@ -8,7 +8,6 @@ touch /boot/do_purge_kernels wrong_boardtype() { echo "This kernel-@FLAVOR@.@RPM_TARGET_CPU@.rpm is for $1, it will not boot on this system." echo "The /boot/vmlinux symlink will not be created or updated." - exit 0 } if [ -f /proc/cpuinfo ]; then case "@FLAVOR@-@RPM_TARGET_CPU@" in -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kernel+owner@opensuse.org
That's libquestfs package. The problem is during the build we run 64bit kernel even for 32bit jobs. Due that check script is not creating /boot/vmlinux link mkinitrd then fails to find it -> build failure On Mon, Sep 2, 2013 at 3:06 PM, Olaf Hering <aepfle@gmail.com> wrote:
The point of the existing code is to preserve /boot/vmlinux if a kernel is installed that cant possibly boot on the system. I suggest to check why the wrong kernel.arch.rpm is installed in the build chroot.
Olaf
On Mon, Sep 02, Dinar Valeev wrote:
While building pacakges within OBS, VM runs 64bit kernel all the time. Don't exit if arch doesn't match, Warning should be enough for user. --- rpm/post.sh | 1 - 1 file changed, 1 deletion(-)
diff --git a/rpm/post.sh b/rpm/post.sh index 1aa6190..f964519 100644 --- a/rpm/post.sh +++ b/rpm/post.sh @@ -8,7 +8,6 @@ touch /boot/do_purge_kernels wrong_boardtype() { echo "This kernel-@FLAVOR@.@RPM_TARGET_CPU@.rpm is for $1, it will not boot on this system." echo "The /boot/vmlinux symlink will not be created or updated." - exit 0 } if [ -f /proc/cpuinfo ]; then case "@FLAVOR@-@RPM_TARGET_CPU@" in -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kernel+owner@opensuse.org
-- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kernel+owner@opensuse.org
On Mon, Sep 02, Dinar Valeev wrote:
That's libquestfs package.
The problem is during the build we run 64bit kernel even for 32bit jobs. Due that check script is not creating /boot/vmlinux link mkinitrd then fails to find it -> build failure
I think the bug is that a setup-build-chroot for ppc is done with uname==ppc64. If thats fixed the post.sh should work. Olaf
On Mon, Sep 2, 2013 at 3:06 PM, Olaf Hering <aepfle@gmail.com> wrote:
The point of the existing code is to preserve /boot/vmlinux if a kernel is installed that cant possibly boot on the system. I suggest to check why the wrong kernel.arch.rpm is installed in the build chroot.
Olaf
On Mon, Sep 02, Dinar Valeev wrote:
While building pacakges within OBS, VM runs 64bit kernel all the time. Don't exit if arch doesn't match, Warning should be enough for user. --- rpm/post.sh | 1 - 1 file changed, 1 deletion(-)
diff --git a/rpm/post.sh b/rpm/post.sh index 1aa6190..f964519 100644 --- a/rpm/post.sh +++ b/rpm/post.sh @@ -8,7 +8,6 @@ touch /boot/do_purge_kernels wrong_boardtype() { echo "This kernel-@FLAVOR@.@RPM_TARGET_CPU@.rpm is for $1, it will not boot on this system." echo "The /boot/vmlinux symlink will not be created or updated." - exit 0 } if [ -f /proc/cpuinfo ]; then case "@FLAVOR@-@RPM_TARGET_CPU@" in -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kernel+owner@opensuse.org
-- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kernel+owner@opensuse.org
participants (4)
-
Dinar Valeev
-
Dinar Valeev
-
Olaf Hering
-
Olaf Hering