public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Jonas Theisen <j.theisen@proxmox.com>
To: Thomas Lamprecht <t.lamprecht@proxmox.com>, pve-devel@lists.proxmox.com
Subject: Re: [PATCH kernel-helper] kernel hooks: flag pending reboot after installing a new kernel
Date: Wed, 14 Oct 2026 12:16:18 +0200	[thread overview]
Message-ID: <7be4cd99-11ae-42a1-8c26-f8b3351a0f34@proxmox.com> (raw)
In-Reply-To: <8c5bb528-88f0-49fd-86e9-d3e4d16d16e9@proxmox.com>

On 10/14/26 11:52, Thomas Lamprecht wrote:
> Am 14.10.26 um 11:37 schrieb Jonas Theisen:
>> <snip>
>>
>> Should i also include these refs in the commit message?
> Yes, please, at least in some basic prose form describing how
> this is checked/used with [X] reference to the repo/file/docs/...
>
Ack!
>>>> +echo "*** System restart required ***" > /run/reboot-required
>>> That's always truncating any existing reboot-required file though?
>>> Or doesn't that matter because it will be either not there or contain
>>> exactly this string? In any case, needs either fixing or mentioning
>>> that its fine in the commit message and maybe even a short
>> According to my understanding of this files usage it is just checked
>> for existence and printed in the motd. The content seems to be irrelevant.
> Ack, then it's at least not that problematic, but potentially still not
> nice to blindly override it? Did you check how others - e.g. debian or
> ubuntu handles this for kernel updates? As just adding a lot of
> complexity with not much gain is not really worth it either, but maybe
> others came up with a sensible solution here already.

Ubuntu's update-notifier uses the same truncation:

data/notify-reboot-required:

26 echo "*** $(eval_gettext "System restart required") ***" > 
/var/run/reboot-required
27 echo "$DPKG_MAINTSCRIPT_PACKAGE" >> /var/run/reboot-required.pkgs

Debian does not have an equivalent natively but the package
reboot-notifier works the same way and also truncates the 
reboot-required file.




  reply	other threads:[~2026-10-14 10:16 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-13 11:46 [PATCH kernel-helper] kernel hooks: flag pending reboot after installing a new kernel Jonas Theisen
2026-10-14  8:35 ` Thomas Lamprecht
2026-10-14  9:37   ` Jonas Theisen
2026-10-14  9:52     ` Thomas Lamprecht
2026-10-14 10:16       ` Jonas Theisen [this message]
2026-10-14 10:42         ` Jonas Theisen

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=7be4cd99-11ae-42a1-8c26-f8b3351a0f34@proxmox.com \
    --to=j.theisen@proxmox.com \
    --cc=pve-devel@lists.proxmox.com \
    --cc=t.lamprecht@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