Annotation of /trunk/mlivecdbuild/profiles/mcore-i486/prepare_custom
Parent Directory | Revision Log
Revision 1218 -
(hide annotations)
(download)
Sat Jan 29 12:49:07 2011 UTC (13 years, 3 months ago) by niro
File size: 990 byte(s)
Sat Jan 29 12:49:07 2011 UTC (13 years, 3 months ago) by niro
File size: 990 byte(s)
-added mcore-i486 profile
1 | niro | 1218 | #!/bin/bash |
2 | |||
3 | # set an empty root password | ||
4 | chroot ${CDCHROOTDIR} passwd -d root | ||
5 | |||
6 | # stop here if the user don't want to create the install tarball | ||
7 | [[ ! -z ${SKIP_CREATE_INSTALL_TARBALL} ]] && exit 0 | ||
8 | |||
9 | |||
10 | ## | ||
11 | # create the install tarball | ||
12 | ## | ||
13 | |||
14 | install -d ${LIVECDROOT}/install-temp | ||
15 | install -d ${CDISOROOT}/system | ||
16 | |||
17 | # use all settings from the global config, but the basesystem | ||
18 | # has to be the normal install basesystem not for livecds | ||
19 | mage-bootstrap \ | ||
20 | --root ${LIVECDROOT}/install-temp \ | ||
21 | --profile ${MAGE_PROFILE} \ | ||
22 | --magerc ${MAGERC} \ | ||
23 | --toolchain ${TOOLCHAIN} \ | ||
24 | --basesystem basesystem-mcore | ||
25 | |||
26 | # create tarball | ||
27 | ( cd ${LIVECDROOT}/install-temp; tar cvjpf ${CDISOROOT}/system/mcore.tar.bz2 ./ | tee log) | ||
28 | |||
29 | # create images.conf | ||
30 | echo "CDIMAGENAME=mcore.tar.bz2" > ${CDISOROOT}/system/images.conf | ||
31 | echo "TOTALLINES=$(wc -l ${LIVECDROOT}/install-temp/log | cut -d' ' -f1)" >> ${CDISOROOT}/system/images.conf | ||
32 | |||
33 | # clean up | ||
34 | if [[ -d ${LIVECDROOT}/install-temp ]] | ||
35 | then | ||
36 | rm -rf ${LIVECDROOT}/install-temp | ||
37 | fi |