public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Stoiko Ivanov <s.ivanov@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [pve-devel] [PATCH installer] create lvm: improve rounding/alignment for non-pve products
Date: Mon, 28 Nov 2022 21:41:10 +0100	[thread overview]
Message-ID: <20221128204110.390707-1-s.ivanov@proxmox.com> (raw)

This commit follows
1a5fa7b0936381314f613e525255078093f7f258

for PMG and PBS installations.
without it installation fails due to one missing extent when creating
the root LV.

minimally tested on a VM of mine

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
---
 proxinstall | 1 +
 1 file changed, 1 insertion(+)

diff --git a/proxinstall b/proxinstall
index c07e6cd..396e344 100755
--- a/proxinstall
+++ b/proxinstall
@@ -1155,6 +1155,7 @@ sub create_lvm_volumes {
     } else {
 	my $minfree = defined($config_options->{minfree}) ? $config_options->{minfree}*1024*1024 : $space;
 	$rootsize = $os_size - $minfree - $swap_size; # in KB
+	$rootsize &= ~0xFFF; # align down to 4 MB boundaries
     }
 
     if ($swap_size) {
-- 
2.30.2





             reply	other threads:[~2022-11-28 20:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-28 20:41 Stoiko Ivanov [this message]
2022-11-29  7:04 ` [pve-devel] applied: " Thomas Lamprecht

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20221128204110.390707-1-s.ivanov@proxmox.com \
    --to=s.ivanov@proxmox.com \
    --cc=pve-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal