summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone/bootloader-config
diff options
context:
space:
mode:
authorArnaud Patard <rtp@mageia.org>2011-03-18 21:33:11 +0000
committerArnaud Patard <rtp@mageia.org>2011-03-18 21:33:11 +0000
commit2bfae95a970f4c7284a2484fb967bbf9174c2cc6 (patch)
tree0ee61668e342609cc56f0755d5edd2277e66aef3 /perl-install/standalone/bootloader-config
parenteea2f8ef9ddf7e461702d8fda0b8e98e623694c2 (diff)
downloaddrakx-2bfae95a970f4c7284a2484fb967bbf9174c2cc6.tar
drakx-2bfae95a970f4c7284a2484fb967bbf9174c2cc6.tar.gz
drakx-2bfae95a970f4c7284a2484fb967bbf9174c2cc6.tar.bz2
drakx-2bfae95a970f4c7284a2484fb967bbf9174c2cc6.tar.xz
drakx-2bfae95a970f4c7284a2484fb967bbf9174c2cc6.zip
- import stage1/drakxtools mips support
Diffstat (limited to 'perl-install/standalone/bootloader-config')
-rwxr-xr-xperl-install/standalone/bootloader-config9
1 files changed, 8 insertions, 1 deletions
diff --git a/perl-install/standalone/bootloader-config b/perl-install/standalone/bootloader-config
index 1eea36be8..4306a5e44 100755
--- a/perl-install/standalone/bootloader-config
+++ b/perl-install/standalone/bootloader-config
@@ -54,7 +54,14 @@ if ($image) {
}
$image = "/boot/$image" if $image !~ m!^/!;
} elsif ($kernel_version) {
- $image = "/boot/vmlinuz-$kernel_version";
+ # FIXME : test for vmlinux or vmlinuz existence and choose
+ # instead of using arch()
+ if (arch() =~ /mips/) {
+ $image = "/boot/vmlinux-$kernel_version";
+ }
+ else {
+ $image = "/boot/vmlinuz-$kernel_version";
+ }
}