From e1fdd3d069ee57ddeb5477db72f9483176003985 Mon Sep 17 00:00:00 2001 From: Stoiko Ivanov Date: Tue, 2 Jul 2019 16:44:32 +0200 Subject: [PATCH] use by-id diskpath for zpool create With the recent fixes to the installers initial /dev creation, the installer and the kernel should now have the same view on the created devices and links --- proxinstall | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/proxinstall b/proxinstall index 5f4544a..d3b2f7c 100755 --- a/proxinstall +++ b/proxinstall @@ -1250,11 +1250,8 @@ sub extract_data { my $devname = $di->{devname}; $di->{by_id} = find_stable_path ("/dev/disk/by-id", $devname); - # Note: using /dev/disk/by-id/ does not work for unknown reason, we get - # cannot create 'rpool': no such pool or dataset - #my $osdev = find_stable_path ("/dev/disk/by-id", $di->{osdev}) || $di->{osdev}; + my $osdev = find_stable_path ("/dev/disk/by-id", $di->{osdev}) || $di->{osdev}; - my $osdev = $di->{osdev}; $vdev =~ s/ $devname/ $osdev/; } -- 2.39.2