Magellan Linux

Contents of /trunk/mlivecdbuild/profiles/default-R11-unstable-x86_64/prepare_custom

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2151 - (show annotations) (download)
Fri Jul 19 11:45:37 2013 UTC (10 years, 9 months ago) by niro
File size: 863 byte(s)
-add R11 unstable profiles
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