Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1409 - (show annotations) (download)
Thu Jun 16 11:11:54 2011 UTC (12 years, 10 months ago) by niro
File size: 970 byte(s)
-added alx-0.6 branch profile
1 #!/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
34
35 # remove suid bit from kdrive
36 chmod -s ${CDCHROOTDIR}/usr/bin/Xfbdev
37
38 # use ncurses installer as default
39 ln -snf installer-ncurses ${CDCHROOTDIR}/usr/sbin/installer