From: Daniel Dickinson Date: Wed, 2 Dec 2015 05:19:47 +0000 (-0500) Subject: luci-mod-admin-full: Don't show jail bind mounts X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=031cab418c4a7463da815158e2de31e47b588783;p=project%2Fluci.git 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. --- diff --git a/modules/luci-mod-admin-full/luasrc/model/cbi/admin_system/fstab.lua b/modules/luci-mod-admin-full/luasrc/model/cbi/admin_system/fstab.lua index 4edc811939..dee86d9274 100644 --- a/modules/luci-mod-admin-full/luasrc/model/cbi/admin_system/fstab.lua +++ b/modules/luci-mod-admin-full/luasrc/model/cbi/admin_system/fstab.lua @@ -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