[pve-devel] [PATCH installer 2/3] linewrap bootdevinfo generation

Stoiko Ivanov s.ivanov at proxmox.com
Tue Nov 26 15:27:46 CET 2019


Signed-off-by: Stoiko Ivanov <s.ivanov at proxmox.com>
---
 proxinstall | 16 ++++++++++++----
 1 file changed, 12 insertions(+), 4 deletions(-)

diff --git a/proxinstall b/proxinstall
index 1a5acc5..a0ba91f 100755
--- a/proxinstall
+++ b/proxinstall
@@ -1278,8 +1278,12 @@ sub extract_data {
 		    partition_bootable_disk($devname, undef, '8300');
 		$rootdev = $osdev if !defined($rootdev); # simply point to first disk
 		my $by_id = find_stable_path("/dev/disk/by-id", $devname);
-		push @$bootdevinfo, { esp => $efidev, devname => $devname,
-				      osdev => $osdev, by_id => $by_id };
+		push @$bootdevinfo, {
+		    esp => $efidev,
+		    devname => $devname,
+		    osdev => $osdev,
+		    by_id => $by_id,
+		};
 		push @$btrfs_partitions, $osdev;
 		$disksize = $size;
 	    }
@@ -1339,8 +1343,12 @@ sub extract_data {
 	    &$udevadm_trigger_block();
 
 	    my $by_id = find_stable_path ("/dev/disk/by-id", $target_hd);
-	    push @$bootdevinfo, { esp => $efidev, devname => $target_hd,
-				  osdev => $osdev, by_id => $by_id };
+	    push @$bootdevinfo, {
+		esp => $efidev,
+		devname => $target_hd,
+		osdev => $osdev,
+		by_id => $by_id,
+	    };
 
 	    my $swap_size = compute_swapsize($os_size);
 	    ($rootdev, $swapfile, $datadev) =
-- 
2.20.1





More information about the pve-devel mailing list