summaryrefslogtreecommitdiff
path: root/scripts/install/install-postinst-new
diff options
context:
space:
mode:
authorzsdc <taras@vyos.io>2023-08-21 18:07:51 +0300
committerChristian Breunig <christian@breunig.cc>2023-09-22 06:14:28 +0200
commit3e205d4a897137541c538775350171e13fd76941 (patch)
treecfb9c23e1979f9f68bae5ef7084b5ee9392a5377 /scripts/install/install-postinst-new
parentd72aabf2fe33b9a158f93eea04ff619b694ed213 (diff)
downloadvyatta-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-xscripts/install/install-postinst-new2
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"