diff options
author | jnqnfe <jnqnfe@gmail.com> | 2014-11-24 19:40:30 +0000 |
---|---|---|
committer | Daniel Baumann <mail@daniel-baumann.ch> | 2014-12-10 08:44:05 +0100 |
commit | 31dbf95d865503f7d3c67ed3ded6cb9926dfc3b4 (patch) | |
tree | 7d5a327b8fc7b474c0ce4799b21dafd6dd9c7bb0 /scripts | |
parent | 9d5639e9a058ea7cfb13500ed71dd97447135069 (diff) | |
download | vyos-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.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/build/chroot_firmware | 14 | ||||
-rwxr-xr-x | scripts/build/installer_debian-installer | 14 |
2 files changed, 24 insertions, 4 deletions
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" ] |