Devuan bug report logs - #583
lxc-templates: Devuan template for LXC

Package: lxc-templates; Reported by: Ryutaroh Matsumoto <[email protected]>; Keywords: ceres chimaera patch; dated Sun, 30 May 2021 10:18:02 UTC; Maintainer for lxc-templates is (unknown).

Message received at [email protected]:


Received: (at 583) by bugs.devuan.org; 1 Jun 2021 08:30:03 +0000
Return-Path: <[email protected]>
Delivered-To: [email protected]
Received: from tupac3.dyne.org [195.169.149.119]
	by doc.devuan.org with IMAP (fetchmail-6.4.0.beta4)
	for <debbugs@localhost> (single-drop); Tue, 01 Jun 2021 08:30:03 +0000 (UTC)
Received: from mx.hindley.org.uk (193-36-131-86.cfwn.uk [193.36.131.86])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by vm6.ganeti.dyne.org (Postfix) with ESMTPS id 46243F60B78
	for <[email protected]>; Tue,  1 Jun 2021 10:25:56 +0200 (CEST)
Received: from apollo.hindleynet ([192.168.1.3] helo=hindley.org.uk)
	by mx.hindley.org.uk with smtp (Exim 4.84_2)
	(envelope-from <[email protected]>)
	id 1lnzie-0000TK-Pl; Tue, 01 Jun 2021 09:25:49 +0100
Received: (nullmailer pid 30670 invoked by uid 1000);
	Tue, 01 Jun 2021 08:25:47 -0000
Date: Tue, 1 Jun 2021 09:25:47 +0100
From: Mark Hindley <[email protected]>
To: Ryutaroh Matsumoto <[email protected]>
Cc: [email protected]
Subject: Re: bug#583: lxc-templates: Devuan template for LXC
Message-ID: <[email protected]>
References: <[email protected]>
 <[email protected]>
 <[email protected]>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <[email protected]>
X-Spam-Status: No, score=0.4 required=5.0 tests=RDNS_DYNAMIC,SPF_PASS
	autolearn=disabled version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on tupac3.dyne.org

Ryutaroh,

Thanks for adding more background to this.

On Mon, May 31, 2021 at 09:06:20AM +0900, Ryutaroh Matsumoto wrote:
> > Thanks for this. However Devuan doesn't fork any of the lxc pacakges and uses
> > Debian's pacakges directly without recompilation. This is probably best included
> > by submitting upstream, either to Debian or perhaps better
> > https://linuxcontainers.org/.
> 
> I tend to disagree. Because
> 
> * linuxcontainers.org dropped support of templates other then "download".
>    They actively maintain only the "download" template.
> * Now each distro. seems having responsibility to maintain its own version of
>    template, if that distro. is not satisfied with "download" template.
> * Debian package maintainers maintains the Debian template, see
> https://metadata.ftp-master.debian.org/changelogs//main/l/lxc-templates/lxc-templates_3.0.4-5_changelog

Looking at
https://salsa.debian.org/lxc-team/lxc-templates/-/tree/debian/unstable/templates,
Debian also has support for many other distros. Asking them to include Devuan
would seem to get the best coverage. 

Devuan doesn't fork lxc-templates. Even if we were to do so, only users of the
forked package would benefit from your suggested updates. If it is included in
Debian, then it will also benefit Debian itself and all derivatives.

Mark

Acknowledgement sent to Mark Hindley <[email protected]>:
Extra info received and forwarded to list. Copy sent to [email protected]. Full text available.
Information forwarded to [email protected], [email protected]:
bug#583; Package lxc-templates. Full text available.
Added indication that bug 583 blocks 450 Request was from Ryutaroh Matsumoto <[email protected]> to [email protected]. Full text available.

Message received at [email protected]:


Received: (at 583) by bugs.devuan.org; 31 May 2021 00:10:02 +0000
Return-Path: <[email protected]>
Delivered-To: [email protected]
Received: from tupac3.dyne.org [195.169.149.119]
	by doc.devuan.org with IMAP (fetchmail-6.4.0.beta4)
	for <debbugs@localhost> (single-drop); Mon, 31 May 2021 00:10:02 +0000 (UTC)
Received: from mail003.nap.gsic.titech.ac.jp (mail003.nap.gsic.titech.ac.jp [131.112.13.103])
	by vm6.ganeti.dyne.org (Postfix) with SMTP id 413BDF6087F
	for <[email protected]>; Mon, 31 May 2021 02:06:26 +0200 (CEST)
