From 3e205d4a897137541c538775350171e13fd76941 Mon Sep 17 00:00:00 2001 From: zsdc Date: Mon, 21 Aug 2023 18:07:51 +0300 Subject: installer: T4776: Fixed installation on NVME in RAID-1 mode This change fixes installation into two NVME devices. It should be considered as a temporary solution before migration to the new installer. (cherry picked from commit 4e5d53ce0b5a367be3399b102186dbcd4615ab3f) --- scripts/install/install-postinst-new | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/install/install-postinst-new') diff --git a/scripts/install/install-postinst-new b/scripts/install/install-postinst-new index 8bb7c8bd..14148045 100755 --- a/scripts/install/install-postinst-new +++ b/scripts/install/install-postinst-new @@ -157,7 +157,7 @@ install_grub () { else if [[ $grub_inst_drv == "md raid" ]]; then for slave in $raid_slaves; do - grub_inst_drv=${slave:0:3} + grub_inst_drv=$(lsblk --noempty --dedup PKNAME --nodeps --noheadings --output PKNAME /dev/${slave}) output=$(grub-install --no-floppy --recheck --root-directory=$grub_root \ /dev/$grub_inst_drv 2>&1) lecho "$output" -- cgit v1.2.3