diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2000-01-01 17:09:26 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2000-01-01 17:09:26 +0000 |
commit | d004436dc848800c9d65b90e39c39836c4d44cdf (patch) | |
tree | b37bdcac9dad762a2b692076522785a83533c5f6 /perl-install/install_steps.pm | |
parent | 1dc94110fc837dbe6cf06806f60c207ab1b64e83 (diff) | |
download | drakx-backup-do-not-use-d004436dc848800c9d65b90e39c39836c4d44cdf.tar drakx-backup-do-not-use-d004436dc848800c9d65b90e39c39836c4d44cdf.tar.gz drakx-backup-do-not-use-d004436dc848800c9d65b90e39c39836c4d44cdf.tar.bz2 drakx-backup-do-not-use-d004436dc848800c9d65b90e39c39836c4d44cdf.tar.xz drakx-backup-do-not-use-d004436dc848800c9d65b90e39c39836c4d44cdf.zip |
no_comment
Diffstat (limited to 'perl-install/install_steps.pm')
-rw-r--r-- | perl-install/install_steps.pm | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/perl-install/install_steps.pm b/perl-install/install_steps.pm index 26008ff7d..141cb42c9 100644 --- a/perl-install/install_steps.pm +++ b/perl-install/install_steps.pm @@ -251,6 +251,7 @@ sub afterInstallPackages($) { my $msec = "$o->{prefix}/etc/security/msec"; substInFile { s/^audio\n//; $_ .= "audio\n" if eof } "$msec/group.conf" if -d $msec; + substInFile { s/^cdrom\n//; $_ .= "cdrom\n" if eof } "$msec/group.conf" if -d $msec; substInFile { s/^xgrp\n//; $_ .= "xgrp\n" if eof } "$msec/group.conf" if -d $msec; my $p = $o->{packages}{urpmi}; @@ -371,7 +372,7 @@ sub installCrypto { $packages = pkgs::psUsingDirectory($dir); foreach (values %$packages) { foreach (c::headerGetEntry(pkgs::getHeader($_), 'requires')) { - my $r = crypto::require2package($_); + my $r = quotemeta crypto::require2package($_); /^$r-\d/ and $u->{packages}{$_} = 1 foreach keys %{$u->{packages}}; } } @@ -543,7 +544,10 @@ sub readBootloaderConfigBeforeInstall { sub setupBootloaderBefore { my ($o) = @_; - $o->{bootloader}{perImageAppend} = "mem=$o->{miscellaneous}{memsize}" if $o->{miscellaneous}{memsize}; + $o->{bootloader}{perImageAppend} .= " " . join(" ", grep { /^ide/ } split ' ', cat_("/proc/cmdline")); + if (my $ramsize = $o->{miscellaneous}{memsize} && $o->{bootloader}{perImageAppend} !~ /mem=/) { + $o->{bootloader}{perImageAppend} .= " mem=$ramsize"; + } require lilo; lilo::suggest($o->{prefix}, $o->{bootloader}, $o->{hds}, $o->{fstab}, install_any::kernelVersion()); $o->{bootloader}{keytable} ||= keyboard::keyboard2kmap($o->{keyboard}); @@ -560,6 +564,7 @@ sub setupXfreeBefore { my ($o) = @_; $o->{X}{keyboard}{xkb_keymap} ||= keyboard::keyboard2xkb($o->{keyboard}); $o->{X}{mouse} = $o->{mouse}; + $o->{X}{wacom} = $o->{wacom}; require Xconfig; Xconfig::getinfoFromDDC($o->{X}); @@ -606,6 +611,11 @@ sub miscellaneousNetwork { #------------------------------------------------------------------------------ sub miscellaneous { my ($o) = @_; + + my %s = getVarsFromSh("$o->{prefix}/etc/sysconfig/system"); + $o->{miscellaneous}{HDPARM} ||= $s{HDPARM} if exists $s{HDPARM}; + $o->{security} ||= $s{SECURITY} if exists $s{SECURITY}; + $ENV{SECURE_LEVEL} = $o->{security}; add2hash_ $o, { useSupermount => $o->{security} < 4 }; |