Received: from 172.22.40.205
	by mail003.nap.gsic.titech.ac.jp with Mail2000 ESMTP Server V7.00(2586:0:AUTH_RELAY)
	(envelope-from <[email protected]>); Mon, 31 May 2021 09:06:21 +0900 (JST)
Received: from mail004.nap.gsic.titech.ac.jp (mail004.nap.gsic.titech.ac.jp [131.112.13.104])
	by drweb08.nap.gsic.titech.ac.jp (Postfix) with SMTP id 0616A2FAA;
	Mon, 31 May 2021 09:06:21 +0900 (JST)
Received: from 153.240.174.134
	by mail004.nap.gsic.titech.ac.jp with Mail2000 ESMTPA Server V7.00(2688:0:AUTH_LOGIN)
	(envelope-from <[email protected]>); Mon, 31 May 2021 09:06:20 +0900 (JST)
Date: Mon, 31 May 2021 09:06:20 +0900 (JST)
Message-Id: <[email protected]>
To: [email protected]
Cc: [email protected]
Subject: Re: bug#583: lxc-templates: Devuan template for LXC
From: Ryutaroh Matsumoto <[email protected]>
In-Reply-To: <[email protected]>
References: <[email protected]>
	<[email protected]>
Mime-Version: 1.0
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Spam-Status: No, score=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED
	autolearn=disabled version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on tupac3.dyne.org

Hi Mark,

> Thanks for this. However Devuan doesn't fork any of the lxc pacakges and uses
> Debian's pacakges directly without recompilation. This is probably best included
> by submitting upstream, either to Debian or perhaps better
> https://linuxcontainers.org/.

I tend to disagree. Because

* linuxcontainers.org dropped support of templates other then "download".
   They actively maintain only the "download" template.
* Now each distro. seems having responsibility to maintain its own version of
   template, if that distro. is not satisfied with "download" template.
* Debian package maintainers maintains the Debian template, see
https://metadata.ftp-master.debian.org/changelogs//main/l/lxc-templates/lxc-templates_3.0.4-5_changelog
* "download" template only provides the limited choices of Devuan as
# lxc-create -n test -t download -- -d devuan
Setting up the GPG keyring
Downloading the image index

---
DIST	RELEASE	ARCH	VARIANT	BUILD
---
devuan	ascii	amd64	default	20210530_11:50
devuan	ascii	arm64	default	20210530_12:22
devuan	ascii	armel	default	20210530_12:07
devuan	ascii	armhf	default	20210530_12:22
devuan	ascii	i386	default	20210530_11:50
devuan	ascii	ppc64el	default	20210530_11:50
devuan	beowulf	amd64	default	20210530_11:50
devuan	beowulf	arm64	default	20210530_12:07
devuan	beowulf	armel	default	20210530_12:22
devuan	beowulf	armhf	default	20210530_11:50
devuan	beowulf	i386	default	20210530_11:50
devuan	beowulf	ppc64el	default	20210530_11:50
---

By the above observation, in my view,

(1) Attaching "upstream" to this issue is inappropriate. This is not an upstream issue.
(2) The question is whether or not Devuan is satisfied with "download"
template as above. If yes, attaching "wontfix" tag or closure of this issue is
appropriate.

Best regards, Ryutaroh

Acknowledgement sent to Ryutaroh Matsumoto <[email protected]>:
Extra info received and forwarded to list. Copy sent to [email protected]. Full text available.
Information forwarded to [email protected], [email protected]:
bug#583; Package lxc-templates. Full text available.

Message received at [email protected]:


Received: (at 583) by bugs.devuan.org; 30 May 2021 12:00:02 +0000
Return-Path: <[email protected]>
Delivered-To: [email protected]
Received: from tupac3.dyne.org [195.169.149.119]
	by doc.devuan.org with IMAP (fetchmail-6.4.0.beta4)
	for <debbugs@localhost> (single-drop); Sun, 30 May 2021 12:00:02 +0000 (UTC)
Received: from mx.hindley.org.uk (193-36-131-86.cfwn.uk [193.36.131.86])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by vm6.ganeti.dyne.org (Postfix) with ESMTPS id C3A3AF6084B
	for <[email protected]>; Sun, 30 May 2021 13:51:10 +0200 (CEST)
Received: from apollo.hindleynet ([192.168.1.3] helo=hindley.org.uk)
	by mx.hindley.org.uk with smtp (Exim 4.84_2)
	(envelope-from <[email protected]>)
	id 1lnJy8-0006PV-96; Sun, 30 May 2021 12:51:00 +0100
Received: (nullmailer pid 3998 invoked by uid 1000);
	Sun, 30 May 2021 11:49:59 -0000
Date: Sun, 30 May 2021 12:49:59 +0100
From: Mark Hindley <[email protected]>
To: Ryutaroh Matsumoto <[email protected]>, [email protected]
Subject: Re: bug#583: lxc-templates: Devuan template for LXC
Message-ID: <[email protected]>
References: <[email protected]>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <[email protected]>
X-Debbugs-No-Ack: No Thanks
X-Spam-Status: No, score=0.4 required=5.0 tests=RDNS_DYNAMIC,SPF_PASS
	autolearn=disabled version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on tupac3.dyne.org

Control: tags upstream

Ryutaroh,

On Sun, May 30, 2021 at 07:07:51PM +0900, Ryutaroh Matsumoto wrote:
> Package: lxc-templates
> Version: 3.0.4-5
> Severity: normal
> Tags: patch chimaera ceres
> 
> Dear Maintainer,
> 
> There is no official way to build an LXC container running a Devuan host.
> I modified /usr/share/lxc/templates/lxc-debian so that it can install Devuan
> as attached diff.
> I tested the modified template by the following two cases
> on Devuan Chimaera amd64 host:
> 
> lxc-create -n devuan-beowulf -t devuan -- -F --enable-non-free -r beowulf
> lxc-create -n beowulf-arm64 -t devuan -- -F --enable-non-free -r beowulf -a arm64

Thanks for this. However Devuan doesn't fork any of the lxc pacakges and uses
Debian's pacakges directly without recompilation. This is probably best included
by submitting upstream, either to Debian or perhaps better
https://linuxcontainers.org/.

Are you able to do one of those?

Thanks

Mark

Information forwarded to [email protected], [email protected]:
bug#583; Package lxc-templates. Full text available.

Message received at [email protected]:


Received: (at submit) by bugs.devuan.org; 30 May 2021 10:10:02 +0000
Return-Path: <[email protected]>
Delivered-To: [email protected]
Received: from tupac3.dyne.org [195.169.149.119]
	by doc.devuan.org with IMAP (fetchmail-6.4.0.beta4)
	for <debbugs@localhost> (single-drop); Sun, 30 May 2021 10:10:02 +0000 (UTC)
Received: from mail004.nap.gsic.titech.ac.jp (mail004.nap.gsic.titech.ac.jp [131.112.13.104])
	by vm6.ganeti.dyne.org (Postfix) with SMTP id 93674F60890
	for <[email protected]>; Sun, 30 May 2021 12:08:49 +0200 (CEST)
Received: from 172.22.40.204
	by mail004.nap.gsic.titech.ac.jp with Mail2000 ESMTP Server V7.00(2681:0:AUTH_RELAY)
	(envelope-from <[email protected]>); Sun, 30 May 2021 19:08:46 +0900 (JST)
Received: from mail004.nap.gsic.titech.ac.jp (mail004.nap.gsic.titech.ac.jp [131.112.13.104])
	by drweb07.nap.gsic.titech.ac.jp (Postfix) with SMTP id E400BEF
	for <[email protected]>; Sun, 30 May 2021 19:08:46 +0900 (JST)
Received: from 153.240.174.134
	by mail004.nap.gsic.titech.ac.jp with Mail2000 ESMTPA Server V7.00(2681:0:AUTH_LOGIN)
	(envelope-from <[email protected]>); Sun, 30 May 2021 19:08:45 +0900 (JST)
Date: Sun, 30 May 2021 19:07:51 +0900 (JST)
Message-Id: <[email protected]>
To: Devuan Bug Tracking System <[email protected]>
Subject: lxc-templates: Devuan template for LXC
From: Ryutaroh Matsumoto <[email protected]>
Mime-Version: 1.0
Content-Type: Multipart/Mixed;
 boundary="--Next_Part(Sun_May_30_19_07_51_2021_516)--"
Content-Transfer-Encoding: 7bit
X-Spam-Status: No, score=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED
	autolearn=disabled version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on tupac3.dyne.org

----Next_Part(Sun_May_30_19_07_51_2021_516)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Package: lxc-templates
Version: 3.0.4-5
Severity: normal
Tags: patch chimaera ceres

Dear Maintainer,

There is no official way to build an LXC container running a Devuan host.
I modified /usr/share/lxc/templates/lxc-debian so that it can install Devuan
as attached diff.
I tested the modified template by the following two cases
on Devuan Chimaera amd64 host:

lxc-create -n devuan-beowulf -t devuan -- -F --enable-non-free -r beowulf
lxc-create -n beowulf-arm64 -t devuan -- -F --enable-non-free -r beowulf -a arm64

Best regards, Ryutaroh Matsumoto


-- System Information:
Distributor ID:	Devuan
Description:	Devuan GNU/Linux 4 (chimaera)
Release:	4
Codename:	n/a
Architecture: x86_64

Kernel: Linux 5.10.0-6-amd64 (SMP w/2 CPU threads)
Kernel taint flags: TAINT_FIRMWARE_WORKAROUND
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)
LSM: AppArmor: enabled

Versions of packages lxc-templates depends on:
ii  lxc  1:4.0.6-1

Versions of packages lxc-templates recommends:
ii  bridge-utils       1.7-1
ii  busybox-static     1:1.30.1-6+b1
ii  cloud-image-utils  0.31-2
ii  debootstrap        1.0.123+devuan3
ii  distro-info        1.0
ii  mmdebstrap         0.7.5-2.2
ii  openssl            1.1.1k-1
ii  rsync              3.2.3-4
ii  uuid-runtime       2.36.1-7+devuan1
ii  xz-utils           5.2.5-2

Versions of packages lxc-templates suggests:
ii  qemu-user-static  1:5.2+dfsg-10

-- no debconf information

----Next_Part(Sun_May_30_19_07_51_2021_516)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="lxc-diff.txt"

--- usr/share/lxc/templates/lxc-debian	2021-03-12 19:53:24.000000000 +0900
+++ usr/share/lxc/templates/lxc-devuan	2021-05-30 17:20:09.881654064 +0900
@@ -37,8 +37,8 @@
 export PATH=$PATH:/usr/sbin:/usr/bin:/sbin:/bin
 export GREP_OPTIONS=""
 
-MIRROR=${MIRROR:-http://deb.debian.org/debian}
-SECURITY_MIRROR=${SECURITY_MIRROR:-http://security.debian.org/debian-security}
+MIRROR=${MIRROR:-http://deb.devuan.org/merged}
+SECURITY_MIRROR=${SECURITY_MIRROR:-http://deb.devuan.org/merged}
 LOCALSTATEDIR="/var"
 LXC_TEMPLATE_CONFIG="/usr/share/lxc/config"
 # Allows the lxc-cache directory to be set by environment variable
@@ -98,6 +98,7 @@
 $(for tty in $(seq 1 "$num_tty"); do echo "c${tty}:12345:respawn:/sbin/getty 38400 tty${tty} linux" ; done;)
 p6::ctrlaltdel:/sbin/init 6
 p0::powerfail:/sbin/init 0
+pf::powerwait:/sbin/shutdown -h -P now
 EOF
 
     # symlink mtab
@@ -200,6 +201,9 @@
     local release="${1}"; shift
     local -i release_code=0
 
+    echo "${release}-updates"
+    return 0
+
     # oldoldstable is too old, let's ignore that case.
     if [[ "${release}" == "oldoldstable" ]]; then
         echo "${release}/updates"
@@ -386,7 +390,7 @@
     mkdir -p "$cache"
 
     # If debian-archive-keyring isn't installed, fetch GPG keys directly
-    releasekeyring=/usr/share/keyrings/debian-archive-keyring.gpg
+    releasekeyring=/usr/share/keyrings/devuan-archive-keyring.gpg
     if [ ! -f $releasekeyring ]; then
         releasekeyring="$cache/archive-key.gpg"
         case $release in
@@ -854,7 +858,7 @@
     exit 1
 fi
 
-configure_debian_systemd "$path" "$rootfs" "$config" $num_tty
+#configure_debian_systemd "$path" "$rootfs" "$config" $num_tty
 
 post_process "${rootfs}" "${release}" ${arch} ${hostarch} "${interpreter}" "${packages}"
 

----Next_Part(Sun_May_30_19_07_51_2021_516)----

Acknowledgement sent to Ryutaroh Matsumoto <[email protected]>:
New bug report received and forwarded. Copy sent to [email protected]. Full text available.
Report forwarded to [email protected], [email protected]:
bug#583; Package lxc-templates. Full text available.

Devuan BTS -- Powered by Debian bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.

Devuan Bugs Owner <[email protected]>.
Last modified: Sun, 1 Dec 2024 00:39:02 UTC