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 4edc811939e41ce6029714d57551f84c0f0a58ec..dee86d92742e9d6cd2ec419971c96301f6a2274a 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