Skip to content

Commit

Permalink
Support version extraction from i[3456]86 kernels
Browse files Browse the repository at this point in the history
Arch might not really support some of these, but mkinitcpio can.
  • Loading branch information
falconindy committed Jul 17, 2016
1 parent f5129ad commit 8423083
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mkinitcpio
Expand Up @@ -85,7 +85,7 @@ cleanup() {
}

resolve_kernver() {
local kernel=$1 arch= offset kver
local kernel=$1 arch=

if [[ -z $kernel ]]; then
uname -r
Expand All @@ -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
Expand Down

0 comments on commit 8423083

Please sign in to comment.