diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2000-09-20 22:19:00 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2000-09-20 22:19:00 +0000 |
commit | caa013bea3a978cddcba4dc9ffe0ee577dbcf7cb (patch) | |
tree | 0d7e6a264c06222497a4a1f36cfceb46016934fd /perl-install/bootloader.pm | |
parent | 987e71cbb903383c39f4074a84b765e543b34fdd (diff) | |
download | drakx-caa013bea3a978cddcba4dc9ffe0ee577dbcf7cb.tar drakx-caa013bea3a978cddcba4dc9ffe0ee577dbcf7cb.tar.gz drakx-caa013bea3a978cddcba4dc9ffe0ee577dbcf7cb.tar.bz2 drakx-caa013bea3a978cddcba4dc9ffe0ee577dbcf7cb.tar.xz drakx-caa013bea3a978cddcba4dc9ffe0ee577dbcf7cb.zip |
no_comment
Diffstat (limited to 'perl-install/bootloader.pm')
-rw-r--r-- | perl-install/bootloader.pm | 29 |
1 files changed, 21 insertions, 8 deletions
diff --git a/perl-install/bootloader.pm b/perl-install/bootloader.pm index 26443ee63..981b9d134 100644 --- a/perl-install/bootloader.pm +++ b/perl-install/bootloader.pm @@ -312,7 +312,7 @@ wait %d seconds for default boot. my %l = ( silo => bool(arch() =~ /sparc/), lilo => bool(arch() !~ /sparc/) && !isLoopback(fsedit::get_root($fstab)), - grub => bool(arch() !~ /sparc/) && !$::o->{lnx4win}, #1,#!isReiserfs(fsedit::get_root($fstab, 'boot')), + grub => bool(arch() !~ /sparc/), #!isReiserfs(fsedit::get_root($fstab, 'boot')), loadlin => bool(arch() !~ /sparc/) && -e "/initrd/loopfs/lnx4win", ); $lilo->{methods} ||= { map { $_ => 1 } grep { $l{$_} } keys %l }; @@ -642,12 +642,27 @@ sub install_loadlin { my $windrive = $winhandle->{dir}; log::l("windrive is $windrive"); + my ($label, $cmd) = loadlin_cmd($prefix, $lilo); + + #install_loadlin_config_sys($lilo, $windrive, $label, $cmd); + #install_loadlin_desktop($lilo, $windrive); + + output "/initrd/loopfs/lnx4win/linux.bat", unix2dos( +'@echo off +echo Linux Mandrake +smartdrv /C +' . "$cmd\n"); + +} + +sub install_loadlin_config_sys { + my ($lilo, $windrive, $label, $cmd) = @_; + my $config_sys = "$windrive/config.sys"; local $_ = cat_($config_sys); output "$windrive/config.mdk", $_ if $_; my $timeout = $lilo->{timeout} || 1; - my ($label, $cmd) = loadlin_cmd($prefix, $lilo); $_ = " [Menu] @@ -669,12 +684,10 @@ menudefault=Windows,$timeout shell=$cmd "; output $config_sys, unix2dos($_); - output "/initrd/loopfs/lnx4win/linux.bat", unix2dos( -'@echo off -echo Linux Mandrake -smartdrv /C -' . "$cmd\n"); +} +sub install_loadlin_desktop { + my ($lilo, $windrive) = @_; my $windir = lc(cat_("$windrive/msdos.sys") =~ /^WinDir=.:\\(\S+)/m ? $1 : "windows"); #-PO: "Desktop" and "Start Menu" are the name of the directories found in c:\windows @@ -690,9 +703,9 @@ IconFile=%s IconIndex=0 ), lnx4win_file($lilo, "/", "/lnx4win.ico")); } - } + sub install { my ($prefix, $lilo, $fstab, $hds) = @_; |