Pct openwrt os-type support

ben.kenobi

Active Member
Aug 6, 2019
2
0
41
43
Hello,

I would like to use openwrt in a lxc container. It currently works with some customization and I'm working on trying to minimize them.

One of the main problem usually encountered by users is the pct ostype detection. We need to set it to unmanaged to create the container, otherwise it fails.
But when I check the pct documentation :

--ostype <alpine | archlinux | centos | debian | devuan | fedora | gentoo | nixos | opensuse | ubuntu | unmanaged>
OS type. This is used to setup configuration inside the container, and corresponds to lxc setup scripts in /usr/share/lxc/config/<ostype>.common.conf. Value unmanaged can be used to skip and OS specific setup.
And I see in /usr/share/lxc/config a file named openwrt.common.conf that comes from proxmox install, not created by me.

@proxmox staff : would it be possible from the proxmox team to add openwrt support in the ostype detection to benefit from the dedicated optimization ?
If I understand the code, it happens here :
https://git.proxmox.com/?p=pve-container.git;a=blob;f=src/PVE/LXC/Setup.pm#l113

Here is the content of openwrt /etc/os-release file :
Bash:
NAME="OpenWrt"
VERSION="23.05.2"
ID="openwrt"
ID_LIKE="lede openwrt"
PRETTY_NAME="OpenWrt 23.05.2"
VERSION_ID="23.05.2"
HOME_URL="https://openwrt.org/"
BUG_URL="https://bugs.openwrt.org/"
SUPPORT_URL="https://forum.openwrt.org/"
BUILD_ID="r23630-842932a63d"
OPENWRT_BOARD="x86/64"
OPENWRT_ARCH="x86_64"
OPENWRT_TAINTS=""
OPENWRT_DEVICE_MANUFACTURER="OpenWrt"
OPENWRT_DEVICE_MANUFACTURER_URL="https://openwrt.org/"
OPENWRT_DEVICE_PRODUCT="Generic"
OPENWRT_DEVICE_REVISION="v0"
OPENWRT_RELEASE="OpenWrt 23.05.2 r23630-842932a63d"
Extracted from https://downloads.openwrt.org/releases/23.05.2/targets/x86/64/openwrt-23.05.2-x86-64-rootfs.tar.gz

I'm pretty sure it will be appreciated by many openwrt users. Thank you in advance :)
 
Last edited:
Thank you for the link, useful information.
If I understand well, I need to learn Perl and code it by myself. Maybe someday :)
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!