Magellan Linux

Annotation of /trunk/mlivecdbuild/profiles/xfce-R11-i686/prepare_custom

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2179 - (hide annotations) (download)
Wed Sep 25 12:27:30 2013 UTC (10 years, 7 months ago) by niro
File size: 806 byte(s)
-initial xfce R11 profiles
1 niro 2179 #!/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