luci/applications/luci-app-lxc/luasrc/model/cbi/lxc.lua
Daniel Golle 9740604eef
luci-app-lxc: remove obsolete note about enabling kernel features
Since commit openwrt/openwrt@fcb41decf6 ("config: enable some useful
features on !SMALL_FLASH devices") LXC related features are enabled by
default.
Hence remove note stating that a custom image is required for LXC.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2019-11-15 23:14:42 +01:00

48 lines
1.6 KiB
Lua

--[[
LuCI LXC module
Copyright (C) 2014, Cisco Systems, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Author: Petar Koretic <petar.koretic@sartura.hr>
]]--
m = Map("lxc", translate("LXC Containers"),
translate("<b>Please note:</b> LXC Containers require features not available on OpenWrt images for devices with small flash.<br />")
.. translate("Also you may want to install 'kmod-veth' for optional network support."))
m:section(SimpleSection).template = "lxc"
s = m:section(TypedSection, "lxc", translate("Options"))
s.anonymous = true
o1 = s:option(Value, "url", translate("Containers URL"))
o1:value("images.linuxcontainers.org")
o1:value("repo.turris.cz/lxc", "repo.turris.cz/lxc (SSL req.)")
o1.default = "images.linuxcontainers.org"
o1.rmempty = false
o2 = s:option(Flag, "ssl_enabled", translate("Enable SSL"),
translate("Enable optional SSL encryption support. This requires additional packages like 'wget', 'ca-certificates', 'gnupg' and 'gnupg-utils'."))
o2.default = o2.disabled
o2.rmempty = false
o3 = s:option(Value, "min_space", translate("Free Space Threshold"),
translate("Minimum required free space for LXC Container creation in KB"))
o3.default = "100000"
o3.datatype = "min(50000)"
o3.rmempty = false
o4 = s:option(Value, "min_temp", translate("Free Temp Threshold"),
translate("Minimum required free temp space for LXC Container creation in KB"))
o4.default = "100000"
o4.datatype = "min(50000)"
o4.rmempty = false
return m