Modify

Opened 3 years ago

Last modified 20 months ago

#18637 new defect

LUCI / UCI commit overwrites Symlinks

Reported by: stefan_grau@… Owned by: developers
Priority: response-needed Milestone: Chaos Calmer 15.05
Component: base system Version: Barrier Breaker 14.07
Keywords: UCI Symlink Cc:

Description

On AA i had a symlink for /etc/config/network which pointed to /tmp/network_config/network and the button_00 script for changing network configuration with the slider (TL-MR3020).
On BB the symlink gets overwritten and become a regular file again after changing it via LUCI or UCI commit (doesn't matter where it points to). Is this the expected behaviour or kind of a bug? any way to change it back to the AA way?
I did not test CC yet but if it is kind of a bug I am willing to do so.
I know it is not common to have a symlink in /etc/config but this is how the script works and it is beautiful.

Attachments (0)

Change History (7)

comment:1 Changed 3 years ago by anonymous

Symlink gets overwritten too on CC r43757

comment:2 Changed 3 years ago by valentt

We use UCI quite a bit, and we would really like to have one custom uci file have symlink to USB flash storage device so USB is used and written to instead of internal flash.

Any ideas how to get symlinks back working with UCI?

comment:3 Changed 3 years ago by valentt

We use UCI quite a bit, and we would really like to have one custom uci file have symlink to USB flash storage device so USB is used and written to instead of internal flash.

Any ideas how to get symlinks back working with UCI?

comment:4 Changed 3 years ago by valentt

We use UCI quite a bit, and we would really like to have one custom uci file have symlink to USB flash storage device so USB is used and written to instead of internal flash.

Any ideas how to get symlinks back working with UCI?

comment:5 follow-up: Changed 23 months ago by anonymous

I have the same issue. I happen to be using a sym link for /etc/config/network as well and it breaks when using uci commit. I can use a hack but uci is supposed to make configuration easier right!

"Configuration should be easy and straightforward, making life easier! UCI is all about that." - https://wiki.openwrt.org/doc/uci

:)

comment:6 in reply to: ↑ 5 Changed 23 months ago by anonymous

Replying to anonymous:

I have the same issue. I happen to be using a sym link for /etc/config/network as well and it breaks when using uci commit. I can use a hack but uci is supposed to make configuration easier right!

"Configuration should be easy and straightforward, making life easier! UCI is all about that." - https://wiki.openwrt.org/doc/uci

:)

WOW...harsh!!

comment:7 Changed 20 months ago by anonymous

Somebody made changes to 15.05.1 it seems Symlinks or UCI now works as on AA again.
Did not Check DD Trunk. Would be interesting what change lead to it.

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.