From dc83e25ed222635098d657f80075d02bf2b010cd Mon Sep 17 00:00:00 2001 From: Saverio Miroddi Date: Thu, 10 Oct 2019 10:28:05 +0200 Subject: [PATCH] Handle freaky cases of `/dev/disk/by-id` not being up to date --- install-zfs.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/install-zfs.sh b/install-zfs.sh index c3999f0a..9e711ad7 100755 --- a/install-zfs.sh +++ b/install-zfs.sh @@ -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")")"