summaryrefslogtreecommitdiff
path: root/scripts/build/lb_binary_burg
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/build/lb_binary_burg')
-rwxr-xr-xscripts/build/lb_binary_burg13
1 files changed, 6 insertions, 7 deletions
diff --git a/scripts/build/lb_binary_burg b/scripts/build/lb_binary_burg
index e2eea70..1bc16db 100755
--- a/scripts/build/lb_binary_burg
+++ b/scripts/build/lb_binary_burg
@@ -78,18 +78,17 @@ Burg_live_entry ()
_NUMBER="$(echo ${LB_LINUX_FLAVOURS} | awk -v FLAVOUR="${FLAVOUR}" 'BEGIN{RS=" "} {if($1 == FLAVOUR) print NR}')"
fi
- if [ -e ${KERNEL_PATH}/${KERNEL} ]
+ if [ -e binary/${KERNEL} ]
then
- mv ${KERNEL_PATH}/${KERNEL} ${KERNEL_PATH}/vmlinuz${_NUMBER}
+ mv binary/${KERNEL} "binary/$(dirname ${KERNEL})/vmlinuz${_NUMBER}"
+ KERNEL="$(dirname ${KERNEL})/vmlinuz${_NUMBER}"
fi
- if [ -e ${KERNEL_PATH}/${INITRD} ]
+ if [ -e binary/${INITRD} ]
then
- mv ${KERNEL_PATH}/${INITRD} ${KERNEL_PATH}/initrd${_NUMBER}.img
+ mv binary/${INITRD} "binary/$(dirname ${INITRD})/initrd${_NUMBER}.img"
+ INITRD="$(dirname ${INITRD})/initrd${_NUMBER}.img"
fi
-
- KERNEL=vmlinuz${_NUMBER}
- INITRD=initrd${_NUMBER}.img
;;
esac