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

version graph

Package: lxc-templates; Maintainer for lxc-templates is (unknown); Source for lxc-templates is src:lxc-templates.

Reported by: Ryutaroh Matsumoto <ryutaroh@ict.e.titech.ac.jp>

Date: Sun, 30 May 2021 10:18:02 UTC

Severity: normal

Tags: ceres, chimaera, patch

Found in version 3.0.4-5

Blocking fix for 450: autopkgtest: cannot build a testbed for LXC

Full log


🔗 View this message in rfc822 format

X-Loop: owner@bugs.devuan.org
Subject: bug#583: lxc-templates: Devuan template for LXC
Reply-To: Ryutaroh Matsumoto <ryutaroh@ict.e.titech.ac.jp>, 583@bugs.devuan.org
Resent-From: Ryutaroh Matsumoto <ryutaroh@ict.e.titech.ac.jp>
Resent-To: devuan-bugs@lists.dyne.org
Resent-CC: devuan-dev@lists.dyne.org
X-Loop: owner@bugs.devuan.org
Resent-Date: Sun, 30 May 2021 10:18:02 +0000
Resent-Message-ID: <handler.583.B.1622369402779@bugs.devuan.org>
Resent-Sender: owner@bugs.devuan.org
X-Devuan-PR-Message: report 583
X-Devuan-PR-Package: lxc-templates
X-Devuan-PR-Keywords: ceres chimaera patch
Received: via spool by submit@bugs.devuan.org id=B.1622369402779
          (code B); Sun, 30 May 2021 10:18:02 +0000
Received: (at submit) by bugs.devuan.org; 30 May 2021 10:10:02 +0000
Delivered-To: devuanbugs@dyne.org
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 <submit@bugs.devuan.org>; 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 <matsumoto.r.aa@m.titech.ac.jp>); 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 <submit@bugs.devuan.org>; 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 <matsumoto.r.aa@m.titech.ac.jp>); Sun, 30 May 2021 19:08:45 +0900 (JST)
Date: Sun, 30 May 2021 19:07:51 +0900 (JST)
Message-Id: <20210530.190751.556451053364649071.ryutaroh@ict.e.titech.ac.jp>
To: Devuan Bug Tracking System <submit@bugs.devuan.org>
From: Ryutaroh Matsumoto <ryutaroh@ict.e.titech.ac.jp>
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
[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}"
 

Send a report that this bug log contains spam.


Devuan BTS -- Powered by Debian bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.

Devuan Bugs Owner <owner@bugs.devuan.org>.
Last modified: Sun Nov 24 02:00:50 2024;