[PATCH] base-files: make os-release symbolic link absolute
Paul Spooren
mail at aparcar.org
Wed Sep 8 13:39:51 PDT 2021
On 9/8/21 02:50, 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`.
>
> Signed-off-by: Florian Eckert <fe at dev.tdt.de>
> ---
Did you check that none of the build scripts try to access this file? In
case they do, they'd fail since an absolute path wouldn't exists on the
building host system.
> 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