Annotation of /trunk/mlivecdbuild/profiles/default-R11-i686/prepare_custom
Parent Directory | Revision Log
Revision 1819 -
(hide annotations)
(download)
Tue May 29 10:02:44 2012 UTC (11 years, 11 months ago) by niro
File size: 806 byte(s)
Tue May 29 10:02:44 2012 UTC (11 years, 11 months ago) by niro
File size: 806 byte(s)
-added R11 profiles
1 | niro | 1819 | #!/bin/bash |
2 | |||
3 | # set an empty root password | ||
4 | chroot ${CDCHROOTDIR} passwd -d root | ||
5 | # add livecd user | ||
6 | [[ ! -z $(chroot ${CDCHROOTDIR} getent group plugdev) ]] && plugdev=",plugdev" | ||
7 | chroot ${CDCHROOTDIR} useradd -m -s /bin/bash -g users -G audio,video,cdrom,cdrw,games,wheel${plugdev} livecd | ||
8 | chroot ${CDCHROOTDIR} passwd -d livecd | ||
9 | |||
10 | # generate locales | ||
11 | if [[ -f ${CDCHROOTDIR}/etc/locale.gen ]] | ||
12 | then | ||
13 | # generate locales | ||
14 | sed -i "s:#de_DE:de_DE:g" ${CDCHROOTDIR}/etc/locale.gen || die | ||
15 | chroot ${CDCHROOTDIR} locale-gen | ||
16 | fi | ||
17 | # and delete /usr/share/locale after that | ||
18 | if [[ -d ${CDCHROOTDIR}/usr/share/locale ]] | ||
19 | then | ||
20 | rm -r ${CDCHROOTDIR}/usr/share/locale | ||
21 | fi | ||
22 | |||
23 | # install a custom boot-duration matching this livecd | ||
24 | install -m 0644 $(get_profile boot-duration.livecd) ${CDCHROOTDIR}/var/lib/plymouth/boot-duration || die |