From: Dietmar Maurer Date: Wed, 14 Jan 2015 08:38:31 +0000 (+0100) Subject: do not use /dev/disk/by-id/ because of strange errors X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=486c490d97b903996b029b3ffec3b92c9897d806;p=pve-installer.git do not use /dev/disk/by-id/ because of strange errors --- diff --git a/proxinstall b/proxinstall index d7c57c5..49193d2 100755 --- a/proxinstall +++ b/proxinstall @@ -616,7 +616,11 @@ sub diversion_remove { sub zfs_create_rpool { my ($zfspoolname, $targetdev) = @_; - my $full_path =find_stable_path ("/dev/disk/by-id", $targetdev) || $targetdev; + # Note: using /dev/disk/by-id/ does not work for unknown reason, we get + # cannot create 'rpool': no such pool or dataset + # my $full_path = find_stable_path ("/dev/disk/by-id", $targetdev) || $targetdev; + + my $full_path = $targetdev; syscmd ("zpool create -f -o ashift=12 $zfspoolname ${full_path}") == 0 || die "unable to create zfs root pool\n";