flhs0606 / lxd-openwrt-simplified

A simplified version of lxd-openwrt

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

lxd-openwrt-simplified
===========

Scripts for building LXD/LXC images from OpenWrt rootfs tarballs. 

This is a simplified version of https://github.com/mikma/lxd-openwrt.

This version assumes the user has already got an OpenWRT 19.07 or later rootfs tarball containing ALL essential packages, e.g. by buildroot or by image builder.

What it will do:

1. unpack the tarball provided by the user.

2. build metadata and inject container-specific files/settings.

3. repack the tarball according to lxc/lxd requirements. 

Requirements
------------

It's recommended you use Debian or Ubuntu on the build system. 

Configuration
-------------

Refer to the top of build_cust.sh.

Usage
-----

./build_cust.sh <rootfs tarball> <lxd|plain>

Example
-------

./build_cust.sh openwrt-snapshot-r13592-x86-64-generic-rootfs.tar.gz plain

You may be also interested in my wrapper scripts for running OpenWRT as lxc containers in Proxmox VE: https://github.com/DazzyWalkman/oplxc4pve

About

A simplified version of lxd-openwrt

License:MIT License


Languages

Language:Shell 99.6%Language:Smarty 0.4%