all lists on lists.proxmox.com
 help / color / mirror / Atom feed
From: Stoiko Ivanov <s.ivanov@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [pve-devel] superseded: [PATCH manager] 8 to 9 checks: do not ask bootctl if systemd-boot is used.
Date: Wed, 6 Aug 2025 13:03:47 +0200	[thread overview]
Message-ID: <20250806130347.67709afa@rosa.proxmox.com> (raw)
In-Reply-To: <20250806105148.2104807-1-s.ivanov@proxmox.com>

superseded by:
https://lore.proxmox.com/pve-devel/20250806110251.2117322-1-s.ivanov@proxmox.com/T/#u

On Wed, 06 Aug 2025 10:51:59 +0000
Stoiko Ivanov <s.ivanov@proxmox.com> wrote:

> The current logic of deciding if systemd-boot was manually setup by
> the user (without proxmox-boot-tool), by checking
> `bootctl is-installed` yields a false-positive after upgrading:
> * systems which have the package installed (e.g. from our isos after
>   8.0), but do not use proxmox-boot-tool (LVM installs) will get
>   systemd-boot installed to /boot/efi upon upgrade
> * after upgrading the check says that it's been explicitly setup.
> 
> Rather warn if the package is installed (unless proxmox-boot-tool is
> used and the upgrade is still not done) in any case - as the number
> of systems which have it setup manually are probably far lower than
> those that upgrade without explicitly checking pve8to9.
> 
> Reported-by: Daniel Herzig <d.herzig@proxmox.com>
> Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
> ---
>  PVE/CLI/pve8to9.pm | 17 +++++------------
>  1 file changed, 5 insertions(+), 12 deletions(-)
> 
> diff --git a/PVE/CLI/pve8to9.pm b/PVE/CLI/pve8to9.pm
> index 994189f1..f6600d98 100644
> --- a/PVE/CLI/pve8to9.pm
> +++ b/PVE/CLI/pve8to9.pm
> @@ -1624,18 +1624,11 @@ sub check_bootloader {
>          }
>      } else {
>          if (-f "/usr/share/doc/systemd-boot/changelog.Debian.gz") {
> -            my $exit_code = eval {
> -                run_command(['bootctl', 'is-installed', '--quiet', '--graceful'], noerr => 1);
> -            };
> -            if ($exit_code != 0) {
> -                log_warn(
> -                    "systemd-boot meta-package installed but the system does not seem to use it"
> -                        . " for booting. This can cause problems on upgrades of other boot-related packages."
> -                        . " Consider removing 'systemd-boot'");
> -            } else {
> -                log_info("systemd-boot used as bootloader and fitting meta-package installed.");
> -                return;
> -            }
> +            log_warn(
> +                "systemd-boot meta-package installed. This can cause problems on upgrades of other"
> +                ." boot-related packages. Unless you manually setup the system to use"
> +                ." systemd-boot remove 'systemd-boot'");
> +            return;
>          }
>          if (!-f "/usr/share/doc/grub-efi-amd64/changelog.Debian.gz") {
>              log_warn("System booted in uefi mode but grub-efi-amd64 meta-package not installed,"



_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel


      reply	other threads:[~2025-08-06 11:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-06 10:51 [pve-devel] " Stoiko Ivanov
2025-08-06 11:03 ` Stoiko Ivanov [this message]

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=20250806130347.67709afa@rosa.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal