summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjnqnfe <jnqnfe@gmail.com>2014-11-24 19:40:30 +0000
committerDaniel Baumann <mail@daniel-baumann.ch>2014-12-10 08:44:05 +0100
commit31dbf95d865503f7d3c67ed3ded6cb9926dfc3b4 (patch)
tree7d5a327b8fc7b474c0ce4799b21dafd6dd9c7bb0
parent9d5639e9a058ea7cfb13500ed71dd97447135069 (diff)
downloadvyos-live-build-31dbf95d865503f7d3c67ed3ded6cb9926dfc3b4.tar.gz
vyos-live-build-31dbf95d865503f7d3c67ed3ded6cb9926dfc3b4.zip
Address "should check that we're building on debian through e.g. a 'derivative-is-based-on' variable or somesuch" fixme.
-rwxr-xr-xfunctions/defaults.sh1
-rwxr-xr-xscripts/build/chroot_firmware14
-rwxr-xr-xscripts/build/installer_debian-installer14
3 files changed, 25 insertions, 4 deletions
diff --git a/functions/defaults.sh b/functions/defaults.sh
index 095a7a20e..0e9bf3700 100755
--- a/functions/defaults.sh
+++ b/functions/defaults.sh
@@ -127,6 +127,7 @@ Set_defaults ()
progress-linux)
LB_DISTRIBUTION="${LB_DISTRIBUTION:-baureo}"
LB_DERIVATIVE="true"
+ LB_DERIVATIVE_IS_BASED_ON="debian"
;;
ubuntu)
diff --git a/scripts/build/chroot_firmware b/scripts/build/chroot_firmware
index 7c9091124..f62a17468 100755
--- a/scripts/build/chroot_firmware
+++ b/scripts/build/chroot_firmware
@@ -69,9 +69,19 @@ done
if echo ${LIVE_IMAGE_PARENT_ARCHIVE_AREAS} | grep -qs "non-free"
then
- # FIXME: should check that we're building on debian through e.g. a 'derivative-is-based-on' variable or somesuch.
# Manually add firmware-linux/non-free meta package
- FIRMWARE_PACKAGES="${FIRMWARE_PACKAGES} firmware-linux"
+ if [ "${LB_DERIVATIVE}" != "true" ]
+ then
+ FIRMWARE_PACKAGES="${FIRMWARE_PACKAGES} firmware-linux"
+ else
+ case "${LB_DERIVATIVE_IS_BASED_ON}" in
+ debian)
+ FIRMWARE_PACKAGES="${FIRMWARE_PACKAGES} firmware-linux"
+ ;;
+ *)
+ ;;
+ esac
+ fi
fi
if [ "${LB_DERIVATIVE}" = "true" ]
diff --git a/scripts/build/installer_debian-installer b/scripts/build/installer_debian-installer
index 65631326b..a0868248e 100755
--- a/scripts/build/installer_debian-installer
+++ b/scripts/build/installer_debian-installer
@@ -432,9 +432,19 @@ then
if echo ${LIVE_IMAGE_PARENT_ARCHIVE_AREAS} | grep -qs "non-free"
then
- # FIXME: should check that we're building on debian through e.g. a 'derivative-is-based-on' variable or somesuch.
# Manually add firmware-linux/non-free meta package
- FIRMWARE_PACKAGES="${FIRMWARE_PACKAGES} firmware-linux"
+ if [ "${LB_DERIVATIVE}" != "true" ]
+ then
+ FIRMWARE_PACKAGES="${FIRMWARE_PACKAGES} firmware-linux"
+ else
+ case "${LB_DERIVATIVE_IS_BASED_ON}" in
+ debian)
+ FIRMWARE_PACKAGES="${FIRMWARE_PACKAGES} firmware-linux"
+ ;;
+ *)
+ ;;
+ esac
+ fi
fi
if [ "${LB_DERIVATIVE}" = "true" ]