summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2016-07-14 21:57:47 +0200
committerDave Reisner <dreisner@archlinux.org>2016-07-17 21:10:22 +0200
commit8423083e79dc78cccfbf6b461d51e72faf7a586f (patch)
treeead032d204188769973b9218f7891f4a27bef577
parentf5129add0eb16c9511c9cb80433fb4568f1e2703 (diff)
downloadmkinitcpio-8423083e79dc78cccfbf6b461d51e72faf7a586f.tar.gz
mkinitcpio-8423083e79dc78cccfbf6b461d51e72faf7a586f.tar.xz
Support version extraction from i[3456]86 kernels
Arch might not really support some of these, but mkinitcpio can.
-rwxr-xr-xmkinitcpio4
1 files changed, 2 insertions, 2 deletions
diff --git a/mkinitcpio b/mkinitcpio
index 3e550d3..7401285 100755
--- a/mkinitcpio
+++ b/mkinitcpio
@@ -85,7 +85,7 @@ cleanup() {
}
resolve_kernver() {
- local kernel=$1 arch= offset kver
+ local kernel=$1 arch=
if [[ -z $kernel ]]; then
uname -r
@@ -98,7 +98,7 @@ resolve_kernver() {
fi
arch=$(uname -m)
- if [[ $arch != @(i686|x86_64) ]]; then
+ if [[ $arch != @(i?86|x86_64) ]]; then
error "kernel version extraction from image not supported for \`%s' architecture" "$arch"
return 1
fi