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:
1 parent
8941333508
commit
9be95cd8d2
1 file changed
+1
-2
+1
-2
@@ -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`
|
||||||
|
|||||||
Reference in new issue
Block a user