diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2000-11-07 17:46:24 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2000-11-07 17:46:24 +0000 |
commit | e45fa9322492ba188be25f78402ea8388e687569 (patch) | |
tree | 7a70ee2309aa717efa2deda7c3f76e10f4a4ba99 | |
parent | 755405c9fec21068bd64b2ee82e89217ab590715 (diff) | |
download | drakx-e45fa9322492ba188be25f78402ea8388e687569.tar drakx-e45fa9322492ba188be25f78402ea8388e687569.tar.gz drakx-e45fa9322492ba188be25f78402ea8388e687569.tar.bz2 drakx-e45fa9322492ba188be25f78402ea8388e687569.tar.xz drakx-e45fa9322492ba188be25f78402ea8388e687569.zip |
find lang based on /cdrom/VERSION,
give it to closurepkgs
-rwxr-xr-x | rescue/tree/etc/oem | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/rescue/tree/etc/oem b/rescue/tree/etc/oem index 94b05bed4..f0ec75951 100755 --- a/rescue/tree/etc/oem +++ b/rescue/tree/etc/oem @@ -5,7 +5,6 @@ inst=1 swap=2 root=3 -langs=fr:en echo echo @@ -27,6 +26,13 @@ echo "cdrom: $cd" mkdir /cdrom ; mount -r -t iso9660 $cd /cdrom +if grep -q " fr" /cdrom/VERSION; then + lang=fr +else + lang=en +fi +echo "Found lang $lang" + echo "Installing new partition table and bootloader" dd if=/etc/part_and_bootloader of=$hd @@ -48,20 +54,20 @@ echo "Copying installation on hard drive" cp -a /boot /cdrom/boot /hd mkdir -p /hd/Mandrake /hd/Mandrake/RPMS cp -a /cdrom/Mandrake/base /cdrom/Mandrake/mdkinst /hd/Mandrake -for i in `/etc/closurepkgs /hd/Mandrake/base/depslist.ordered /hd/Mandrake/base/compssList | grep C: | cut -d: -f2`; do +for i in `/etc/closurepkgs /hd/Mandrake/base/depslist.ordered /hd/Mandrake/base/compssList $lang | grep C: | cut -d: -f2`; do [ -e /cdrom/Mandrake/RPMS/$i.*.rpm ] && cp -a /cdrom/Mandrake/RPMS/$i.*.rpm /hd/Mandrake/RPMS done echo "Installing packages" export DURING_INSTALL=1 -export RPM_INSTALL_LANG=$langs +export RPM_INSTALL_LANG=$lang export LD_LIBRARY_PATH=/usr/X11R6/lib export SECURE_LEVEL=2 for i in /etc /var/lib/rpm /proc ; do mkdir -p /mnt$i; done mount -t proc proc /mnt/proc rpm --root /mnt --initdb echo >/mnt/etc/fstab "$hd$root / ext2 defaults 1 1" -for i in `/etc/closurepkgs /hd/Mandrake/base/depslist.ordered /hd/Mandrake/base/compssList | grep I: | cut -d: -f2`; do +for i in `/etc/closurepkgs /hd/Mandrake/base/depslist.ordered /hd/Mandrake/base/compssList $lang | grep I: | cut -d: -f2`; do [ -e /cdrom/Mandrake/RPMS/$i.*.rpm ] && rpm --root /mnt -ivh /cdrom/Mandrake/RPMS/$i.*.rpm --nodeps --force done umount /mnt/proc |