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 authored and Colin Walters committed 2012-04-05 21:48:35 -04:00
1 parent 8941333508
commit 9be95cd8d2
1 file changed
+1 -2
+1 -2
View File
@@ -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`