[pve-devel] applied: [PATCH container] add support for openSUSE Leap 15.0
Thomas Lamprecht
t.lamprecht at proxmox.com
Wed Aug 22 11:58:42 CEST 2018
On 8/3/18 3:07 PM, Thomas Lamprecht wrote:
> Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
> ---
>
> NOTE: i have some issues with lxc 3.0 as the tty devices do not get created
> (see #1854), but with LXC 2.1 this works as expected, and as the issue with 3.0
> is also seen with already added opensuse 42.3 or archlinux it's rather not a
> problem of an opensuse 15.0 template.
>
> src/PVE/LXC/Setup.pm | 1 +
> src/PVE/LXC/Setup/SUSE.pm | 3 +++
> 2 files changed, 4 insertions(+)
>
> diff --git a/src/PVE/LXC/Setup.pm b/src/PVE/LXC/Setup.pm
> index ea0d415..1b89f28 100644
> --- a/src/PVE/LXC/Setup.pm
> +++ b/src/PVE/LXC/Setup.pm
> @@ -31,6 +31,7 @@ my $plugins = {
> my $plugin_alias = {
> arch => 'archlinux',
> sles => 'opensuse',
> + 'opensuse-leap' => 'opensuse',
> };
>
> my $autodetect_type = sub {
> diff --git a/src/PVE/LXC/Setup/SUSE.pm b/src/PVE/LXC/Setup/SUSE.pm
> index 6e83c36..e5ee752 100644
> --- a/src/PVE/LXC/Setup/SUSE.pm
> +++ b/src/PVE/LXC/Setup/SUSE.pm
> @@ -25,6 +25,9 @@ sub new {
> } elsif ($ostype eq 'sles' && $major == 12) {
> # OK - shares base with LEAP (42)
> $setup_ct_getty_service = 1;
> + } elsif ($major == 15) {
> + # OK for SLES and openSUSE Leap, see: https://lwn.net/Articles/720924/
> + $setup_ct_getty_service = 1;
> } else {
> die "unsupported suse release '$version'\n";
> }
>
applied
More information about the pve-devel
mailing list