From 894cbece0e0a090d5fb17681628ef7a854ce69f8 Mon Sep 17 00:00:00 2001 From: mirkobrombin Date: Fri, 22 Dec 2023 08:32:42 +0100 Subject: [PATCH] feat: export host binaries following updates --- includes.container/usr/bin/os-shell | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/includes.container/usr/bin/os-shell b/includes.container/usr/bin/os-shell index ffdf7e8..602c450 100644 --- a/includes.container/usr/bin/os-shell +++ b/includes.container/usr/bin/os-shell @@ -1,4 +1,12 @@ #!/bin/sh +# this exports new host binaries to VSO since host updates could +# introduce new utilities which must be allowed to be used by the user +for file in /run/host/usr/share/vso/host-exports/*; do + if [ ! -L "/usr/bin/$(basename $file)" ]; then + ln -s "/usr/bin/host-spawn" "/usr/bin/$(basename $file)" + fi +done + target_shell=$(echo $SHELL) exec "$target_shell" "$@" \ No newline at end of file