Devuan bug report logs -
#583
lxc-templates: Devuan template for LXC
Reply or subscribe to this bug.
Toggle useless messages
Report forwarded
to devuan-bugs@lists.dyne.org, devuan-dev@lists.dyne.org
:
bug#583
; Package lxc-templates
.
(Sun, 30 May 2021 10:18:02 GMT) (full text, mbox, link).
Acknowledgement sent
to Ryutaroh Matsumoto <ryutaroh@ict.e.titech.ac.jp>
:
New bug report received and forwarded. Copy sent to devuan-dev@lists.dyne.org
.
(Sun, 30 May 2021 10:18:05 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.devuan.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
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
[lxc-diff.txt (text/plain, inline)]
--- 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}"
Information forwarded
to devuan-bugs@lists.dyne.org, devuan-dev@lists.dyne.org
:
bug#583
; Package lxc-templates
.
(Sun, 30 May 2021 12:03:01 GMT) (full text, mbox, link).
Message #8 received at 583@bugs.devuan.org (full text, mbox, reply):
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 devuan-bugs@lists.dyne.org, devuan-dev@lists.dyne.org
:
bug#583
; Package lxc-templates
.
(Mon, 31 May 2021 00:18:01 GMT) (full text, mbox, link).
Acknowledgement sent
to Ryutaroh Matsumoto <ryutaroh@ict.e.titech.ac.jp>
:
Extra info received and forwarded to list. Copy sent to devuan-dev@lists.dyne.org
.
(Mon, 31 May 2021 00:18:05 GMT) (full text, mbox, link).
Message #13 received at 583@bugs.devuan.org (full text, mbox, reply):
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
Added indication that bug 583 blocks 450
Request was from Ryutaroh Matsumoto <ryutaroh@ict.e.titech.ac.jp>
to control@bugs.devuan.org
.
(Tue, 01 Jun 2021 00:18:01 GMT) (full text, mbox, link).
Information forwarded
to devuan-bugs@lists.dyne.org, devuan-dev@lists.dyne.org
:
bug#583
; Package lxc-templates
.
(Tue, 01 Jun 2021 08:33:01 GMT) (full text, mbox, link).
Acknowledgement sent
to Mark Hindley <mark@hindley.org.uk>
:
Extra info received and forwarded to list. Copy sent to devuan-dev@lists.dyne.org
.
(Tue, 01 Jun 2021 08:33:04 GMT) (full text, mbox, link).
Message #20 received at 583@bugs.devuan.org (full text, mbox, reply):
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
Send a report that this bug log contains spam.