Contents of /trunk/mlivecdbuild/profiles/xfce-R11-unstable-i686/prepare_custom
Parent Directory
|
Revision Log
Revision 2680 -
(show annotations)
(download)
Thu Jul 10 08:22:30 2014 UTC (9 years, 11 months ago) by niro
File size: 1666 byte(s)
Thu Jul 10 08:22:30 2014 UTC (9 years, 11 months ago) by niro
File size: 1666 byte(s)
-xfce R11 unstable i686 profile
1 | #!/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 [[ -d ${CDCHROOTDIR}/usr/share/locale ]] |
12 | then |
13 | if [[ -f ${CDCHROOTDIR}/etc/locale.gen ]] |
14 | then |
15 | # generate locales |
16 | #sed -i "s:#de_DE:de_DE:g" ${CDCHROOTDIR}/etc/locale.gen || die |
17 | sed -i 's:^#\([a-z].*\):\1:g' ${CDCHROOTDIR}/etc/locale.gen || die |
18 | chroot ${CDCHROOTDIR} locale-gen |
19 | fi |
20 | # and delete /usr/share/locale after that |
21 | rm -r ${CDCHROOTDIR}/usr/share/locale |
22 | fi |
23 | |
24 | # install a custom boot-duration matching this livecd |
25 | install -d ${CDCHROOTDIR}/var/lib/plymouth || die |
26 | install -m 0644 $(get_profile boot-duration.livecd) ${CDCHROOTDIR}/var/lib/plymouth/boot-duration || die |
27 | |
28 | # install slim config for autologon |
29 | install -m 0644 $(get_profile slim.conf) ${CDCHROOTDIR}/etc/ || die |
30 | install -m 0644 ${CDCHROOTDIR}/etc/skel/.xinitrc ${CDCHROOTDIR}/home/livecd/.xinitrc || die |
31 | echo 'exec startxfce4' >> ${CDCHROOTDIR}/home/livecd/.xinitrc || die |
32 | |
33 | # setup xfce4 panel |
34 | install -d ${CDCHROOTDIR}/home/livecd/.config/xfce4/xfconf/xfce-perchannel-xml || die |
35 | install -m 0644 $(get_profile xfce4-panel.xml) ${CDCHROOTDIR}/home/livecd/.config/xfce4/xfconf/xfce-perchannel-xml/ || die |
36 | install -m 0644 $(get_profile xsettings.xml) ${CDCHROOTDIR}/home/livecd/.config/xfce4/xfconf/xfce-perchannel-xml/ || die |
37 | |
38 | # user livecd should own everything in his homedir |
39 | chroot ${CDCHROOTDIR} chown -R livecd:users /home/livecd || die |