Annotation of /trunk/mlivecdbuild/profiles/default-R11-x86_64/prepare_custom
Parent Directory | Revision Log
Revision 2149 -
(hide annotations)
(download)
Fri Jul 19 11:42:25 2013 UTC (10 years, 11 months ago) by niro
File size: 863 byte(s)
Fri Jul 19 11:42:25 2013 UTC (10 years, 11 months ago) by niro
File size: 863 byte(s)
-install missing plymoth runtime dir
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 [[ -d ${CDCHROOTDIR}/usr/share/locale ]] | ||
12 | then | ||
13 | niro | 1971 | 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 | niro | 1819 | rm -r ${CDCHROOTDIR}/usr/share/locale |
21 | fi | ||
22 | |||
23 | # install a custom boot-duration matching this livecd | ||
24 | niro | 2149 | install -d ${CDCHROOTDIR}/var/lib/plymouth || die |
25 | niro | 1819 | install -m 0644 $(get_profile boot-duration.livecd) ${CDCHROOTDIR}/var/lib/plymouth/boot-duration || die |