Magellan Linux

Diff of /trunk/mlivecdbuild/profiles/alx-0_7_branch/prepare_custom

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3067 by niro, Thu Aug 31 13:01:29 2017 UTC revision 3068 by niro, Thu Aug 31 13:03:10 2017 UTC
# Line 79  create_install_tarball() Line 79  create_install_tarball()
79   fi   fi
80    
81   # fix hostname and hosts file   # fix hostname and hosts file
82   echo "alx-i486" > ${LIVECDROOT}/install-temp/etc/hostname   echo "alx-${CDOSARCH}" > ${LIVECDROOT}/install-temp/etc/hostname
83   echo "127.0.0.1 localhost alx-i486.magellan-linux.de alx-i486" > ${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
# Line 91  ff02::3         ip6-allhosts Line 91  ff02::3         ip6-allhosts
91  EOF  EOF
92    
93   # create tarball   # create tarball
94   [[ -f ${CDISOROOT}/system/alx-i486.tar.bz2 ]] && rm ${CDISOROOT}/system/alx-i486.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-i486.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-i486.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
# Line 268  create_server_tarball() Line 268  create_server_tarball()
268   fi   fi
269    
270   # fix hostname and hosts file   # fix hostname and hosts file
271   echo "alx-svr-i486" > ${LIVECDROOT}/server-temp/etc/hostname   echo "alx-svr-${CDOSARCH}" > ${LIVECDROOT}/server-temp/etc/hostname
272   echo "127.0.0.1 localhost alx-svr-i486.magellan-linux.de alx-svr-i486" > ${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
# Line 282  ff02::3         ip6-allhosts Line 282  ff02::3         ip6-allhosts
282  EOF  EOF
283    
284   # create tarball   # create tarball
285   [[ -f ${CDISOROOT}/server/alx-svr-i486.tar.bz2 ]] && rm ${CDISOROOT}/server/alx-svr-i486.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-i486.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-i486.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

Legend:
Removed from v.3067  
changed lines
  Added in v.3068