-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathREADME
40 lines (24 loc) · 1.23 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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 22.03 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.
* fakeroot is needed. Or user can config the script to use sudo.
Configuration
-------------
Refer to the top of build_cust.sh.
And users may have to monitor the entropy available, as this script will disable the urngd service of the OpenWrt in favor of EGD on host, with the assumption that the OpenWrt instance shares entropy with the host.
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