From 9be95cd8d294b6a3d5309d6b449718dc290a8537 Mon Sep 17 00:00:00 2001 From: Diego Escalante Urrelo Date: Thu, 5 Apr 2012 20:43:55 -0500 Subject: [PATCH] 15_ostree: don't assume kernel arch names uname -m is not always the suffix of the kernel image. Debian uses -686-pae, but uname -m would say i686. This creates an infinite loop in Debian. --- gnomeos/15_ostree | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gnomeos/15_ostree b/gnomeos/15_ostree index 554e0bc3..dc6fb9fe 100755 --- a/gnomeos/15_ostree +++ b/gnomeos/15_ostree @@ -42,8 +42,7 @@ EOF EOF } -machine=$(uname -m) -kernels=$(echo /boot/vmlinuz-*.${machine}) +kernels=$(echo /boot/vmlinuz-*) while [ "x${kernels}" != x ]; do linux=`version_find_latest $kernels` >&2 basename=`basename $linux`