79 |
fi |
fi |
80 |
|
|
81 |
# fix hostname and hosts file |
# fix hostname and hosts file |
82 |
echo "alx-i686" > ${LIVECDROOT}/install-temp/etc/hostname |
echo "alx-${CDOSARCH}" > ${LIVECDROOT}/install-temp/etc/hostname |
83 |
echo "127.0.0.1 localhost alx-i686.magellan-linux.de alx-i686" > ${LIVECDROOT}/install-temp/etc/hosts |
echo "127.0.0.1 localhost alx-${CDOSARCH}.magellan-linux.de alx-${CDOSARCH}" > ${LIVECDROOT}/install-temp/etc/hosts |
84 |
cat >> ${LIVECDROOT}/install-temp/etc/hosts << EOF |
cat >> ${LIVECDROOT}/install-temp/etc/hosts << EOF |
85 |
::1 ip6-localhost ip6-loopback |
::1 ip6-localhost ip6-loopback |
86 |
fe00::0 ip6-localnet |
fe00::0 ip6-localnet |
91 |
EOF |
EOF |
92 |
|
|
93 |
# create tarball |
# create tarball |
94 |
[[ -f ${CDISOROOT}/system/alx-i686.tar.bz2 ]] && rm ${CDISOROOT}/system/alx-i686.tar.bz2 |
[[ -f ${CDISOROOT}/system/alx-${CDOSARCH}.tar.bz2 ]] && rm ${CDISOROOT}/system/alx-${CDOSARCH}.tar.bz2 |
95 |
( cd ${LIVECDROOT}/install-temp; tar cvjpf ${CDISOROOT}/system/alx-i686.tar.bz2 ./ | tee ${LIVECDROOT}/install.log ) |
( cd ${LIVECDROOT}/install-temp; tar cvjpf ${CDISOROOT}/system/alx-${CDOSARCH}.tar.bz2 ./ | tee ${LIVECDROOT}/install.log ) |
96 |
|
|
97 |
# create images.conf |
# create images.conf |
98 |
echo "CDIMAGENAME=alx-i686.tar.bz2" > ${CDISOROOT}/system/images.conf |
echo "CDIMAGENAME=alx-${CDOSARCH}.tar.bz2" > ${CDISOROOT}/system/images.conf |
99 |
echo "TOTALLINES=$(wc -l ${LIVECDROOT}/install.log | cut -d' ' -f1)" >> ${CDISOROOT}/system/images.conf |
echo "TOTALLINES=$(wc -l ${LIVECDROOT}/install.log | cut -d' ' -f1)" >> ${CDISOROOT}/system/images.conf |
100 |
|
|
101 |
create_netboot_image |
create_netboot_image |
268 |
fi |
fi |
269 |
|
|
270 |
# fix hostname and hosts file |
# fix hostname and hosts file |
271 |
echo "alx-svr-i686" > ${LIVECDROOT}/server-temp/etc/hostname |
echo "alx-svr-${CDOSARCH}" > ${LIVECDROOT}/server-temp/etc/hostname |
272 |
echo "127.0.0.1 localhost alx-svr-i686.magellan-linux.de alx-svr-i686" > ${LIVECDROOT}/server-temp/etc/hosts |
echo "127.0.0.1 localhost alx-svr-${CDOSARCH}.magellan-linux.de alx-svr-${CDOSARCH}" > ${LIVECDROOT}/server-temp/etc/hosts |
273 |
# fix certificate issues with mcored (common name of cert issuer) and >php-5.4 |
# fix certificate issues with mcored (common name of cert issuer) and >php-5.4 |
274 |
echo "127.0.0.1 mcored" >> ${LIVECDROOT}/server-temp/etc/hosts |
echo "127.0.0.1 mcored" >> ${LIVECDROOT}/server-temp/etc/hosts |
275 |
cat >> ${LIVECDROOT}/server-temp/etc/hosts << EOF |
cat >> ${LIVECDROOT}/server-temp/etc/hosts << EOF |
282 |
EOF |
EOF |
283 |
|
|
284 |
# create tarball |
# create tarball |
285 |
[[ -f ${CDISOROOT}/server/alx-svr-i686.tar.bz2 ]] && rm ${CDISOROOT}/server/alx-svr-i686.tar.bz2 |
[[ -f ${CDISOROOT}/server/alx-svr-${CDOSARCH}.tar.bz2 ]] && rm ${CDISOROOT}/server/alx-svr-${CDOSARCH}.tar.bz2 |
286 |
( cd ${LIVECDROOT}/server-temp; tar cvjpf ${CDISOROOT}/server/alx-svr-i686.tar.bz2 ./ | tee ${LIVECDROOT}/server.log ) |
( cd ${LIVECDROOT}/server-temp; tar cvjpf ${CDISOROOT}/server/alx-svr-${CDOSARCH}.tar.bz2 ./ | tee ${LIVECDROOT}/server.log ) |
287 |
|
|
288 |
# create images.conf |
# create images.conf |
289 |
echo "CDIMAGENAME=alx-svr-i686.tar.bz2" > ${CDISOROOT}/server/images.conf |
echo "CDIMAGENAME=alx-svr-${CDOSARCH}.tar.bz2" > ${CDISOROOT}/server/images.conf |
290 |
echo "TOTALLINES=$(wc -l ${LIVECDROOT}/server.log | cut -d' ' -f1)" >> ${CDISOROOT}/server/images.conf |
echo "TOTALLINES=$(wc -l ${LIVECDROOT}/server.log | cut -d' ' -f1)" >> ${CDISOROOT}/server/images.conf |
291 |
|
|
292 |
# clean up |
# clean up |