From 4518f8f3428471aa44fe7d2bd6e2cfa5be23af8f Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sat, 21 Sep 2019 18:46:17 +0200 Subject: [PATCH] luci-mod-system: mounts.js: preload fstab uci Preload the uci configuration on page load to avoid accidential double rendering of the globals section and mount overview table. Fixes: e39ab8725 ("luci-mod-system: mounts.js: implicitely create globals section") Signed-off-by: Jo-Philipp Wich --- .../htdocs/luci-static/resources/view/system/mounts.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/luci-mod-system/htdocs/luci-static/resources/view/system/mounts.js b/modules/luci-mod-system/htdocs/luci-static/resources/view/system/mounts.js index dfc17ee732..301ebab331 100644 --- a/modules/luci-mod-system/htdocs/luci-static/resources/view/system/mounts.js +++ b/modules/luci-mod-system/htdocs/luci-static/resources/view/system/mounts.js @@ -137,7 +137,8 @@ return L.view.extend({ callFileStat('/usr/sbin/e2fsck'), callFileStat('/usr/sbin/fsck.f2fs'), callFileStat('/usr/sbin/dosfsck'), - callFileStat('/usr/bin/btrfsck') + callFileStat('/usr/bin/btrfsck'), + uci.load('fstab') ]); }, -- 2.30.2