I attempted a fix at https://paste.ubuntu.com/p/hsRgrpr5PT/, but it appears that /dev/disk/by-path isn't available when the top script runs at all, so the check never finds any disks. (The existing code that references those paths appears to be a special case where the script is running a second time, so it may well be correct still.)
I attempted a fix at https:/ /paste. ubuntu. com/p/hsRgrpr5P T/, but it appears that /dev/disk/by-path isn't available when the top script runs at all, so the check never finds any disks. (The existing code that references those paths appears to be a special case where the script is running a second time, so it may well be correct still.)
My next attempt will be https:/ /paste. ubuntu. com/p/cT5tDK2rd H/ which moves the snippet in question from local-top to local-bottom.