diff options
author | zsdc <taras@vyos.io> | 2023-08-21 18:07:51 +0300 |
---|---|---|
committer | Christian Breunig <christian@breunig.cc> | 2023-09-22 06:14:28 +0200 |
commit | 3e205d4a897137541c538775350171e13fd76941 (patch) | |
tree | cfb9c23e1979f9f68bae5ef7084b5ee9392a5377 /scripts/install/install-postinst-new | |
parent | d72aabf2fe33b9a158f93eea04ff619b694ed213 (diff) | |
download | vyatta-cfg-system-3e205d4a897137541c538775350171e13fd76941.tar.gz vyatta-cfg-system-3e205d4a897137541c538775350171e13fd76941.zip |
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)
Diffstat (limited to 'scripts/install/install-postinst-new')
-rwxr-xr-x | scripts/install/install-postinst-new | 2 |
1 files changed, 1 insertions, 1 deletions
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" |