From 031cab418c4a7463da815158e2de31e47b588783 Mon Sep 17 00:00:00 2001 From: Daniel Dickinson Date: Wed, 2 Dec 2015 00:19:47 -0500 Subject: 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. --- modules/luci-mod-admin-full/luasrc/model/cbi/admin_system/fstab.lua | 1 + 1 file changed, 1 insertion(+) 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 4edc81193..dee86d927 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 -- cgit v1.2.3