Magellan Linux

Annotation of /trunk/mlivecdbuild/profiles/tinyalx-i486/prepare_custom

Parent Directory Parent Directory | Revision Log Revision Log


Revision 759 - (hide annotations) (download)
Fri Jun 27 23:57:40 2008 UTC (15 years, 10 months ago) by niro
File size: 943 byte(s)
-store system images to CDROOT/system not CDROOT/installer and create a images.conf to be compat with the old alxinstall-ng installer

1 niro 745 #!/bin/bash
2    
3 niro 751 # set an empty root password
4     chroot ${CDCHROOTDIR} passwd -d root
5 niro 755
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 niro 759 install -d ${CDISOROOT}/system
16 niro 755
17     # use all settings from the global config, but the basesystem
18     mage-bootstrap \
19     --root ${LIVECDROOT}/install-temp \
20     --profile ${MAGE_PROFILE} \
21     --magerc ${MAGERC} \
22     --toolchain ${TOOLCHAIN} \
23     --basesystem basesystem-tiny-alx-alx
24    
25     # create tarball
26 niro 759 ( cd ${LIVECDROOT}/install-temp; tar cvjpf ${CDISOROOT}/system/tinyalx.tar.bz2 ./ | tee log)
27 niro 755
28 niro 759 # create images.conf
29     echo "CDIMAGENAME=tinyalx.tar.bz2" > ${CDISOROOT}/system/images.conf
30     echo "TOTALLINES=$(wc -l ${LIVECDROOT}/install-temp/log | cut -d' ' -f1)" >> ${CDISOROOT}/system/images.conf
31    
32 niro 755 # clean up
33     if [[ -d ${LIVECDROOT}/install-temp ]]
34     then
35     rm -rf ${LIVECDROOT}/install-temp
36     fi