debootstrap: lack of devuan support
debootstrappackage doesn't have a template for Devuan.
I'm testing with porting the
/usr/share/lxc/templates/lxc-debianto make it bootstrap devuan instead. The template retrieves the release information from:
There are two problems with this method:
$MIRROR should point to
http://packages.devuan.org/devuanto hit the right Release file, so it doesn't necessarily work with all "$MIRROR".
Codenamefield is used to retrieve the release name, but in our Release file,
Therefore this issue is to:
Releasefile to include the release codename
lxcto add an
lxc-devuantemplate (moved to devuan-packages/lxc#1 )
The first point was a mistake due to using a wrong mirror for
debootstrap. The right mirror is
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.
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
debootstrap 1.0.75-1+devuan1Edited 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
/devuanonly contains information about Devuan-specific packages. The full repository is accessible via
lxcstill misses a devuan template. Do we have an
lxcproject 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.
Marked the task correct
Releasefile to include the release codename as completed
Status changed to closed