Skip to content

Commit

Permalink
feat: export host binaries following updates
Browse files Browse the repository at this point in the history
  • Loading branch information
mirkobrombin committed Dec 22, 2023
1 parent c426517 commit 894cbec
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions includes.container/usr/bin/os-shell
Original file line number Diff line number Diff line change
@@ -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" "$@"

0 comments on commit 894cbec

Please sign in to comment.