From 75ee36409b227194463d78956329286683ec2e13 Mon Sep 17 00:00:00 2001 From: Tobias Powalowski Date: Sat, 14 Jan 2023 14:35:24 +0100 Subject: [PATCH] merge the 2 _createmd functions --- usr/lib/archboot/installer/blockdevices.sh | 5 ----- 1 file changed, 5 deletions(-) diff --git a/usr/lib/archboot/installer/blockdevices.sh b/usr/lib/archboot/installer/blockdevices.sh index 5f5b7cbc1..022aa3239 100644 --- a/usr/lib/archboot/installer/blockdevices.sh +++ b/usr/lib/archboot/installer/blockdevices.sh @@ -549,11 +549,6 @@ _createmd() _dialog --yesno "Would you like to create ${_RAIDDEV} like this?\n\nLEVEL:\n${_LEVEL}\n\nDEVICES:\n$(while read -r i;do echo "${i}\n"; done < /tmp/.raid)\nSPARES:\n$(while read -r i;do echo "${i}\n"; done < tmp/.raid-spare)" 0 0 && _MDFINISH="DONE" done _umountall - _createmd -} - -_createmd() -{ _DEVS="$(echo -n "$(cat /tmp/.raid)")" _SPARES="$(echo -n "$(cat /tmp/.raid-spare)")" # combine both if spares are available, spares at the end!