diff options
author | zsdc <taras@vyos.io> | 2023-08-21 18:07:51 +0300 |
---|---|---|
committer | zsdc <taras@vyos.io> | 2023-08-21 18:07:51 +0300 |
commit | 4e5d53ce0b5a367be3399b102186dbcd4615ab3f (patch) | |
tree | 8fe2e57d1060cf8b4a8ea23b54f3a72dcc4a067a /scripts/install/install-postinst-new | |
parent | bac61854acd40b4eae8b12e47be54306171f5c3c (diff) | |
download | vyatta-cfg-system-4e5d53ce0b5a367be3399b102186dbcd4615ab3f.tar.gz vyatta-cfg-system-4e5d53ce0b5a367be3399b102186dbcd4615ab3f.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.
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" |