summaryrefslogtreecommitdiff
path: root/scripts/build
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/build')
-rwxr-xr-xscripts/build/binary_disk126
1 files changed, 60 insertions, 66 deletions
diff --git a/scripts/build/binary_disk b/scripts/build/binary_disk
index aebca2a0e..1187fea69 100755
--- a/scripts/build/binary_disk
+++ b/scripts/build/binary_disk
@@ -99,82 +99,76 @@ fi
case "${LB_DEBIAN_INSTALLER}" in
cdrom)
- echo "main" > binary/.disk/base_components
-
- touch binary/.disk/base_installable
-
- echo "full_cd" > binary/.disk/cd_type
-
- echo "${TITLE} ${VERSION} \"${DISTRIBUTION}\" - ${STRING} LIVE/CD Binary $(date +%Y%m%d-%H:%M)" > binary/.disk/info
-
- for LOCATION in "${LIVE_BUILD}/data/debian-cd" /usr/share/live/build/data/debian-cd
- do
- if [ -e "${LOCATION}" ]
- then
- cp "${LOCATION}/${LB_PARENT_DISTRIBUTION_BINARY}/${LB_ARCHITECTURES}_udeb_include" binary/.disk/udeb_include
-
- continue
- fi
- done
- ;;
-
- netinst|live)
- echo "main" > binary/.disk/base_components
-
- touch binary/.disk/base_installable
-
- if [ "${LB_DEBIAN_INSTALLER}" = "live" ]
- then
- echo "live" > binary/.disk/cd_type
- echo "${TITLE} ${VERSION} \"${DISTRIBUTION}\" - ${STRING} LIVE/INSTALL Binary $(date +%Y%m%d-%H:%M)" > binary/.disk/info
- else
- echo "not_complete" > binary/.disk/cd_type
- echo "${TITLE} ${VERSION} \"${DISTRIBUTION}\" - ${STRING} LIVE/NETINST Binary $(date +%Y%m%d-%H:%M)" > binary/.disk/info
- fi
-
- for LOCATION in "${LIVE_BUILD}/data/debian-cd" /usr/share/live/build/data/debian-cd
- do
- if [ -e "${LOCATION}" ]
- then
- cp "${LOCATION}/${LB_PARENT_DISTRIBUTION_BINARY}/${LB_ARCHITECTURES}_netinst_udeb_include" binary/.disk/udeb_include
-
- continue
- fi
- done
-
- if [ "${LB_DEBIAN_INSTALLER}" = "live" ]
- then
- echo "live-installer" >> binary/.disk/udeb_include
- fi
+ DISK_LABEL="LIVE/CD"
+ DISK_TYPE="full_cd"
;;
-
netboot)
- #FIXME incomplete?
- echo "${TITLE} ${VERSION} \"${DISTRIBUTION}\" - ${STRING} LIVE/NETBOOT Binary $(date +%Y%m%d-%H:%M)" > binary/.disk/info
+ DISK_LABEL="LIVE/NETBOOT"
+ #FIXME: type?
+ DISK_TYPE=""
+ ;;
+ netinst)
+ DISK_LABEL="LIVE/NETINST"
+ DISK_TYPE="not_complete"
+ ;;
+ live)
+ DISK_LABEL="LIVE/INSTALL"
+ DISK_TYPE="live"
;;
-
businesscard)
- echo "main" > binary/.disk/base_components
-
- echo "not_complete" > binary/.disk/cd_type
+ DISK_LABEL="LIVE/BC"
+ DISK_TYPE="not_complete"
+ ;;
+ none)
+ DISK_LABEL="LIVE"
+ DISK_TYPE=""
+ ;;
+esac
- echo "${TITLE} ${VERSION} \"${DISTRIBUTION}\" - ${STRING} LIVE/BC Binary $(date +%Y%m%d-%H:%M)" > binary/.disk/info
+echo "${TITLE} ${VERSION} \"${DISTRIBUTION}\" - ${STRING} ${DISK_LABEL} Binary $(date +%Y%m%d-%H:%M)" > binary/.disk/info
- for LOCATION in "${LIVE_BUILD}/data/debian-cd" /usr/share/live/build/data/debian-cd
- do
- if [ -e "${LOCATION}" ]
- then
- cp "${LOCATION}/${LB_PARENT_DISTRIBUTION_BINARY}/${LB_ARCHITECTURES}_businesscard_udeb_include" binary/.disk/udeb_include
+if [ -n "${DISK_TYPE}" ]; then
+ echo "${DISK_TYPE}" > binary/.disk/cd_type
+fi
- continue
- fi
- done
+#FIXME review the netboot case
+case "${LB_DEBIAN_INSTALLER}" in
+ none|netboot)
;;
-
- none)
- echo "${TITLE} ${VERSION} \"${DISTRIBUTION}\" - ${STRING} LIVE Binary $(date +%Y%m%d-%H:%M)" > binary/.disk/info
+ businesscard)
+ echo "main" > binary/.disk/base_components
+ ;;
+ *)
+ echo "main" > binary/.disk/base_components
+ touch binary/.disk/base_installable
;;
esac
+#FIXME review the netboot case
+for LOCATION in "${LIVE_BUILD}/data/debian-cd" /usr/share/live/build/data/debian-cd
+do
+ if [ -e "${LOCATION}" ]
+ then
+ case "${LB_DEBIAN_INSTALLER}" in
+ cdrom)
+ cp "${LOCATION}/${LB_PARENT_DISTRIBUTION_BINARY}/${LB_ARCHITECTURES}_udeb_include" binary/.disk/udeb_include
+ ;;
+ netinst|live)
+ cp "${LOCATION}/${LB_PARENT_DISTRIBUTION_BINARY}/${LB_ARCHITECTURES}_netinst_udeb_include" binary/.disk/udeb_include
+ ;;
+ businesscard)
+ cp "${LOCATION}/${LB_PARENT_DISTRIBUTION_BINARY}/${LB_ARCHITECTURES}_businesscard_udeb_include" binary/.disk/udeb_include
+ ;;
+ none|netboot)
+ ;;
+ esac
+ fi
+done
+
+if [ "${LB_DEBIAN_INSTALLER}" = "live" ]
+then
+ echo "live-installer" >> binary/.disk/udeb_include
+fi
+
# Creating stage file
Create_stagefile .build/binary_disk