[lxc-devel] [distrobuilder/master] Add Devuan
stiltr on Github
lxc-bot at linuxcontainers.org
Sat Jun 1 02:37:43 UTC 2019
A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 461 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20190531/cce70092/attachment.bin>
-------------- next part --------------
From 737cef9c11a008d93988d7f45593bf1cbd623e85 Mon Sep 17 00:00:00 2001
From: Trevor Stiles <tstiles at shel.org>
Date: Fri, 31 May 2019 17:29:29 -0700
Subject: [PATCH] Add Devuan
---
doc/examples/devuan | 136 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 136 insertions(+)
create mode 100644 doc/examples/devuan
diff --git a/doc/examples/devuan b/doc/examples/devuan
new file mode 100644
index 0000000..5ffdacd
--- /dev/null
+++ b/doc/examples/devuan
@@ -0,0 +1,136 @@
+image:
+ distribution: "devuan"
+ release: ascii
+
+source:
+ downloader: debootstrap
+ url: http://deb.devuan.org/merged
+ keyserver: keyserver.ubuntu.com
+ keys:
+ - 0x72E3CB773315DFA2E464743D94532124541922FB
+ - 0xE032601B7CA10BC3EA53FA81BB23C00C61FC752C
+ variant: minbase
+ apt_sources: |-
+ deb http://deb.devuan.org/merged {{ image.release }} main
+ deb http://deb.devuan.org/merged {{ image.release }}-security main
+
+targets:
+ lxc:
+ create-message: |-
+ You just created a {{ image.description }} container.
+
+ To enable SSH, run: apt install openssh-server
+ No default root or user password are set by LXC.
+
+ config:
+ - type: all
+ before: 5
+ content: |-
+ lxc.include = LXC_TEMPLATE_CONFIG/debian.common.conf
+
+ - type: user
+ before: 5
+ content: |-
+ lxc.include = LXC_TEMPLATE_CONFIG/debian.userns.conf
+
+ - type: all
+ after: 4
+ content: |-
+ lxc.include = LXC_TEMPLATE_CONFIG/common.conf
+
+ - type: user
+ after: 4
+ content: |-
+ lxc.include = LXC_TEMPLATE_CONFIG/userns.conf
+
+ - type: all
+ content: |-
+ lxc.arch = {{ image.architecture_personality }}
+
+files:
+ - path: /etc/hostname
+ generator: hostname
+
+ - path: /etc/hosts
+ generator: hosts
+
+ - path: /etc/resolvconf/resolv.conf.d/original
+ generator: remove
+
+ - path: /etc/resolvconf/resolv.conf.d/tail
+ generator: remove
+
+ - path: /etc/machine-id
+ generator: remove
+
+ - path: /etc/network/interfaces
+ generator: dump
+ content: |-
+ # This file describes the network interfaces available on your system
+ # and how to activate them. For more information, see interfaces(5).
+
+ # The loopback network interface
+ auto lo
+ iface lo inet loopback
+
+ auto eth0
+ iface eth0 inet dhcp
+
+ - path: /etc/apt/apt.conf.d/01lean
+ generator: dump
+ content: |-
+ APT::Install-Suggests "0";
+ APT::Install-Recommends "0";
+ APT::AutoRemove::SuggestsImportant "false";
+ APT::AutoRemove::RecommendsImportant "false";
+
+packages:
+ manager: apt
+ update: true
+ cleanup: true
+
+ sets:
+ - packages:
+ - ca-certificates
+ - curl
+ - devuan-keyring
+ - dialog
+ - dnsutils
+ - htop
+ - ifupdown
+ - iproute2
+ - iputils-ping
+ - isc-dhcp-client
+ - less
+ - locales
+ - nano
+ - net-tools
+ - netbase
+ - openssh-client
+ - rsync
+ - sysv-rc-conf
+ - vim-tiny
+ - wget
+ action: install
+
+actions:
+ - trigger: post-packages
+ action: |-
+ #!/bin/sh
+ set -eux
+
+ # Make sure the locale is built and functional
+ echo en_US.UTF-8 UTF-8 >> /etc/locale.gen
+ locale-gen en_US.UTF-8 UTF-8
+ update-locale LANG=en_US.UTF-8
+
+ # Cleanup underlying /run
+ mount -o bind / /mnt
+ rm -rf /mnt/run/*
+ umount /mnt
+
+ # Cleanup temporary shadow paths
+ rm /etc/*-
+
+mappings:
+ architecture_map: debian
More information about the lxc-devel
mailing list