diff options
author | Dave Reisner <dreisner@archlinux.org> | 2016-07-14 21:57:47 +0200 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2016-07-17 21:10:22 +0200 |
commit | 8423083e79dc78cccfbf6b461d51e72faf7a586f (patch) | |
tree | ead032d204188769973b9218f7891f4a27bef577 | |
parent | f5129add0eb16c9511c9cb80433fb4568f1e2703 (diff) | |
download | mkinitcpio-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-x | mkinitcpio | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |