7bc1c4e
#!/bin/sh -eu
7bc1c4e
7bc1c4e
# This is the startup script for cockpit-ws when run in a privileged container
7bc1c4e
#
7bc1c4e
# The host file system must be mounted at /host
7bc1c4e
#
7bc1c4e
7bc1c4e
cd /
7bc1c4e
PATH="/bin:/sbin"
7bc1c4e
7bc1c4e
# Run the install command just to be sure
7bc1c4e
/container/atomic-install || exit $?
7bc1c4e
7bc1c4e
set +x
7bc1c4e
7bc1c4e
/bin/mount --bind /host/usr/share/pixmaps /usr/share/pixmaps
7bc1c4e
/bin/mount --bind /host/var /var
petervo 588879a
/bin/mount --bind /host/etc/ssh /etc/ssh
7bc1c4e
7bc1c4e
# And run cockpit-ws
7bc1c4e
exec /usr/bin/nsenter --net=/container/target-namespace/ns/net --uts=/container/target-namespace/ns/uts -- /usr/libexec/cockpit-ws "$@"