summaryrefslogtreecommitdiffstats
path: root/rescue/tree/etc
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2001-04-16 16:09:15 +0000
committerFrancois Pons <fpons@mandriva.com>2001-04-16 16:09:15 +0000
commit0f2d0d32b80f16dc32d8a9b8de1dcbb97172b683 (patch)
tree66462a5d38e793c6b975f82ec22f107cde79fc82 /rescue/tree/etc
parent6d74a6b490b11ab86cec66c6a81e8d370bbcefe7 (diff)
downloaddrakx-0f2d0d32b80f16dc32d8a9b8de1dcbb97172b683.tar
drakx-0f2d0d32b80f16dc32d8a9b8de1dcbb97172b683.tar.gz
drakx-0f2d0d32b80f16dc32d8a9b8de1dcbb97172b683.tar.bz2
drakx-0f2d0d32b80f16dc32d8a9b8de1dcbb97172b683.tar.xz
drakx-0f2d0d32b80f16dc32d8a9b8de1dcbb97172b683.zip
finally fixed menu by generating /etc/rpm/macros file.
Diffstat (limited to 'rescue/tree/etc')
-rwxr-xr-xrescue/tree/etc/oem5
1 files changed, 4 insertions, 1 deletions
diff --git a/rescue/tree/etc/oem b/rescue/tree/etc/oem
index e821500b6..90e960cb9 100755
--- a/rescue/tree/etc/oem
+++ b/rescue/tree/etc/oem
@@ -232,7 +232,7 @@ $ENV{DURING_INSTALL} = 1;
$ENV{RPM_INSTALL_LANG} = "$flang:$lang";
$ENV{LD_LIBRARY_PATH} = "/usr/X11R6/lib";
$ENV{SECURE_LEVEL} = 2;
-foreach (qw(/etc /etc/sysconfig /var /var/lib /var/lib/rpm /proc)) {
+foreach (qw(/etc /etc/sysconfig /etc/rpm /var /var/lib /var/lib/rpm /proc)) {
mkdir "/mnt/$_";
}
system "mount", "-t", "proc", "proc", "/mnt/proc";
@@ -244,6 +244,9 @@ print F "LANG=$lang\n";
print F "LANGUAGE=$flang:$lang\n";
print F "LC_MESSAGES=$flang\n";
close F;
+open F, ">/mnt/etc/rpm/macros";
+print F "%_install_langs $flang:$lang\n";
+close F;
system "rpm", "--root", "/mnt", "--initdb";
#- copy and install from each cd image.