luci-mod-admin-full: Don't show jail bind mounts
authorDaniel Dickinson <openwrt@daniel.thecshore.com>
Wed, 2 Dec 2015 05:19:47 +0000 (00:19 -0500)
committerDaniel Dickinson <openwrt@daniel.thecshore.com>
Wed, 2 Dec 2015 07:16:22 +0000 (02:16 -0500)
The user is unlikely to care about the plethora of jail bind mounts
when using jails, so don't display them in this app.

modules/luci-mod-admin-full/luasrc/model/cbi/admin_system/fstab.lua

index 4edc811..dee86d9 100644 (file)
@@ -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