summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLyndon Brown <jnqnfe@gmail.com>2020-03-25 01:56:17 +0000
committerLyndon Brown <jnqnfe@gmail.com>2020-04-29 20:08:39 +0100
commita8a6addaf5405ed68cc6132522f09aa6bf5079e5 (patch)
tree7d17c81e0c19ad122e758b624b5e46d37e719419
parent1374e82e24aead5c827b49dd7a37e8d14dc7bf41 (diff)
downloadvyos-live-build-a8a6addaf5405ed68cc6132522f09aa6bf5079e5.tar.gz
vyos-live-build-a8a6addaf5405ed68cc6132522f09aa6bf5079e5.zip
loopback: tidy formatting
Gbp-Dch: Ignore
-rwxr-xr-xscripts/build/binary_loopback_cfg41
1 files changed, 24 insertions, 17 deletions
diff --git a/scripts/build/binary_loopback_cfg b/scripts/build/binary_loopback_cfg
index 220e4744f..404789e85 100755
--- a/scripts/build/binary_loopback_cfg
+++ b/scripts/build/binary_loopback_cfg
@@ -119,8 +119,7 @@ case "${LB_INITRAMFS}" in
esac
# Setting boot parameters
-if [ "${LB_UNION_FILESYSTEM}" != "overlay" ]
-then
+if [ "${LB_UNION_FILESYSTEM}" != "overlay" ]; then
LB_BOOTAPPEND_LIVE="${LB_BOOTAPPEND_LIVE} union=${LB_UNION_FILESYSTEM}"
fi
@@ -136,9 +135,8 @@ APPEND_LIVE="${LB_BOOTAPPEND_LIVE} findiso=\${iso_path}"
# Assembling kernel configuration
_AMD64_686_NUMBER="0"
-for _FLAVOUR in ${LB_LINUX_FLAVOURS}
-do
- if [ "${_FLAVOUR}" = "amd64" -o "${_FLAVOUR}" = "686" ] ; then
+for _FLAVOUR in ${LB_LINUX_FLAVOURS}; do
+ if [ "${_FLAVOUR}" = "amd64" -o "${_FLAVOUR}" = "686" ]; then
_AMD64_686_NUMBER="$((${_AMD64_686_NUMBER} + 1))"
fi
done
@@ -157,8 +155,7 @@ if [ "${_AMD64_686_NUMBER}" -ge 2 ] ; then
"/${INITFS}/${_686_INITRD}" \
"${APPEND_LIVE}"
- if [ "${LB_BOOTAPPEND_LIVE_FAILSAFE}" != "none" ]
- then
+ if [ "${LB_BOOTAPPEND_LIVE_FAILSAFE}" != "none" ]; then
Grub_live_autodetect_entry "Live system (autodetect) (fail-safe mode)" \
"/${INITFS}/${AMD64_KERNEL}" \
"/${INITFS}/${AMD64_INITRD}" \
@@ -167,10 +164,16 @@ if [ "${_AMD64_686_NUMBER}" -ge 2 ] ; then
"${LB_BOOTAPPEND_LIVE_FAILSAFE}"
fi
else
- Grub_live_entry "Live system" "/${INITFS}/${DEFAULT_KERNEL}" "/${INITFS}/${DEFAULT_INITRD}" "${APPEND_LIVE}" "l"
- if [ "${LB_BOOTAPPEND_LIVE_FAILSAFE}" != "none" ]
- then
- Grub_live_entry "Live system (fail-safe mode)" "/${INITFS}/${DEFAULT_KERNEL}" "/${INITFS}/${DEFAULT_INITRD}" "${LB_BOOTAPPEND_LIVE_FAILSAFE}"
+ Grub_live_entry "Live system" \
+ "/${INITFS}/${DEFAULT_KERNEL}" \
+ "/${INITFS}/${DEFAULT_INITRD}" \
+ "${APPEND_LIVE}" \
+ "l"
+ if [ "${LB_BOOTAPPEND_LIVE_FAILSAFE}" != "none" ]; then
+ Grub_live_entry "Live system (fail-safe mode)" \
+ "/${INITFS}/${DEFAULT_KERNEL}" \
+ "/${INITFS}/${DEFAULT_INITRD}" \
+ "${LB_BOOTAPPEND_LIVE_FAILSAFE}"
fi
fi
@@ -180,21 +183,25 @@ for KERNEL in chroot/boot/vmlinuz-*; do
done
if [ $_COUNT -gt 1 ]; then
- for KERNEL in chroot/boot/vmlinuz-*
- do
+ for KERNEL in chroot/boot/vmlinuz-*; do
VERSION="$(basename ${KERNEL} | sed -e 's|vmlinuz-||')"
- Grub_live_entry "Live system, kernel ${VERSION}" "/${INITFS}/$(basename ${KERNEL})" "/${INITFS}/initrd.img-${VERSION}" "${APPEND_LIVE}"
+ Grub_live_entry "Live system, kernel ${VERSION}" \
+ "/${INITFS}/$(basename ${KERNEL})" \
+ "/${INITFS}/initrd.img-${VERSION}" \
+ "${APPEND_LIVE}"
if [ "${LB_BOOTAPPEND_LIVE_FAILSAFE}" != "none" ]; then
- Grub_live_entry "Live system, kernel ${VERSION} (fail-safe mode)" "/${INITFS}/$(basename ${KERNEL})" "/${INITFS}/initrd.img-${VERSION}" "${LB_BOOTAPPEND_LIVE_FAILSAFE}"
+ Grub_live_entry "Live system, kernel ${VERSION} (fail-safe mode)" \
+ "/${INITFS}/$(basename ${KERNEL})" \
+ "/${INITFS}/initrd.img-${VERSION}" \
+ "${LB_BOOTAPPEND_LIVE_FAILSAFE}"
fi
done
fi
# Assembling debian-installer configuration
-if [ "${LB_DEBIAN_INSTALLER}" != "none" ]
-then
+if [ "${LB_DEBIAN_INSTALLER}" != "none" ]; then
ENABLE_INSTALL_MENU="true"
LINUX_INSTALL="source /boot/grub/install_start.cfg"
LINUX_ADVANCED_INSTALL="source /boot/grub/install.cfg"