Skip to content

Commit

Permalink
Handle freaky cases of /dev/disk/by-id not being up to date
Browse files Browse the repository at this point in the history
  • Loading branch information
64kramsystem committed Oct 10, 2019
1 parent 4446d1c commit dc83e25
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions install-zfs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,11 @@ In order to stop the procedure, hit Esc twice during dialogs (excluding yes/no o
function find_disks {
print_step_info_header

# In some freaky cases, `/dev/disk/by-id` is not up to date, so we refresh. One case is after
# starting a VirtualBox VM that is a full clone of a suspended VM with snapshots.
#
udevadm trigger

while read -r disk_id; do
local device_info
device_info="$(udevadm info --query=property "$(readlink -f "$disk_id")")"
Expand Down

0 comments on commit dc83e25

Please sign in to comment.