]> git.proxmox.com Git - pve-installer.git/commitdiff
use by-id diskpath for zpool create
authorStoiko Ivanov <s.ivanov@proxmox.com>
Tue, 2 Jul 2019 14:44:32 +0000 (16:44 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 3 Jul 2019 04:29:05 +0000 (06:29 +0200)
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

index 5f4544a0ff7a598bd367cbb3e7e65977409208c3..d3b2f7c571c3790507c13baff804def3c29e1519 100755 (executable)
@@ -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/;
            }