[FS#1240] luci/luci-ssl: /etc/config/luci not in same format as written by luci/lua
LEDE Bugs
lede-bugs at lists.infradead.org
Fri Dec 22 10:16:38 PST 2017
A new Flyspray task has been opened. Details are below.
User who did this - mdbuerkle (mdbuerkle)
Attached to Project - LEDE Project
Summary - luci/luci-ssl: /etc/config/luci not in same format as written by luci/lua
Task Type - Bug Report
Category - Packages
Status - Unconfirmed
Assigned To -
Operating System - All
Severity - Low
Priority - Very Low
Reported Version - Trunk
Due in Version - Undecided
Due Date - Undecided
Details - Supply the following if possible:
- Device problem occurs on
- Software versions of LEDE release, packages, etc.
- Steps to reproduce
root at OpenWRT:~# cat /etc/openwrt_release
DISTRIB_ID='OpenWrt'
DISTRIB_RELEASE='SNAPSHOT'
DISTRIB_REVISION='r5601-efa22b1'
DISTRIB_TARGET='ar71xx/generic'
DISTRIB_ARCH='mips_24kc'
DISTRIB_DESCRIPTION='OpenWrt SNAPSHOT r5601-efa22b1'
DISTRIB_TAINTS=''
root at OpenWRT:~# cat /etc/board.json
{
"model": {
"id": "tl-wdr4300",
"name": "TP-Link TL-WDR3600 v1"
},
...
to reproduce:
- install lede
- run lua/luci, modify configuration somehow and save, so that /etc/config/luci is overwritten
- flash corresponding sysupgrade.bin with "[x] keepsettings"
- ssh root at OpenWRT.localnet opkg update
- ssh root at OpenWRT.localnet opkg install luci-ssl strace snmpd snmp-mibs lsof rsyslog diffutils vim less
note in output:
Collected errors:
* resolve_conffiles: Existing conffile /etc/config/uhttpd is different from the conffile in the new package. The new conffile will be placed at /etc/config/uhttpd-opkg.
* resolve_conffiles: Existing conffile /etc/config/luci is different from the conffile in the new package. The new conffile will be placed at /etc/config/luci-opkg.
The contents of luci-opkg and luci are quite the same, the lua/luci version being without comments and with 'quoted' values (see attached file).
A resolution of "wont fix" would be absolutely acceptable, but the always-happening-change/diff etc. is annoying.
Kind regards,
Dominik
mdb at lapmdb-hpl ~ $>> ssh root at OpenWRT.localnet
BusyBox v1.27.2 () built-in shell (ash)
_______ ________ __
| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -__| || | | || _|| _|
|_______|| __|_____|__|__||________||__| |____|
|__| W I R E L E S S F R E E D O M
-----------------------------------------------------
OpenWrt SNAPSHOT, r5601-efa22b1
-----------------------------------------------------
root at OpenWRT:~# diff -wu /etc/config/luci /etc/config/luci-opkg
--- /etc/config/luci 2017-10-17 22:35:20.000000000 +0200
+++ /etc/config/luci-opkg 2017-12-22 13:13:43.000000000 +0100
@@ -1,32 +1,24 @@
+config core main
+ option lang auto
+ option mediaurlbase /luci-static/bootstrap
+ option resourcebase /luci-static/resources
+
+config extern flash_keep
+ option uci "/etc/config/"
+ option dropbear "/etc/dropbear/"
+ option openvpn "/etc/openvpn/"
+ option passwd "/etc/passwd"
+ option opkg "/etc/opkg.conf"
+ option firewall "/etc/firewall.user"
+ option uploads "/lib/uci/upload/"
+
+config internal languages
+
+config internal sauth
+ option sessionpath "/tmp/luci-sessions"
+ option sessiontime 3600
-config core 'main'
- option lang 'auto'
- option mediaurlbase '/luci-static/bootstrap'
- option resourcebase '/luci-static/resources'
-
-config extern 'flash_keep'
- option uci '/etc/config/'
- option dropbear '/etc/dropbear/'
- option openvpn '/etc/openvpn/'
- option passwd '/etc/passwd'
- option opkg '/etc/opkg.conf'
- option firewall '/etc/firewall.user'
- option uploads '/lib/uci/upload/'
-
-config internal 'languages'
-
-config internal 'sauth'
- option sessionpath '/tmp/luci-sessions'
- option sessiontime '3600'
-
-config internal 'ccache'
- option enable '1'
-
-config internal 'themes'
- option Bootstrap '/luci-static/bootstrap'
-
-config internal 'diag'
- option dns 'lede-project.org'
- option ping 'lede-project.org'
- option route 'lede-project.org'
+config internal ccache
+ option enable 1
+config internal themes
root at OpenWRT:~#
One or more files have been attached.
More information can be found at the following URL:
https://bugs.lede-project.org/index.php?do=details&task_id=1240
More information about the lede-bugs
mailing list