Magellan Linux

Annotation of /trunk/mlivecdbuild/profiles/install-i686-svn/prepare_custom

Parent Directory Parent Directory | Revision Log Revision Log


Revision 862 - (hide annotations) (download)
Sat May 9 11:55:31 2009 UTC (15 years ago) by niro
File size: 804 byte(s)
-added i686 versions of the svn profiles
1 niro 862 #!/bin/sh
2    
3     # enable all locales for the installer (needed with >=glibc-2.5)
4     if [[ -x ${CDCHROOTDIR}/usr/sbin/locale-gen ]]
5     then
6     sed -i "s:^#\([a-z][a-z].*_[A-Z].*\):\1:g" ${CDCHROOTDIR}/etc/locale.gen
7    
8     # fix broken locales
9     for i in ca_FT sr_CS
10     do
11     sed -i "s:^${i}:#${i}:g" ${CDCHROOTDIR}/etc/locale.gen
12     done
13    
14     chroot ${CDCHROOTDIR} locale-gen
15     fi
16    
17     # installer environment
18     cat > ${CDCHROOTDIR}/etc/env.d/99installer << EOF
19     PATH="/usr/installer/bin:/usr/installer/sbin"
20     ROOTPATH="/usr/installer/bin:/usr/installer/sbin"
21     LDPATH="/usr/installer/lib"
22     EOF
23     chroot ${CDCHROOTDIR} env-rebuild
24    
25     # prune unneeded stuff
26     find ${CDCHROOTDIR}/usr/installer/lib -name \*.a | xargs rm
27     for i in include share
28     do
29     if [[ -d ${CDCHROOTDIR}/usr/installer/${i} ]]
30     then
31     rm -rf ${CDCHROOTDIR}/usr/installer/${i}
32     fi
33     done