From 52189bd8827d1b918bfe41e6f979b1da47e31fe3 Mon Sep 17 00:00:00 2001 From: Tobias Powalowski Date: Mon, 11 Apr 2022 20:08:13 +0200 Subject: [PATCH] fix btrfs raid selection --- usr/lib/archboot/installer/btrfs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/lib/archboot/installer/btrfs.sh b/usr/lib/archboot/installer/btrfs.sh index f27e0561a..170428e4b 100644 --- a/usr/lib/archboot/installer/btrfs.sh +++ b/usr/lib/archboot/installer/btrfs.sh @@ -150,7 +150,7 @@ select_btrfs_raid_devices () { [[ "${RAIDNUMBER}" -ge 4 && "${BTRFS_LEVEL}" = "raid5" ]] && BTRFS_DONE="DONE _" [[ "${RAIDNUMBER}" -ge 5 && "${BTRFS_LEVEL}" = "raid10" || "${BTRFS_LEVEL}" = "raid6" ]] && BTRFS_DONE="DONE _" # clean loop from used partition and options - BTRFS_PARTS="${BTRFS_PARTS//${BTRFS_PART}\ _/}" + BTRFS_PARTS="$(echo "${BTRFS_PARTS}" | sed -e "s#${BTRFS_PART}\ _##g")" # add more devices #shellcheck disable=SC2086 DIALOG --menu "Select device ${RAIDNUMBER}" 21 50 13 ${BTRFS_PARTS} ${BTRFS_DONE} 2>"${ANSWER}" || return 1