Improve drive format consistency by swapping driver prior to format

This commit is contained in:
Taylor Helsper 2022-06-13 19:52:48 -05:00
parent 3cc4a1155d
commit 666835cd65
2 changed files with 4 additions and 1 deletions

View File

@ -78,6 +78,9 @@ proc createMyNodeFsOnBlockDevice {blockDevice} {
}
if [catch {
# Run USB check to make sure we are using a good driver
runCommand /usr/bin/mynode_usb_driver_check.sh > /dev/null
puts "Waiting on format confirmation..."
runCommand echo "drive_format_confirm" > /tmp/.mynode_status
while { [file exists "/tmp/format_ok"] == 0 } {

View File

@ -2,7 +2,7 @@
set -x
source /usr/share/mynode/mynode_config.sh
source /usr/share/mynode/mynode_device_info.sh
# Allow UAS
if [ -f /mnt/hdd/mynode/settings/.uas_usb_enabled ] || [ -f /home/bitcoin/.mynode/.uas_usb_enabled ]; then