From 8de0457cc0ce81a2f375e5e4701c2a0114b3e259 Mon Sep 17 00:00:00 2001 From: Tobias Powalowski Date: Thu, 8 Feb 2024 17:47:36 +0100 Subject: [PATCH] fix btrfs raid --- usr/lib/archboot/installer/btrfs.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr/lib/archboot/installer/btrfs.sh b/usr/lib/archboot/installer/btrfs.sh index 30f2dac7d..7b1a222be 100644 --- a/usr/lib/archboot/installer/btrfs.sh +++ b/usr/lib/archboot/installer/btrfs.sh @@ -133,9 +133,10 @@ _select_btrfsraid_devices () { # select the second device to use, no missing option available! : >/tmp/.btrfs-devices echo "${_BTRFS_DEV}" >>/tmp/.btrfs-devices + _BTRFS_DEVS="" #shellcheck disable=SC2001,SC2086 for i in ${_DEVS}; do - echo "${i}" | grep -q /dev && _BTRFS_DEVS="${i} _ " + echo "${i}" | grep -q /dev && _BTRFS_DEVS="${_BTRFS_DEVS} ${i} _ " done _BTRFS_DEVS=${_BTRFS_DEVS//${_BTRFS_DEV}\ _/} _RAIDNUMBER=2