debootstrap: lack of devuan support
Thedebootstrap
package doesn't have a template for Devuan.
I'm testing with porting the/usr/share/lxc/templates/lxc-debian
to make it bootstrap devuan instead. The template retrieves the release information from:$MIRROR/dists/stable/Release
.
There are two problems with this method:
-
$MIRROR should point to
http://packages.devuan.org/devuan
to hit the right Release file, so it doesn't necessarily work with all "$MIRROR". -
The
Codename
field is used to retrieve the release name, but in our Release file,Codename: None
.
Therefore this issue is to:
-
correct
Release
file to include the release codename -
correct
lxc
to add anlxc-devuan
template (moved to devuan-packages/lxc#1 )
RESOLUTION
The first point was a mistake due to using a wrong mirror fordebootstrap
. The right mirror ishttp://auto.mirror.devuan.org/merged
.
The second point moved to devuan-packages/lxc#1
-
@hellekin : can you please provide more context??
-
The release "Codename" in http://packages.devuan.org/devuan/dists/stable/Release is set to "jessie"
-
Our debootstrap package does set $MIRROR to http://packages.devuan.org/devuan
-
-
- No it's not:
wget -q -O- http://packages.devuan.org/devuan/dists/stable/Release | head Origin: Devuan Label: 1.0 Suite: jessie Version: 1.0.0 Codename: None Date: Mon, 07 Mar 2016 17:03:39 UTC Valid-Until: Mon, 14 Mar 2016 17:03:39 UTC Architectures: alpha amd64 arm64 armel armhf hppa i386 ia64 mips mipsel powerpc ppc64el s390x sparc Components: main contrib non-free MD5Sum:
Codename is set to None.
-
Matching on
Suite
instead ofCodename
I get:
lxc-create -n discourse -t devuan debootstrap is /usr/sbin/debootstrap Checking cache download in /var/cache/lxc/devuan/rootfs-jessie-amd64 ... Downloading devuan minimal ... I: Retrieving Release I: Retrieving Release.gpg I: Checking Release signature I: Valid Release signature (key id 72E3CB773315DFA2E464743D94532124541922FB) I: Retrieving Packages I: Validating Packages I: Resolving dependencies of required packages... I: Resolving dependencies of base packages... I: Found additional required dependencies: libfdisk1 sysvinit-core I: Checking component main on http://packages.devuan.org/devuan... E: Couldn't find these debs: apt ifupdown dialog openssh-server netbase lsof libui-dialog-perl isc-dhcp-client locales iproute zsh net-tools Failed to download the rootfs, aborting. Failed to download 'devuan base' failed to install devuan lxc_container: container creation template for discourse failed lxc_container: Error creating container discourse
P.S.: running
debootstrap 1.0.75-1+devuan1
Edited by hellekin -
Thats because your using the /devuan repo and not /merged which is correct!
wget -q -O- http://packages.devuan.org/merged/dists/stable/Release | head Origin: Devuan Label: Devuan Suite: stable Version: 1.0 Codename: jessie Date: Mon, 07 Mar 2016 08:01:19 UTC Valid-Until: Mon, 14 Mar 2016 08:01:19 UTC Architectures: alpha amd64 arm64 armel armhf hppa i386 ia64 mips mipsel powerpc ppc64el s390x sparc Components: main contrib non-free Description: Devuan 1.0 Jessie (unreleased yet)
Edited by Daniel Reurich -
OK works with
http://packages.devuan.org/merged
./devuan
only contains information about Devuan-specific packages. The full repository is accessible via/merged
.Now
lxc
still misses a devuan template. Do we have anlxc
project somewhere in the gitlab? -
I'm tempted to close this issue unless there's need for an LXC group to address the missing devuan template.
-
I'd suggest starting with the template mentioned here: http://permalink.gmane.org/gmane.linux.kernel.containers.lxc.general/5102 and modifying it for devuan.
Probably should fork the lxc package.
-
@hellekin - Can you create a new project "lxc" in devuan-packages and create an issue with the milestone "1.0-rc1 Jessie Release Candidate".
I think it is important to have a good lxc that includes installation templates for Devuan.
-
Done: devuan-packages/lxc#1
I created an empty package and milestone for now.
-
Marked the task correct
Release
file to include the release codename as completed -
Status changed to closed