[pve-devel] [PATCH installer 2/2] use by-id diskpath for zpool create
Stoiko Ivanov
s.ivanov at proxmox.com
Tue Jul 2 16:44:32 CEST 2019
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.20.1
More information about the pve-devel
mailing list