Contents of /trunk/mlivecdbuild/profiles/default-R11-i686/prepare_custom
Parent Directory | Revision Log
Revision 2148 -
(show annotations)
(download)
Fri Jul 19 11:42:00 2013 UTC (11 years, 2 months ago) by niro
File size: 863 byte(s)
Fri Jul 19 11:42:00 2013 UTC (11 years, 2 months ago) by niro
File size: 863 byte(s)
-install missing plymoth runtime dir
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 | chroot ${CDCHROOTDIR} locale-gen |
18 | fi |
19 | # and delete /usr/share/locale after that |
20 | rm -r ${CDCHROOTDIR}/usr/share/locale |
21 | fi |
22 | |
23 | # install a custom boot-duration matching this livecd |
24 | install -d ${CDCHROOTDIR}/var/lib/plymouth || die |
25 | install -m 0644 $(get_profile boot-duration.livecd) ${CDCHROOTDIR}/var/lib/plymouth/boot-duration || die |