[pve-devel] [PATCH installer v2 3/6] linewrap bootdevinfo generation
Stoiko Ivanov
s.ivanov at proxmox.com
Wed Nov 27 17:06:56 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 fec9772..d81d71d 100755
--- a/proxinstall
+++ b/proxinstall
@@ -1294,8 +1294,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;
}
@@ -1355,8 +1359,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