Gentoo Archives: gentoo-catalyst

From: Matt Turner <mattst88@g.o>
To: gentoo-catalyst@l.g.o
Cc: Matt Turner <mattst88@g.o>
Subject: [gentoo-catalyst] [PATCH 29/37] targets: Drop warning about no cdtar
Date: Wed, 21 Oct 2020 00:24:49
Message-Id: 20201021002344.378131-29-mattst88@gentoo.org
In Reply to: [gentoo-catalyst] [PATCH 01/37] catalyst: Use early return to unindent code by Matt Turner
1 Most platforms use grub now and don't need a cdtar. Also use double
2 brackets while we're here.
3
4 Signed-off-by: Matt Turner <mattst88@g.o>
5 ---
6 targets/support/bootloader-setup.sh | 6 +-----
7 1 file changed, 1 insertion(+), 5 deletions(-)
8
9 diff --git a/targets/support/bootloader-setup.sh b/targets/support/bootloader-setup.sh
10 index a82b69dc..ea18f736 100755
11 --- a/targets/support/bootloader-setup.sh
12 +++ b/targets/support/bootloader-setup.sh
13 @@ -4,12 +4,8 @@ source ${clst_shdir}/support/functions.sh
14
15 # $1 is the destination root
16
17 -if [ -n "${clst_cdtar}" ]
18 -then
19 +if [[ -n ${clst_cdtar} ]]; then
20 extract_cdtar $1
21 -else
22 - #While this seems a little crazy, it's entirely possible the bootloader is just shoved in isoroot overlay
23 - echo "No cdtar and unable to auto generate boot loader files... good luck"
24 fi
25
26 extract_kernels $1/boot
27 --
28 2.26.2