2 |
|
|
3 |
# set an empty root password |
# set an empty root password |
4 |
chroot ${CDCHROOTDIR} passwd -d root |
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}/install |
16 |
|
|
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 |
|
( cd ${LIVECDROOT}/install-temp; tar cvjpf ${CDISOROOT}/install/tinyalx.tar.bz2 ./ ) |
27 |
|
|
28 |
|
# clean up |
29 |
|
if [[ -d ${LIVECDROOT}/install-temp ]] |
30 |
|
then |
31 |
|
rm -rf ${LIVECDROOT}/install-temp |
32 |
|
fi |