[pve-devel] Add new contanier : CLC (Calculate Linux Container)

Adrien.D email at linuxtricks.fr
Mon Feb 11 10:24:46 CET 2019


Hi Thomas,

Calculate Linux is Gentoo compatible (with softwares, wikis etc..) but the os-release and gentoo-release modified by Calculate Linux Team.

/etc/os-release (number increased with new versions) :

Calculate Container Scratch 18.12

/etc/gentoo-release:

#------------------------------------------------------------------------------

# Modified Calculate Utilities 3.6.3

# Processed template files:

# /var/lib/layman/calculate/profiles/templates/3.6/2_ac_install_merge/sys-apps/baselayout/os-release

# For modify this file, create /run/calculate/mount/container_CCS_amd64/etc/os-release.clt template.

#------------------------------------------------------------------------------

NAME=Calculate

ID=calculate

PRETTY_NAME="Calculate/Linux"

ANSI_COLOR="1;32"

HOME_URL="http://www.calculate-linux.org"

SUPPORT_URL="http://www.calculate-linux.org/main/en/community"

BUG_REPORT_URL="http://www.calculate-linux.org/projects/calculatelinux/issues"

I don't know if that can help you to add Calculate Linux as container.

I extract the container on my PC, i replace the os-release file as Gentoo Container, and compress again the container. Importation work very well. After an update, the container doesn't start. I don't know why.



Le 08/02/2019 à 09:19, Thomas Lamprecht a écrit :
> Hi!
>
> Am 2/7/19 um 6:27 PM schrieb email at linuxtricks.fr:> Hi teamProxmox,
>> I am a contributor and translator for the Calculate Linux Distro.
>>
>> Calculate
>>   Linux is a rolling Release, based on Gentoo which have binary by
>> default. It is 100% compatible with Gentoo. It have some tools to
>> administrate easily the distro.
>>
>> We have a version of our distro which can be downloaded as container.
>>
>> Add manually the container into Proxmox is not supported because unknown distro.
>>
>> Can you add officially the support of Calculate Linux as container ?
> How does a Calculate Linux CT/rootfs image identifies itself?
> Because if you say that you're 100% compatible with gentoo allowing Calculate
> Linux CTs would be relatively easy. One just needs to add a mapping from the
> calculate linux identifier to the gentoo setup plugin[0].
>
> Currently we support two ways of identifying a CT distro, either through the
> os-release[1] standards ID variable (from /etc/os-release) or through a other
> version or release file in etc, e.g., /etc/devuan_version to match Devuan,
> which then maps to Debian.
>
> As your linked rootfs image provides an os-release file with `ID=calculate` one
> probably just would need to add:
> 'calculate' => 'PVE::LXC::Setup::Gentoo',
>
> to the plugins hash[0] and be done about it. I currently to not have time to
> test if then everything works correctly, so while a simple change I do not want
> to just hack it in without ever testing it... IF you want do test and contribute
> it please take a look at our Developer Documentation[2] wiki page for what'd be
> needed to contribute it so that we can accept it, else you may wait for someone
> else to step up, or me coming back from vacation ;-)
>
> cheers,
> Thomas
>
> [0]: https://git.proxmox.com/?p=pve-container.git;a=blob;f=src/PVE/LXC/Setup.pm;h=90bbb859cfe5c65123c3baa7917e319d583b1794;hb=HEAD#l18
> [1]: https://www.freedesktop.org/software/systemd/man/os-release.html
> [2]: https://pve.proxmox.com/wiki/Developer_Documentation#Software_License_and_Copyright
>



More information about the pve-devel mailing list