[PATCH] base-files: make os-release symbolic link absolute
Hauke Mehrtens
hauke at hauke-m.de
Wed Sep 8 14:06:04 PDT 2021
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 <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
>
More information about the openwrt-devel
mailing list