From fe227b7d140dc6bb2ed3ffba9b1ef0eceb611ca1 Mon Sep 17 00:00:00 2001 From: Iru Cai Date: Fri, 2 Sep 2022 09:21:03 +0800 Subject: add --bootloader-only option --- buildlive | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/buildlive b/buildlive index bc2c12e..3020410 100755 --- a/buildlive +++ b/buildlive @@ -17,6 +17,7 @@ DOWNLOAD_ONLY=0 UMOUNT_BOOT=0 UMOUNT_ROOT=0 CLEAN_USB=0 +BOOTLOADER_ONLY=0 . functions.sh @@ -30,6 +31,7 @@ options: --boot --boot=: set the path to put the kernel and loader files --clean: clean the old live USB files before installing + --bootloader-only: only install the boot loader --no-grub: do not install GRUB loader (still generate grub.cfg) --grubcfg: do not do real install, only generate grub.cfg file --downloadonly: only download the ISO files @@ -85,6 +87,9 @@ do --dev=*) DEVNAME=${1/--dev=} ;; + --bootloader-only) + BOOTLOADER_ONLY=1 + ;; --no-grub) INSTALL_GRUB=0 ;; @@ -166,7 +171,7 @@ if [[ "$DOWNLOAD_ONLY" == 0 ]]; then msg "Files will be copy to $ROOTPATH" fi -if [[ "${#DISTROLIST[@]}" == 0 ]]; then +if [[ "$BOOTLOADER_ONLY" == 0 && "${#DISTROLIST[@]}" == 0 ]]; then usage exit 1 fi -- cgit v1.2.3