mirror of
https://github.com/openwrt/luci.git
synced 2026-08-29 06:22:49 +04:00
luci-mod-admin-full: Don't show jail bind mounts
The user is unlikely to care about the plethora of jail bind mounts when using jails, so don't display them in this app.
This commit is contained in:
@@ -39,6 +39,7 @@ m = Map("fstab", translate("Mount Points"))
|
||||
local mounts = luci.sys.mounts()
|
||||
local non_system_mounts = {}
|
||||
for rawmount, val in pairs(mounts) do
|
||||
if (string.find(val.mountpoint, "/tmp/.jail") == nil) then
|
||||
repeat
|
||||
val.umount = false
|
||||
if (val.mountpoint == "/") then
|
||||
|
||||
Reference in New Issue
Block a user