summaryrefslogtreecommitdiffstats
path: root/rescue/tree
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2003-03-26 12:32:01 +0000
committerFrancois Pons <fpons@mandriva.com>2003-03-26 12:32:01 +0000
commit987cdc6165187d42b2722d810a6785bcadfafcef (patch)
tree3210008d2b7eb85b5ae268f14182c7d99a26148c /rescue/tree
parentad37cbaf9f255224a3319e4740e527654ee045bc (diff)
downloaddrakx-backup-do-not-use-987cdc6165187d42b2722d810a6785bcadfafcef.tar
drakx-backup-do-not-use-987cdc6165187d42b2722d810a6785bcadfafcef.tar.gz
drakx-backup-do-not-use-987cdc6165187d42b2722d810a6785bcadfafcef.tar.bz2
drakx-backup-do-not-use-987cdc6165187d42b2722d810a6785bcadfafcef.tar.xz
drakx-backup-do-not-use-987cdc6165187d42b2722d810a6785bcadfafcef.zip
mandrake-release should be installed.
Diffstat (limited to 'rescue/tree')
-rwxr-xr-xrescue/tree/etc/oem-all10
1 files changed, 10 insertions, 0 deletions
diff --git a/rescue/tree/etc/oem-all b/rescue/tree/etc/oem-all
index 2da5a53aa..a2dbcb869 100755
--- a/rescue/tree/etc/oem-all
+++ b/rescue/tree/etc/oem-all
@@ -552,6 +552,9 @@ foreach my $medium (@media) {
}
}
+#- install some important packages.
+system "rpm", "--root", "/mnt", "--initdb";
+
#- copy and install from each cd image.
foreach my $medium (@media) {
while ($cd && ! -d "/cdrom/$medium->{rpmsdir}") {
@@ -570,10 +573,17 @@ foreach my $medium (@media) {
if (-e $file) {
print " copying " . rpm_fullname($pkg) . "\n";
system "cp", "-a", $file, "/hd/$medium->{rpmsdir}";
+ if (rpm_fullname($pkg) =~ /mandrake-release/) {
+ system "rpm", "-Uvh", "--root", "/mnt", "--nodeps", "--force", "/hd/$medium->{rpmsdir}" . $files{rpm_fullname($pkg)};
+ }
}
}
}
+#- install mandrake-release package.
+system "rpm", "--root", "/mnt", "--initdb";
+system "rpm", "-ivh", "--root", "/mnt", "--nodeps", "--force", @files;
+sy
#- try to figure out if a oem-message-graphic already exists.
#- if this is the case, rename it to /mnt/boot/message-graphic
if (-e "/cdrom/Mandrake/base/oem-message-graphic") {