Skip to content

Commit

Permalink
Fix issue #23
Browse files Browse the repository at this point in the history
  • Loading branch information
TheRemote committed Aug 13, 2022
1 parent 7f496a2 commit d5c54ff
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,16 @@ These are iozone and fio which are both benchmarking utilities and should be saf

<h2>Update History</h2>

<h3>August 13th 2022</h3>
<ul>
<li>Fixed findmnt failing when target is not a mountpoint (thanks mhaas, <a href="https://github.com/TheRemote/PiBenchmarks/issues/23" target="_blank">issue #23<a></li>
</ul>

<h3>June 27th 2022</h3>
<ul>
<li>Fixed udevadm giving a message that option 'w' was missing on some versions -- now runs a fallback test without that option</li>
</ul>


<h3>June 24th 2022</h3>
<ul>
<li>PC results now show in "Latest" and a "Top PC Scores" section has been added!</li>
Expand Down
4 changes: 2 additions & 2 deletions Storage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ if [ -z "$ChosenPartition" ]; then
# User did not provide a partition/folder, continue with rootfs
# --Get system boot drive information--
# Find from mountpoint first
BootDrive=$(findmnt -n -o SOURCE /)
BootDrive=$(findmnt -n -o SOURCE --target /)

# Find by matching device IDs to / next
if [ -z "$BootDrive" ]; then
Expand Down Expand Up @@ -339,7 +339,7 @@ if [ -z "$ChosenPartition" ]; then
BootDrive=$(df -H | grep -m 1 boot | awk 'NR==1{ print $1 }' | sed 's/\[\/\@\]//g')
fi
else
BootDrive=$(findmnt -n -o SOURCE "$ChosenPartition" | sed 's/\[\/\@\]//g')
BootDrive=$(findmnt -n -o SOURCE --target "$ChosenPartition" | sed 's/\[\/\@\]//g')
fi

# Detect BootDrive suffix
Expand Down

0 comments on commit d5c54ff

Please sign in to comment.