summaryrefslogtreecommitdiffstats
path: root/perl-install/bootloader.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2001-02-27 20:16:16 +0000
committerPascal Rigaux <pixel@mandriva.com>2001-02-27 20:16:16 +0000
commit8eaa4cd8429b95eec58d2abdcb88e02a37423f06 (patch)
treecae61ac66e0bf388c7a548c7571681549f4b7594 /perl-install/bootloader.pm
parent27fabea9afc09d2dd98ebf8e86e39b820b403d8f (diff)
downloaddrakx-8eaa4cd8429b95eec58d2abdcb88e02a37423f06.tar
drakx-8eaa4cd8429b95eec58d2abdcb88e02a37423f06.tar.gz
drakx-8eaa4cd8429b95eec58d2abdcb88e02a37423f06.tar.bz2
drakx-8eaa4cd8429b95eec58d2abdcb88e02a37423f06.tar.xz
drakx-8eaa4cd8429b95eec58d2abdcb88e02a37423f06.zip
(mkbootdisk): fix for mkbootdisk using fd0H1440. Must be created
Diffstat (limited to 'perl-install/bootloader.pm')
-rw-r--r--perl-install/bootloader.pm6
1 files changed, 5 insertions, 1 deletions
diff --git a/perl-install/bootloader.pm b/perl-install/bootloader.pm
index e1e43b41c..3f1fcdda0 100644
--- a/perl-install/bootloader.pm
+++ b/perl-install/bootloader.pm
@@ -79,7 +79,11 @@ sub mkbootdisk($$$;$) {
modules::load_multi(arch() =~ /sparc/ ? 'romfs' : (), 'loop');
my @l = qw(mkbootdisk --noprompt);
push @l, "--appendargs", $append if $append;
- push @l, "--bios", 0, if $dev !~ /fd/;
+ if ($dev =~ /fd/) {
+ devices::make($dev . 'H1440');
+ } else {
+ push @l, "--bios", 0, if $dev !~ /fd/;
+ }
run_program::rooted($prefix, @l, "--device", "/dev/$dev", $kernelVersion) or die "mkbootdisk failed";
}