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