summaryrefslogtreecommitdiff
path: root/scripts/build/lb_binary_grub
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/build/lb_binary_grub')
-rwxr-xr-xscripts/build/lb_binary_grub10
1 files changed, 9 insertions, 1 deletions
diff --git a/scripts/build/lb_binary_grub b/scripts/build/lb_binary_grub
index ee14bd900..39aca30d3 100755
--- a/scripts/build/lb_binary_grub
+++ b/scripts/build/lb_binary_grub
@@ -68,7 +68,7 @@ Grub_live_entry ()
APPEND="${4}"
LINUX_LIVE="${LINUX_LIVE}\ntitle\t\tDebian GNU/Linux - ${LABEL}"
- LINUX_LIVE="${LINUX_LIVE}\nkernel\t\t/${KERNEL} boot=${INITFS} config LB_BOOTAPPEND_LIVE ${APPEND}"
+ LINUX_LIVE="${LINUX_LIVE}\nkernel\t\t/${KERNEL} ${INITFS:+boot=${INITFS} }config LB_BOOTAPPEND_LIVE ${APPEND}"
LINUX_LIVE="${LINUX_LIVE}\ninitrd\t\t/${INITRD}"
}
@@ -125,6 +125,10 @@ case "${LB_INITRAMFS}" in
live-boot)
INITFS="live"
;;
+
+ *)
+ INITFS=""
+ ;;
esac
# Setting destination directory
@@ -138,6 +142,10 @@ case "${LB_BINARY_IMAGES}" in
live-boot)
DESTDIR_LIVE="binary/live"
;;
+
+ *)
+ DESTDIR_LIVE="binary/boot"
+ ;;
esac
DESTDIR_INSTALL="binary/install"