[PATCH] base-files: make os-release symbolic link absolute

Florian Eckert fe at dev.tdt.de
Wed Sep 8 05:50:02 PDT 2021


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`.

Signed-off-by: Florian Eckert <fe at 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
-- 
2.20.1




More information about the openwrt-devel mailing list