3 ## live-build(7) - System Build Scripts
4 ## Copyright (C) 2006-2014 Daniel Baumann <mail@daniel-baumann.ch>
6 ## This program comes with ABSOLUTELY NO WARRANTY; for details see COPYING.
7 ## This is free software, and you are welcome to redistribute it
8 ## under certain conditions; see COPYING for details.
13 # Including common functions
14 [ -e "${LIVE_BUILD}/scripts/build.sh" ] && .
"${LIVE_BUILD}/scripts/build.sh" || .
/usr
/lib
/live
/build.sh
16 # Setting static variables
17 DESCRIPTION
="$(Echo 'install disk information into source')"
19 USAGE
="${PROGRAM} [--force]"
23 # Reading configuration files
24 Read_conffiles config
/all config
/common config
/bootstrap config
/chroot config
/binary config
/source
27 case "${LB_SOURCE_IMAGES}" in
36 Echo_message
"Begin installing disk information..."
38 # Requiring stage file
39 Require_stagefile .build
/config .build
/bootstrap
42 Check_stagefile .build
/source_disk
52 DISTRIBUTION
="$(echo ${LB_DISTRIBUTION} | cut -b 1 | tr '[a-z]' '[A-Z]')"
53 DISTRIBUTION
="${DISTRIBUTION}$(echo ${LB_DISTRIBUTION} | cut -b 2-)"
54 eval VERSION
="$`echo RELEASE_${LB_DISTRIBUTION}`"
58 TITLE
="Debian GNU/Linux"
59 STRING
="Official Snapshot ${ARCHITECTURE}"
60 TRACE
="project/trace/ftp-master.debian.org"
65 STRING
="Build ${ARCHITECTURE}"
70 TITLE
="Progress Linux"
71 STRING
="${VERSION} (${DISTRIBUTION}) - ${ARCHITECTURE}"
72 TRACE
="project/trace/archive-master.progress-linux.org"
76 TITLE
="Debian GNU/Linux"
77 STRING
="Snapshot ${ARCHITECTURE}"
84 case "${LB_DERIVATIVE}" in
86 echo "$(echo ${LB_PARENT_MIRROR_BOOTSTRAP} | awk -F:// '{ print $2 }'): $(wget -q ${LB_PARENT_MIRROR_BOOTSTRAP}/${TRACE} -O - | head -n 1)" \
87 > source
/.disk
/archive_trace
89 echo "$(echo ${LB_MIRROR_BOOTSTRAP} | awk -F:// '{ print $2 }'): $(wget -q ${LB_MIRROR_BOOTSTRAP}/${TRACE} -O - | head -n 1)" \
90 >> source
/.disk
/archive_trace
94 echo "$(wget -q ${LB_PARENT_MIRROR_BOOTSTRAP}/${TRACE} -O - | head -n 1)" \
95 > source
/.disk
/archive_trace
100 case "${LB_DEBIAN_INSTALLER}" in
102 echo "${TITLE} ${VERSION} \"${DISTRIBUTION}\" - ${STRING} LIVE/CD Source $(date +%Y%m%d-%H:%M)" > source
/.disk
/info
106 echo "${TITLE} ${VERSION} \"${DISTRIBUTION}\" - ${STRING} LIVE/NETINST Source $(date +%Y%m%d-%H:%M)" > source
/.disk
/info
110 echo "${TITLE} ${VERSION} \"${DISTRIBUTION}\" - ${STRING} LIVE/INSTALL Source $(date +%Y%m%d-%H:%M)" > source
/.disk
/info
114 echo "${TITLE} ${VERSION} \"${DISTRIBUTION}\" - ${STRING} LIVE/BC Source $(date +%Y%m%d-%H:%M)" > source
/.disk
/info
118 echo "${TITLE} ${VERSION} \"${DISTRIBUTION}\" - ${STRING} LIVE Source $(date +%Y%m%d-%H:%M)" > source
/.disk
/info
122 # Creating stage file
123 Create_stagefile .build
/source_disk