• Devuan project
  • devuan-project
  • Issues
  • #41

Closed
Open
Opened 2016-03-08T02:43Z by hellekin @hellekin 2 of 2 tasks completed 2/2 tasks

debootstrap: lack of devuan support

Thedebootstrappackage 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:$MIRROR/dists/stable/Release.

There are two problems with this method:

  • $MIRROR should point tohttp://packages.devuan.org/devuanto hit the right Release file, so it doesn't necessarily work with all "$MIRROR".
  • TheCodenamefield is used to retrieve the release name, but in our Release file,Codename: None.

Therefore this issue is to:

  • correctReleasefile to include the release codename
  • correctlxcto add anlxc-devuantemplate (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

Please solve the reCAPTCHA

We want to be sure it is you, please confirm you are not a robot.

  • Daniel Reurich
    Daniel Reurich @CenturionDan · 2016-03-07T21:54Z

    @hellekin : can you please provide more context??

    1. The release "Codename" in http://packages.devuan.org/devuan/dists/stable/Release is set to "jessie"

    2. Our debootstrap package does set $MIRROR to http://packages.devuan.org/devuan

  • hellekin
    hellekin @hellekin · 2016-03-07T22:02Z
    1. 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.

    1. Matching onSuiteinstead ofCodenameI 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.: runningdebootstrap 1.0.75-1+devuan1

    Edited by hellekin 2016-03-07T22:09Z
  • Daniel Reurich
    Daniel Reurich @CenturionDan · 2016-03-07T22:13Z

    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 2016-03-07T22:15Z
  • hellekin
    hellekin @hellekin · 2016-03-07T22:37Z

    OK works withhttp://packages.devuan.org/merged.

    /devuanonly contains information about Devuan-specific packages. The full repository is accessible via/merged.

    Nowlxcstill misses a devuan template. Do we have anlxcproject somewhere in the gitlab?

  • hellekin
    hellekin @hellekin · 2016-03-11T02:43Z

    I'm tempted to close this issue unless there's need for an LXC group to address the missing devuan template.

  • Daniel Reurich
    Daniel Reurich @CenturionDan · 2016-03-11T06:16Z

    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.

  • Daniel Reurich
    Daniel Reurich @CenturionDan · 2016-03-13T21:59Z

    @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.

  • hellekin
    hellekin @hellekin · 2016-03-14T10:08Z

    Done: devuan-packages/lxc#1

    I created an empty package and milestone for now.

  • hellekin @hellekin Marked the task correctReleasefile to include the release codename as completed · 2016-03-14T10:11Z

    Marked the task correctReleasefile to include the release codename as completed

  • hellekin @hellekin Status changed to closed · 2016-03-14T10:11Z

    Status changed to closed