From: Elias Huhsovitz <e.huhsovitz@proxmox.com>
To: pve-devel@lists.proxmox.com
Cc: Elias Huhsovitz <e.huhsovitz@proxmox.com>
Subject: [PATCH container v3 2/2] restore: check systemd nesting
Date: Fri, 31 Jul 2026 13:59:43 +0200 [thread overview]
Message-ID: <20260731115943.94756-3-e.huhsovitz@proxmox.com> (raw)
In-Reply-To: <20260731115943.94756-1-e.huhsovitz@proxmox.com>
For consistency with `post_create_hook` and `post_clone_hook`, invoke
`check_systemd_nesting` at the end of `post_restore_hook`.
This provides early warnings to the user if they restore a modern
systemd-based container without the required `nesting` feature enabled,
preventing potential boot hangs and reducing troubleshooting time.
Signed-off-by: Elias Huhsovitz <e.huhsovitz@proxmox.com>
---
src/PVE/LXC/Setup.pm | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/PVE/LXC/Setup.pm b/src/PVE/LXC/Setup.pm
index f94919b..58cadba 100644
--- a/src/PVE/LXC/Setup.pm
+++ b/src/PVE/LXC/Setup.pm
@@ -335,6 +335,7 @@ sub post_restore_hook {
$self->protected_call(sub {
$self->{plugin}->post_restore_hook($self->{conf}, $root_password, $ssh_keys);
});
+ $self->check_systemd_nesting();
}
sub unified_cgroupv2_support {
--
2.47.3
prev parent reply other threads:[~2026-07-31 11:59 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-31 11:59 [PATCH container v3 0/2] fix #7164: restore: apply password and ssh keys Elias Huhsovitz
2026-07-31 11:59 ` [PATCH container v3 1/2] " Elias Huhsovitz
2026-07-31 11:59 ` Elias Huhsovitz [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=20260731115943.94756-3-e.huhsovitz@proxmox.com \
--to=e.huhsovitz@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