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.
This commit is contained in:
Diego Escalante Urrelo 2012-04-05 20:43:55 -05:00 committed by Colin Walters
parent 8941333508
commit 9be95cd8d2
1 changed files with 1 additions and 2 deletions

View File

@ -42,8 +42,7 @@ EOF
EOF EOF
} }
machine=$(uname -m) kernels=$(echo /boot/vmlinuz-*)
kernels=$(echo /boot/vmlinuz-*.${machine})
while [ "x${kernels}" != x ]; do while [ "x${kernels}" != x ]; do
linux=`version_find_latest $kernels` >&2 linux=`version_find_latest $kernels` >&2
basename=`basename $linux` basename=`basename $linux`