On 9/8/21 2:50 PM, Florian Eckert wrote:
The file `/etc/os-release` is currently a relative link to
`../usr/lib/os-release`.

The follwing links on my `/etc` are also absolute:
* localtime -> /tmp/localtime
* resolv.conf -> /tmp/resolv.conf
* /tmp/TZmtab -> /proc/mounts

For consistency, this should also apply to `/usr/lib/os-release`.

Is there any other reason than consistency to change this?

I prefer relative links because they also work when the file system is accessed by the build system like Paul said.

Hauke


Signed-off-by: Florian Eckert <f...@dev.tdt.de>
---
  package/base-files/files/etc/os-release | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/base-files/files/etc/os-release 
b/package/base-files/files/etc/os-release
index c4c75b419c..d98fc7a7ac 120000
--- a/package/base-files/files/etc/os-release
+++ b/package/base-files/files/etc/os-release
@@ -1 +1 @@
-../usr/lib/os-release
\ No newline at end of file
+/usr/lib/os-release
\ No newline at end of file



_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to