From 364b0b8f628d567cd7c063c75470569749e89302 Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Wed, 19 Mar 2025 10:30:13 +0100 Subject: Drop /usr/local/sbin:/usr/sbin from $PATH If $PATH is not set, we get the default from crun [1]: PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin This is not useful, because in the image, /bin, /sbin, /usr/sbin are all symlinks. /usr/local/sbin does not exist. When /usr/sbin is a symlink to /usr/bin, and we use have a $PATH with /usr/sbin before /usr/bin, various tools will discover /usr/sbin/foo when looking for 'foo' [2], which is confusing and ugly. [1] https://github.com/containers/crun/blob/a980c89665bb488ff206e47e9083f75b48528714/src/libcrun/container.c#L183 [2] https://src.fedoraproject.org/rpms/setup/pull-request/18#comment-253719 Co-authored-by: Simon de Vlieger --- teams/cloud/container.xml | 3 +++ 1 file changed, 3 insertions(+) (limited to 'teams/cloud/container.xml') diff --git a/teams/cloud/container.xml b/teams/cloud/container.xml index 733fc87..2e7f0e8 100644 --- a/teams/cloud/container.xml +++ b/teams/cloud/container.xml @@ -35,6 +35,7 @@ + @@ -65,6 +66,7 @@ + @@ -124,6 +126,7 @@ + -- cgit v1.3.1+13