diff options
author | Francois Pons <fpons@mandriva.com> | 2001-04-25 11:36:46 +0000 |
---|---|---|
committer | Francois Pons <fpons@mandriva.com> | 2001-04-25 11:36:46 +0000 |
commit | 5177d4084f79ca92d012a9bd45b992745cf082c6 (patch) | |
tree | 8180e23cc1afdcc333fefb288eacb07e0394dd39 /rescue/tree/etc/oem | |
parent | 8f2775ba0bcf5d7b506d29f303e4877bcf191fa0 (diff) | |
download | drakx-5177d4084f79ca92d012a9bd45b992745cf082c6.tar drakx-5177d4084f79ca92d012a9bd45b992745cf082c6.tar.gz drakx-5177d4084f79ca92d012a9bd45b992745cf082c6.tar.bz2 drakx-5177d4084f79ca92d012a9bd45b992745cf082c6.tar.xz drakx-5177d4084f79ca92d012a9bd45b992745cf082c6.zip |
fixed usage of free space on disk, added NVIDIA packages to install.
Diffstat (limited to 'rescue/tree/etc/oem')
-rwxr-xr-x | rescue/tree/etc/oem | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/rescue/tree/etc/oem b/rescue/tree/etc/oem index f18f2de5e..fbee22fa3 100755 --- a/rescue/tree/etc/oem +++ b/rescue/tree/etc/oem @@ -114,9 +114,13 @@ Type \`\`yes'' and [enter] to go on\n" #- keep the current partition table, and try to resize the fat partition #- if the size is not 0. #- KEEP IN MIND there is only one partition defined. - $point = $hd_parts[$fat_pos]{start} + $resize_fat_size; open F, "| parted -s /dev/$hd"; - printf F "resize %d %s %s\n", $hd_parts[$fat_pos]{minor}, $hd_parts[$fat_pos]{start}, $point; + if ($resize_fat_size) { + $point = $hd_parts[$fat_pos]{start} + $resize_fat_size; + printf F "resize %d %s %s\n", $hd_parts[$fat_pos]{minor}, $hd_parts[$fat_pos]{start}, $point; + } else { + $point = $hd_parts[$fat_pos]{end}; + } } else { unless (defined $yes) { do { @@ -263,7 +267,7 @@ foreach my $medium (@media) { system "mkdir", "-p", "/hd/$medium->{rpmsdir}"; foreach my $pkg (@{$packages->{depslist}}) { $pkg->{closure} && !$pkg->{selected} or next; - foreach (qw(i586 noarch)) { + foreach (qw(i586 i486 i386 noarch)) { my $file = "/cdrom/$medium->{rpmsdir}/$pkg->{name}.$_.rpm"; -e $file or next; print " copying $pkg->{name}.$_.rpm\n"; @@ -276,7 +280,7 @@ foreach my $medium (@media) { print "Installing packages from medium labeled \"$medium->{descr}\"\n"; if (my $pkg = pkgs::packageByName($packages, 'glibc')) { #- HACK FOR GLIBC if (delete $pkg->{selected}) { - foreach (qw(i586 noarch)) { + foreach (qw(i586 i486 i386 noarch)) { my $file = "/cdrom/$medium->{rpmsdir}/$pkg->{name}.$_.rpm"; -e $file or next; system "rpm", "--root", "/mnt", "--nodeps", "--force", "--noscripts", "-ivh", $file; @@ -289,7 +293,7 @@ foreach my $medium (@media) { my @files; foreach my $pkg (@{$packages->{depslist}}) { $pkg->{selected} or next; - foreach (qw(i586 noarch)) { + foreach (qw(i586 i486 i386 noarch)) { my $file = "/cdrom/$medium->{rpmsdir}/$pkg->{name}.$_.rpm"; -e $file or next; push @files, $file; @@ -331,6 +335,9 @@ sub select_packages { $pkg and pkgs::selectPackage($o->{packages}, $pkg); } foreach my $pkg (@{$o->{packages}{depslist}}) { + $pkg->{name} =~ /NVIDIA/ and pkgs::selectPackage($o->{packages}, $pkg); + } + foreach my $pkg (@{$o->{packages}{depslist}}) { delete $pkg->{selected} and $pkg->{closure} = 1; } foreach (qw(Mesa-common xpp libqtcups2 qtcups kups)) { @@ -371,7 +378,7 @@ sub select_packages { #- special packages that are to be move to closure always ... foreach (qw(kernel-smp kernel-linus kernel-secure hackkernel-smp hackkernel-linus hackkernel-secure Aurora xawtv kwintv xscreensaver-gl xmms-mesa bzflag csmash gltron spacecup chromium tuxracer - kernel22-secure alsa imwheel nfs-utils-clients lvm usbd reiserfsprogs + kernel22-smp kernel22-secure alsa imwheel nfs-utils-clients lvm usbd reiserfsprogs )) { my $pkg = pkgs::packageByName($o->{packages}, $_); $pkg and $pkg->{closure} = 1, delete $pkg->{selected}; |