Contents of /trunk/mlivecdbuild/profiles/install-x86_64-svn/prepare_custom
Parent Directory | Revision Log
Revision 1042 -
(show annotations)
(download)
Sun May 30 19:54:45 2010 UTC (14 years, 4 months ago) by niro
File size: 874 byte(s)
Sun May 30 19:54:45 2010 UTC (14 years, 4 months ago) by niro
File size: 874 byte(s)
-remove suid-bit from kdrive
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 |