From 07cd3dfa3507d01ccbeb710e2b6c8160966ff51d Mon Sep 17 00:00:00 2001 From: Robert Nelson Date: Wed, 11 Jan 2012 11:47:23 -0600 Subject: [PATCH] finish: when using multiple drives during install, find and use the root one for the boot args Signed-off-by: Robert Nelson --- scripts/debian-finish.sh | 4 ++-- scripts/ubuntu-finish.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/debian-finish.sh b/scripts/debian-finish.sh index ffbd41b..694f578 100644 --- a/scripts/debian-finish.sh +++ b/scripts/debian-finish.sh @@ -1,8 +1,8 @@ #!/bin/bash #Find Target Partition and FileSystem -FINAL_PART=$(mount | grep /dev/ | grep -v devpts | awk '{print $1}') -FINAL_FSTYPE=$(mount | grep /dev/ | grep -v devpts | awk '{print $5}') +FINAL_PART=$(mount | grep /dev/ | grep -v devpts | grep " / " | awk '{print $1}') +FINAL_FSTYPE=$(mount | grep /dev/ | grep -v devpts | grep " / " | awk '{print $5}') #Cleanup: NetInstall Files rm -f /boot/uboot/uInitrd.net || true diff --git a/scripts/ubuntu-finish.sh b/scripts/ubuntu-finish.sh index 8b71730..e985b83 100644 --- a/scripts/ubuntu-finish.sh +++ b/scripts/ubuntu-finish.sh @@ -1,8 +1,8 @@ #!/bin/bash #Find Target Partition and FileSystem -FINAL_PART=$(mount | grep /dev/ | grep -v devpts | awk '{print $1}') -FINAL_FSTYPE=$(mount | grep /dev/ | grep -v devpts | awk '{print $5}') +FINAL_PART=$(mount | grep /dev/ | grep -v devpts | grep " / " | awk '{print $1}') +FINAL_FSTYPE=$(mount | grep /dev/ | grep -v devpts | grep " / " | awk '{print $5}') #Cleanup: NetInstall Files rm -f /boot/uboot/uInitrd.net || true