public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [PATCH container] setup: fedora: disable static units when fixing up template
@ 2026-07-08 10:10 wukaiyang2003
  2026-07-13  3:16 ` Kaiyang Wu
  0 siblings, 1 reply; 2+ messages in thread
From: wukaiyang2003 @ 2026-07-08 10:10 UTC (permalink / raw)
  To: pve-devel; +Cc: Kaiyang Wu

From: Kaiyang Wu <wukaiyang@loongfans.cn>

Fedora ships 'sys-mount-{config,debug}.mount' units as static units,
which would cause the units failing on startup.

Use the disable static units helper when fixing up templates to resolve
the issue, similar to how we process CentOS LXC templates.

Signed-off-by: Kaiyang Wu <wukaiyang@loongfans.cn>
---
 src/PVE/LXC/Setup/Fedora.pm | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/PVE/LXC/Setup/Fedora.pm b/src/PVE/LXC/Setup/Fedora.pm
index cf383e3..91880dd 100644
--- a/src/PVE/LXC/Setup/Fedora.pm
+++ b/src/PVE/LXC/Setup/Fedora.pm
@@ -27,6 +27,8 @@ sub template_fixup {
     $self->ct_unlink('/etc/systemd/system/getty@.service');
 
     $self->remove_lxc_name_from_etc_hosts();
+
+    $self->setup_systemd_disable_static_units();
 }
 
 sub setup_init {
-- 
2.52.0




^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH container] setup: fedora: disable static units when fixing up template
  2026-07-08 10:10 [PATCH container] setup: fedora: disable static units when fixing up template wukaiyang2003
@ 2026-07-13  3:16 ` Kaiyang Wu
  0 siblings, 0 replies; 2+ messages in thread
From: Kaiyang Wu @ 2026-07-13  3:16 UTC (permalink / raw)
  To: pve-devel; +Cc: Kaiyang Wu

Gentle ping, can anyone please take a look?

Kaiyang

On 2026-07-08 18:10, wukaiyang2003@gmail.com wrote:
> From: Kaiyang Wu <wukaiyang@loongfans.cn>
> 
> Fedora ships 'sys-mount-{config,debug}.mount' units as static units,
> which would cause the units failing on startup.
> 
> Use the disable static units helper when fixing up templates to resolve
> the issue, similar to how we process CentOS LXC templates.
> 
> Signed-off-by: Kaiyang Wu <wukaiyang@loongfans.cn>
> ---
>   src/PVE/LXC/Setup/Fedora.pm | 2 ++
>   1 file changed, 2 insertions(+)
> 
> diff --git a/src/PVE/LXC/Setup/Fedora.pm b/src/PVE/LXC/Setup/Fedora.pm
> index cf383e3..91880dd 100644
> --- a/src/PVE/LXC/Setup/Fedora.pm
> +++ b/src/PVE/LXC/Setup/Fedora.pm
> @@ -27,6 +27,8 @@ sub template_fixup {
>       $self->ct_unlink('/etc/systemd/system/getty@.service');
>   
>       $self->remove_lxc_name_from_etc_hosts();
> +
> +    $self->setup_systemd_disable_static_units();
>   }
>   
>   sub setup_init {




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-07-13  3:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-08 10:10 [PATCH container] setup: fedora: disable static units when fixing up template wukaiyang2003
2026-07-13  3:16 ` Kaiyang Wu

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