all lists on lists.proxmox.com
 help / color / mirror / Atom feed
From: Guillaume via pve-devel <pve-devel@lists.proxmox.com>
To: pve-devel@lists.proxmox.com
Cc: Guillaume <09couplet.bitmap@icloud.com>
Subject: [pve-devel] [PATCH container v2 0/4] fix #6719: add support for centos 10
Date: Mon,  1 Sep 2025 18:20:32 +0200	[thread overview]
Message-ID: <mailman.104.1756744231.418.pve-devel@lists.proxmox.com> (raw)

[-- Attachment #1: Type: message/rfc822, Size: 8356 bytes --]

From: Guillaume <09couplet.bitmap@icloud.com>
To: pve-devel@lists.proxmox.com
Cc: Guillaume <09couplet.bitmap@icloud.com>
Subject: [PATCH container v2 0/4] fix #6719: add support for centos 10
Date: Mon,  1 Sep 2025 18:20:32 +0200
Message-ID: <20250901162036.2651-1-09couplet.bitmap@icloud.com>

In order to use CentOS 10, NetworkManager support had
to be added in place of the network scripts that were removed in
this major release.

AlmaLinux, for example, chose to name its libsystemd-shared file with
the major and minor versions separated by an underscore, which was
not taken into account when determining the version of systemd.

Guillaume (4):
  setup: add underscore in regex to parse systemd version
  setup: add support of el10 and implementing NetworkManager instead fo
    network-scripts
  tests: add tests for centos 10
  setup: disabled ipv4 or ipv6 if not used in NetworkManager files

 src/PVE/LXC/Setup/Base.pm                     |   2 +-
 src/PVE/LXC/Setup/CentOS.pm                   | 112 ++++++++++++++++--
 src/test/run_setup_tests.pl                   |   4 +
 src/test/test-centos10-001/config             |   4 +
 .../system-connections/eth0.nmconnection.exp  |  11 ++
 src/test/test-centos10-001/etc/hostname.exp   |   1 +
 src/test/test-centos10-001/etc/hosts.exp      |   5 +
 .../test-centos10-001/etc/locale.conf.exp     |   1 +
 .../test-centos10-001/etc/rc.d/rc.sysinit     |   6 +
 .../test-centos10-001/etc/rc.d/rc.sysinit.exp |   6 +
 src/test/test-centos10-001/etc/redhat-release |   2 +
 src/test/test-centos10-001/etc/securetty      |  23 ++++
 src/test/test-centos10-001/etc/securetty.exp  |  28 +++++
 .../systemd/system-preset/00-pve.preset.exp   |   5 +
 .../root/.ssh/authorized_keys.exp             |   3 +
 src/test/test-centos10-002/config             |   6 +
 .../system-connections/eth0.nmconnection.exp  |  14 +++
 .../system-connections/eth1.nmconnection.exp  |  11 ++
 .../system-connections/eth2.nmconnection.exp  |  12 ++
 src/test/test-centos10-002/etc/hostname.exp   |   1 +
 src/test/test-centos10-002/etc/hosts.exp      |   5 +
 .../test-centos10-002/etc/locale.conf.exp     |   1 +
 .../test-centos10-002/etc/rc.d/rc.sysinit     |   6 +
 .../test-centos10-002/etc/rc.d/rc.sysinit.exp |   6 +
 src/test/test-centos10-002/etc/redhat-release |   2 +
 src/test/test-centos10-002/etc/securetty      |  23 ++++
 src/test/test-centos10-002/etc/securetty.exp  |  28 +++++
 .../systemd/system-preset/00-pve.preset.exp   |   5 +
 .../root/.ssh/authorized_keys.exp             |   3 +
 29 files changed, 328 insertions(+), 8 deletions(-)
 create mode 100644 src/test/test-centos10-001/config
 create mode 100644 src/test/test-centos10-001/etc/NetworkManager/system-connections/eth0.nmconnection.exp
 create mode 100644 src/test/test-centos10-001/etc/hostname.exp
 create mode 100644 src/test/test-centos10-001/etc/hosts.exp
 create mode 100644 src/test/test-centos10-001/etc/locale.conf.exp
 create mode 100644 src/test/test-centos10-001/etc/rc.d/rc.sysinit
 create mode 100644 src/test/test-centos10-001/etc/rc.d/rc.sysinit.exp
 create mode 100644 src/test/test-centos10-001/etc/redhat-release
 create mode 100644 src/test/test-centos10-001/etc/securetty
 create mode 100644 src/test/test-centos10-001/etc/securetty.exp
 create mode 100644 src/test/test-centos10-001/etc/systemd/system-preset/00-pve.preset.exp
 create mode 100644 src/test/test-centos10-001/root/.ssh/authorized_keys.exp
 create mode 100644 src/test/test-centos10-002/config
 create mode 100644 src/test/test-centos10-002/etc/NetworkManager/system-connections/eth0.nmconnection.exp
 create mode 100644 src/test/test-centos10-002/etc/NetworkManager/system-connections/eth1.nmconnection.exp
 create mode 100644 src/test/test-centos10-002/etc/NetworkManager/system-connections/eth2.nmconnection.exp
 create mode 100644 src/test/test-centos10-002/etc/hostname.exp
 create mode 100644 src/test/test-centos10-002/etc/hosts.exp
 create mode 100644 src/test/test-centos10-002/etc/locale.conf.exp
 create mode 100644 src/test/test-centos10-002/etc/rc.d/rc.sysinit
 create mode 100644 src/test/test-centos10-002/etc/rc.d/rc.sysinit.exp
 create mode 100644 src/test/test-centos10-002/etc/redhat-release
 create mode 100644 src/test/test-centos10-002/etc/securetty
 create mode 100644 src/test/test-centos10-002/etc/securetty.exp
 create mode 100644 src/test/test-centos10-002/etc/systemd/system-preset/00-pve.preset.exp
 create mode 100644 src/test/test-centos10-002/root/.ssh/authorized_keys.exp

-- 
2.47.2



[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

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

                 reply	other threads:[~2025-09-01 16:30 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=mailman.104.1756744231.418.pve-devel@lists.proxmox.com \
    --to=pve-devel@lists.proxmox.com \
    --cc=09couplet.bitmap@icloud.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